Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(local-model-runtime): add Playwright test for legacy route redirect

Steven Enamakel6d2b9f1a637c
diff --git a/app/test/playwright/specs/local-model-runtime.spec.ts b/app/test/playwright/specs/local-model-runtime.spec.ts
new file mode 100644
index 0000000000..4e923fa6a1
--- /dev/null
+++ b/app/test/playwright/specs/local-model-runtime.spec.ts
@@ -0,0 +1,19 @@
+import { expect, test } from '@playwright/test';
+
+import { bootAuthenticatedPage, waitForAppReady } from '../helpers/core-rpc';
+
+test.describe('Local model runtime route', () => {
+ test('redirects the retired local-model-debug route to the Connections LLM tab', async ({
+ page,
+ }) => {
+ await bootAuthenticatedPage(page, 'pw-local-model-runtime');
+ // Navigate after the authenticated shell has mounted. Supplying this legacy
+ // settings path during bootstrap races its default chat-route restoration.
+ await page.goto('/#/settings/local-model-debug');
+ await waitForAppReady(page);
+
+ await expect
+ .poll(async () => page.evaluate(() => window.location.hash))
+ .toContain('/connections');
+ });
+});