Skip to content

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

test(settings): update settings tests to reflect UI changes

Steven Enamakel2ea175111907
diff --git a/app/test/playwright/specs/settings-advanced-config.spec.ts b/app/test/playwright/specs/settings-advanced-config.spec.ts
index db257929ef..d700ca0b95 100644
--- a/app/test/playwright/specs/settings-advanced-config.spec.ts
+++ b/app/test/playwright/specs/settings-advanced-config.spec.ts
@@ -152,11 +152,20 @@ test.describe('Settings - Advanced Config', () => {
await expect
.poll(async () => page.evaluate(() => window.location.hash))
.toContain('/connections');
+ await expect(page.getByText('LLM Providers')).toBeVisible();
+
+ await gotoSettingsRoute(page, '/settings/agent-chat');
+ await expect
+ .poll(async () => page.evaluate(() => window.location.hash))
+ .toContain('/connections?tab=llm');
+ await expect(page.getByText('LLM Providers')).toBeVisible();
+ await expect(page.getByText('Runtime Status')).toHaveCount(0);
await gotoSettingsRoute(page, '/settings/about');
// The About description copy also contains "software updates"; match the
// section label exactly to avoid a strict-mode violation.
await expect(page.getByText('Resources', { exact: true })).toBeVisible();
+ await expect(page.getByText('Check for updates')).toBeVisible();
// /settings/llm now redirects to the Connections page (LLM moved there).
await gotoSettingsRoute(page, '/settings/llm');
diff --git a/app/test/playwright/specs/settings-feature-preferences.spec.ts b/app/test/playwright/specs/settings-feature-preferences.spec.ts
index f77c1603d8..363b245c25 100644
--- a/app/test/playwright/specs/settings-feature-preferences.spec.ts
+++ b/app/test/playwright/specs/settings-feature-preferences.spec.ts
@@ -170,13 +170,18 @@ function readEnabledTools(snapshot: ToolsSnapshot): string[] {
test.describe('Settings - Feature Preferences', () => {
test('falls through the retired features settings route to settings home', async ({ page }) => {
- await openAuthenticatedRoute(page, 'pw-settings-features-route', '/settings/features');
-
- await expect
- .poll(async () => page.evaluate(() => window.location.hash))
- .toMatch(/^#\/settings(?:\/account)?$/);
- await expect(page.getByText('Screen Intelligence', { exact: true })).toHaveCount(0);
- await expect(page.getByText('Screen Awareness Debug', { exact: true })).toHaveCount(0);
+ for (const route of [
+ '/settings/features',
+ '/settings/screen-intelligence',
+ '/settings/screen-awareness-debug',
+ ]) {
+ await openAuthenticatedRoute(page, `pw-settings-features-${route}`, route);
+ await expect
+ .poll(async () => page.evaluate(() => window.location.hash))
+ .toMatch(/^#\/settings(?:\/account)?$/);
+ await expect(page.getByText('Screen Intelligence', { exact: true })).toHaveCount(0);
+ await expect(page.getByText('Screen Awareness Debug', { exact: true })).toHaveCount(0);
+ }
});
test('persists the default messaging channel through redux state', async ({ page }) => {