Skip to content

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

test: align browser coverage with UI routes

Steven Enamakelf61c527cf1a4
diff --git a/app/test/playwright/specs/card-payment-flow.spec.ts b/app/test/playwright/specs/card-payment-flow.spec.ts
index 1131d862cb..393d315a4b 100644
--- a/app/test/playwright/specs/card-payment-flow.spec.ts
+++ b/app/test/playwright/specs/card-payment-flow.spec.ts
@@ -12,15 +12,15 @@ test.describe('Card Payment Flow', () => {
await bootAuthenticatedPage(page, `pw-card-payment-${slug}`, '/settings/account');
});
- test('account settings exposes the billing redirect', async ({ page }) => {
+ test('account settings exposes the billing dashboard action', async ({ page }) => {
await waitForAppReady(page);
await expect(page.getByTestId('account-panel')).toBeVisible();
- await expect(page.getByRole('button', { name: 'Billing' })).toBeVisible();
+ await expect(page.getByTestId('account-open-billing')).toBeVisible();
});
- test('billing button is present', async ({ page }) => {
+ test('billing action is present', async ({ page }) => {
await waitForAppReady(page);
- await expect(page.getByRole('button', { name: 'Billing' })).toBeVisible();
+ await expect(page.getByTestId('account-open-billing')).toBeVisible();
});
test('back-to-settings navigation works', async ({ page }) => {
diff --git a/app/test/playwright/specs/mcp-tab-flow.spec.ts b/app/test/playwright/specs/mcp-tab-flow.spec.ts
index 0a633ba6b3..3063a32534 100644
--- a/app/test/playwright/specs/mcp-tab-flow.spec.ts
+++ b/app/test/playwright/specs/mcp-tab-flow.spec.ts
@@ -387,7 +387,7 @@ test.describe('MCP page — Servers tab', () => {
await expect(page.getByRole('tab', { name: 'mcp.json' })).toBeVisible();
await expect(page.getByRole('tab', { name: 'Registry' })).toBeVisible();
await expect(page.getByTestId('mcp-servers-section')).toBeVisible();
- await expect(page.getByRole('heading', { level: 2, name: 'Installed servers' })).toBeVisible();
+ await expect(installedRow(page, 'Memory Server')).toBeVisible();
});
test('displays declared servers with their dial, status and icon controls', async ({ page }) => {
diff --git a/app/test/playwright/specs/navigation-settings-panels.spec.ts b/app/test/playwright/specs/navigation-settings-panels.spec.ts
index f71351c9d2..31c4dc2cc9 100644
--- a/app/test/playwright/specs/navigation-settings-panels.spec.ts
+++ b/app/test/playwright/specs/navigation-settings-panels.spec.ts
@@ -8,11 +8,11 @@ interface PanelCheck {
}
const panels: PanelCheck[] = [
- { hash: '/settings', markers: ['Settings', 'Appearance', 'Notifications'] },
+ { hash: '/settings', markers: ['Settings', 'Appearance', 'Privacy'] },
{ hash: '/settings/memory-data', markers: ['Memory', 'Data', 'Storage'] },
- { hash: '/settings/notifications-hub', markers: ['Notifications'] },
+ { hash: '/settings/notifications-hub', markers: ['Plan & billing'] },
{ hash: '/settings/developer-options', markers: ['Developer', 'Debug', 'Advanced'] },
- { hash: '/settings/account', markers: ['Account', 'Billing'] },
+ { hash: '/settings/account', markers: ['Account', 'Plan & billing'] },
{ hash: '/settings/appearance', markers: ['Appearance', 'Theme', 'Color'] },
{ hash: '/settings/tools', markers: ['Tools', 'Enable', 'Disable'] },
];
diff --git a/app/test/playwright/specs/navigation.spec.ts b/app/test/playwright/specs/navigation.spec.ts
index 2a2ebfa962..33dd98f14f 100644
--- a/app/test/playwright/specs/navigation.spec.ts
+++ b/app/test/playwright/specs/navigation.spec.ts
@@ -12,8 +12,8 @@ interface RouteEntry {
// Back-compat redirects are included so the router redirect itself is tested.
// /human → renders the Human surface (first-class route)
// /skills → /connections (Phase 2)
-// /activity → /settings/notifications (Phase 6)
-// /intelligence → /settings/notifications (Phase 6)
+// /activity → /settings/account (Phase 6)
+// /intelligence → /settings/account (Phase 6)
// /home → /chat (Home folded into the unified two-panel chat surface)
const ROUTES: RouteEntry[] = [
{ route: '/home', expectedHash: '/chat' }, // back-compat redirect (Home → chat)
@@ -21,8 +21,8 @@ const ROUTES: RouteEntry[] = [
{ route: '/chat' },
{ route: '/connections' },
{ route: '/skills', expectedHash: '/connections' }, // back-compat redirect
- { route: '/activity', expectedHash: '/settings/notifications' }, // back-compat redirect
- { route: '/intelligence', expectedHash: '/settings/notifications' }, // back-compat redirect
+ { route: '/activity', expectedHash: '/settings/account' }, // back-compat redirect
+ { route: '/intelligence', expectedHash: '/settings/account' }, // back-compat redirect
// Desktop Settings is a modal overlay (the backgroundLocation pattern): the
// /settings index redirects to the first panel and the modal renders on top
// of the /chat fallback backdrop.
diff --git a/app/test/playwright/specs/route-redirect-history.spec.ts b/app/test/playwright/specs/route-redirect-history.spec.ts
index 1c0c616691..aba0359a77 100644
--- a/app/test/playwright/specs/route-redirect-history.spec.ts
+++ b/app/test/playwright/specs/route-redirect-history.spec.ts
@@ -42,8 +42,8 @@ const REDIRECTS: ReadonlyArray<readonly [string, string]> = [
// because it never mounts the nested settings routes.
['/webhooks', '/connections'],
['/home', '/chat'],
- ['/activity', '/settings/notifications'],
- ['/intelligence', '/settings/notifications'],
+ ['/activity', '/settings/account'],
+ ['/intelligence', '/settings/account'],
// The retired unified-chat aliases. `/accounts` predates the /chat merge;
// `/feedback` moved into Settings.
['/accounts', '/chat'],
diff --git a/app/test/playwright/specs/settings-advanced-config.spec.ts b/app/test/playwright/specs/settings-advanced-config.spec.ts
index 728117fc27..1063fe3a80 100644
--- a/app/test/playwright/specs/settings-advanced-config.spec.ts
+++ b/app/test/playwright/specs/settings-advanced-config.spec.ts
@@ -152,7 +152,7 @@ test.describe('Settings - Advanced Config', () => {
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('Software updates', { exact: true })).toBeVisible();
+ await expect(page.getByText('Resources', { exact: true })).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-appearance-theme.spec.ts b/app/test/playwright/specs/settings-appearance-theme.spec.ts
index 25b75cf54a..fe9817518a 100644
--- a/app/test/playwright/specs/settings-appearance-theme.spec.ts
+++ b/app/test/playwright/specs/settings-appearance-theme.spec.ts
@@ -16,8 +16,8 @@ import {
* `color-scheme` are only meaningful in a real engine, and "the theme visibly
* applied" means all three moved together.
*
- * `/settings/appearance` hosts the theme studio (the standalone
- * `/settings/theme` route redirects here). Its two controls are separate and
+ * `/settings/theme` hosts the theme studio. `/settings/appearance` is the
+ * appearance preferences page. Its two controls are separate and
* compose: a VARIANT toggle (Light / Dark / Auto) and a FAMILY grid (Classic,
* Ocean, Sepia, Matrix, HAL 9000 — `lib/theme/presets.ts:342`). Choosing
* "Dark" is the variant toggle; choosing "HAL 9000" is a family. An earlier
@@ -46,22 +46,20 @@ function documentTheme(page: Page) {
});
}
-async function openAppearance(page: Page) {
+async function openThemeStudio(page: Page) {
// Navigate explicitly even though beforeEach booted here: on a cold first
// test the '/home' -> '/chat' redirect can still be in flight and win the
// race, leaving the chat surface behind. Re-navigating settles it.
- await page.goto('/#/settings/appearance');
+ await page.goto('/#/settings/theme');
await waitForAppReady(page);
await dismissWalkthroughIfPresent(page);
- await expect(page.getByRole('heading', { level: 1 })).toHaveText('Appearance', {
- timeout: 30_000,
- });
+ await expect(page.getByTestId('theme-studio-panel')).toBeVisible({ timeout: 30_000 });
}
test.describe('Appearance — theme switching', () => {
test.beforeEach(async ({ page }) => {
- await bootAuthenticatedPage(page, 'pw-w1-theme', '/settings/appearance');
- await openAppearance(page);
+ await bootAuthenticatedPage(page, 'pw-w1-theme', '/settings/theme');
+ await openThemeStudio(page);
});
test('choosing Dark sets the dark class and color-scheme on <html>', async ({ page }) => {
diff --git a/app/test/playwright/specs/settings-channels-permissions.spec.ts b/app/test/playwright/specs/settings-channels-permissions.spec.ts
index dd4d7bee05..a21d3b1d0d 100644
--- a/app/test/playwright/specs/settings-channels-permissions.spec.ts
+++ b/app/test/playwright/specs/settings-channels-permissions.spec.ts
@@ -45,9 +45,8 @@ test.describe('Settings - Channels & Permissions', () => {
await messagingTab.click();
}
- await expect(page.getByText('Default Messaging Channel').last()).toBeVisible();
- await expect(page.getByText('Telegram').last()).toBeVisible();
- await expect(page.getByText('Web').last()).toBeVisible();
+ await expect(page.getByTestId('channel-select-telegram')).toBeVisible();
+ await expect(page.getByTestId('channel-select-web')).toBeVisible();
// Confirm the panel seeded Telegram as the default before switching.
await expect.poll(() => getDefaultMessagingChannel(page)).toBe('telegram');
@@ -62,8 +61,7 @@ test.describe('Settings - Channels & Permissions', () => {
await dismissWalkthroughIfPresent(page);
await expect(page.getByTestId('settings-privacy-panel')).toBeVisible();
- await expect(page.getByRole('heading', { name: 'Product Analytics' })).toBeVisible();
- await expect(page.getByText('Share Product Analytics and Diagnostics')).toBeVisible();
- await expect(page.getByText('What leaves your computer')).toBeVisible();
+ await expect(page.getByTestId('privacy-analytics-toggle')).toBeVisible();
+ await expect(page.getByTestId('privacy-mode-options')).toBeVisible();
});
});
diff --git a/app/test/playwright/specs/settings-feature-preferences.spec.ts b/app/test/playwright/specs/settings-feature-preferences.spec.ts
index 64f2b3bf06..76c7229e07 100644
--- a/app/test/playwright/specs/settings-feature-preferences.spec.ts
+++ b/app/test/playwright/specs/settings-feature-preferences.spec.ts
@@ -105,33 +105,6 @@ async function getPersistedSelectedMascotId(page: Page): Promise<string | null>
});
}
-async function getAriaChecked(page: Page, label: string): Promise<string | null> {
- const value = await page.getByRole('switch', { name: label }).getAttribute('aria-checked');
- return value;
-}
-
-async function getPersistedNotificationPreference(
- page: Page,
- category: string
-): Promise<boolean | null> {
- return page.evaluate(categoryName => {
- const userId = localStorage.getItem('OPENHUMAN_ACTIVE_USER_ID');
- if (!userId) return null;
- const raw = localStorage.getItem(`${userId}:persist:notifications`);
- if (!raw) return null;
- try {
- const persisted = JSON.parse(raw) as { preferences?: string };
- if (typeof persisted.preferences !== 'string') return null;
- const preferences = JSON.parse(persisted.preferences) as Record<string, unknown>;
- return typeof preferences[categoryName] === 'boolean'
- ? (preferences[categoryName] as boolean)
- : null;
- } catch {
- return null;
- }
- }, category);
-}
-
async function installMascotManifestMock(page: Page): Promise<void> {
const manifest = {
schemaVersion: 1,
@@ -223,7 +196,7 @@ test.describe('Settings - Feature Preferences', () => {
await messagingTab.click();
}
- await expect(page.getByText('Default Messaging Channel').last()).toBeVisible();
+ await expect(page.getByTestId('channel-select-telegram')).toBeVisible();
await expect.poll(() => getDefaultMessagingChannel(page)).toBe('telegram');
await page.getByTestId('channel-select-web').click();
@@ -273,31 +246,6 @@ test.describe('Settings - Feature Preferences', () => {
expect(readEnabledTools(after)).not.toContain('shell');
});
- test('persists notification category preferences', async ({ page }) => {
- await openAuthenticatedRoute(page, 'pw-settings-notification-prefs', '/settings/notifications');
-
- await expect(page.getByText('Messages', { exact: true })).toBeVisible();
-
- const messagesLabel = 'Toggle Messages notifications';
- const messagesBefore = await getAriaChecked(page, messagesLabel);
-
- // Global DND is native webview-account state and cannot persist in the web
- // harness. Category preferences are Redux-persisted and are the portable
- // behavior this lane can verify.
- await page.getByRole('switch', { name: messagesLabel }).click();
-
- await expect.poll(() => getAriaChecked(page, messagesLabel)).not.toBe(messagesBefore);
-
- const toggled = await getAriaChecked(page, messagesLabel);
- await expect
- .poll(() => getPersistedNotificationPreference(page, 'messages'))
- .toBe(toggled === 'true');
-
- await reloadAndWait(page);
- await expect(page.getByText('Messages', { exact: true })).toBeVisible();
- await expect.poll(() => getAriaChecked(page, messagesLabel)).toBe(toggled);
- });
-
test('persists mascot color selection', async ({ page }) => {
await openAuthenticatedRoute(page, 'pw-settings-mascot-color', '/settings/mascot');
diff --git a/app/test/playwright/specs/settings-form-interaction.spec.ts b/app/test/playwright/specs/settings-form-interaction.spec.ts
deleted file mode 100644
index 7660becaf7..0000000000
--- a/app/test/playwright/specs/settings-form-interaction.spec.ts
+++ /dev/null
@@ -1,188 +0,0 @@
-import { expect, type Locator, type Page, test } from '@playwright/test';
-
-import {
- bootAuthenticatedPage,
- dismissWalkthroughIfPresent,
- waitForAppReady,
-} from '../helpers/core-rpc';
-
-/**
- * Real keyboard interaction with settings text fields.
- *
- * # Why a browser lane is required for this
- *
- * jsdom has no caret. `fireEvent.change(input, { target: { value } })` replaces
- * the whole value in one step, so a component that re-renders and resets the
- * selection looks identical to one that does not. Every settings test in
- * `app/src/**` — including the ones I wrote last round — is blind to it.
- *
- * W4 found exactly that defect in the chat composer
- * (`chat-composer-caret.spec.ts`): typing mid-string moves the caret to the end,
- * so the second keystroke lands in the wrong place. This spec asks whether any
- * settings text input shares it.
- *
- * The agent editor is the sharpest place to ask. Its ID field is
- * *programmatically rewritten* while you type the Name
- * (`AgentEditorPage.tsx`), which is the exact shape — a controlled
- * input whose value is reassigned during render — that produces caret jumps.
- */
-
-const NEW_AGENT = '/#/settings/agents/new';
-
-async function openAgentEditor(page: Page) {
- await page.goto(NEW_AGENT);
- await waitForAppReady(page);
- await dismissWalkthroughIfPresent(page);
- await expect(page.getByLabel('Name', { exact: true })).toBeVisible({ timeout: 30_000 });
-}
-
-/** Where the caret sits inside a text input, read from the live DOM. */
-function caret(input: Locator): Promise<number | null> {
- return input.evaluate(el => (el as HTMLInputElement).selectionStart);
-}
-
-async function placeCaret(input: Locator, offset: number) {
- await input.evaluate((el, at) => {
- const field = el as HTMLInputElement;
- field.focus();
- field.setSelectionRange(at, at);
- }, offset);
-}
-
-test.describe('Settings forms — caret behaviour while typing', () => {
- test.beforeEach(async ({ page }) => {
- await bootAuthenticatedPage(page, 'pw-w1-forms');
- await openAgentEditor(page);
- });
-
- test('typing at the end leaves the caret at the end', async ({ page }) => {
- const name = page.getByLabel('Name', { exact: true });
- await name.click();
- await page.keyboard.type('Research');
-
- await expect(name).toHaveValue('Research');
- expect(await caret(name)).toBe('Research'.length);
- });
-
- // The W4 defect, asked of a settings field: type one character into the
- // middle and the caret must sit immediately after it, not jump to the end.
- test('typing mid-string leaves the caret after the inserted character', async ({ page }) => {
- const name = page.getByLabel('Name', { exact: true });
- await name.click();
- await page.keyboard.type('Reearch');
-
- await placeCaret(name, 2);
- await page.keyboard.type('s');
-
- await expect(name).toHaveValue('Research');
- expect(await caret(name)).toBe(3);
- });
-
- // The consequence that makes the chat-composer bug user-visible: if the caret
- // jumps on the first keystroke, the SECOND one lands at the end and the text
- // comes out scrambled. Two characters is the smallest test that shows it.
- test('two consecutive mid-string keystrokes both land where they were typed', async ({
- page,
- }) => {
- const name = page.getByLabel('Name', { exact: true });
- await name.click();
- await page.keyboard.type('Rearch');
-
- await placeCaret(name, 2);
- await page.keyboard.type('s');
- await page.keyboard.type('e');
-
- await expect(name).toHaveValue('Research');
- expect(await caret(name)).toBe(4);
- });
-
- test('backspace mid-string keeps the caret at the deletion point', async ({ page }) => {
- const name = page.getByLabel('Name', { exact: true });
- await name.click();
- await page.keyboard.type('Resxearch');
-
- await placeCaret(name, 4);
- await page.keyboard.press('Backspace');
-
- await expect(name).toHaveValue('Research');
- expect(await caret(name)).toBe(3);
- });
-
- // The ID field is rewritten from the Name on every keystroke until it is
- // touched, so it is the most likely place for a reset-driven caret jump.
- test('the ID field keeps its caret when edited directly', async ({ page }) => {
- const id = page.getByLabel('ID', { exact: true });
- await id.click();
- await page.keyboard.type('reearch-agent');
-
- await placeCaret(id, 2);
- await page.keyboard.type('s');
-
- await expect(id).toHaveValue('research-agent');
- expect(await caret(id)).toBe(3);
- });
-});
-
-test.describe('Settings forms — the Name/ID coupling, driven by keyboard', () => {
- test.beforeEach(async ({ page }) => {
- await bootAuthenticatedPage(page, 'pw-w1-forms-coupling');
- await openAgentEditor(page);
- });
-
- test('the ID auto-slugs from the Name as it is typed', async ({ page }) => {
- await page.getByLabel('Name', { exact: true }).click();
- await page.keyboard.type('My Research Agent');
-
- await expect(page.getByLabel('ID', { exact: true })).toHaveValue('my-research-agent');
- });
-
- // The `idTouched` latch, in a real browser. My jsdom test of this fires a
- // synthetic change event; this types, which is what a user does and what
- // exercises the per-keystroke re-render.
- test('editing the ID stops the Name from overwriting it', async ({ page }) => {
- const name = page.getByLabel('Name', { exact: true });
- const id = page.getByLabel('ID', { exact: true });
-
- await name.click();
- await page.keyboard.type('My Research');
- await expect(id).toHaveValue('my-research');
-
- await id.click();
- await id.press('ControlOrMeta+a');
- await page.keyboard.type('custom-id');
-
- await name.click();
- await page.keyboard.press('End');
- await page.keyboard.type(' Agent');
-
- await expect(name).toHaveValue('My Research Agent');
- await expect(id).toHaveValue('custom-id');
- });
-
- test('Tab moves from Name to the ID field', async ({ page }) => {
- const name = page.getByLabel('Name', { exact: true });
- await name.click();
- await page.keyboard.type('Tabbed');
- await page.keyboard.press('Tab');
-
- // Focus is what a keyboard user actually experiences; jsdom tests assert
- // values and never this.
- await expect(page.getByLabel('ID', { exact: true })).toBeFocused();
- });
-
- test('the Create button enables only once a usable id exists', async ({ page }) => {
- const create = page.getByRole('button', { name: 'Create agent' });
- // Description is independently required by the current agent editor;
- // satisfy it so this assertion isolates the generated ID gate.
- await page.getByLabel('Description').fill('Caret interaction test agent.');
- await expect(create).toBeDisabled();
-
- // Punctuation-only slugs to '', so it must stay disabled.
- await page.getByLabel('Name', { exact: true }).click();
- await page.keyboard.type('!!!');
- await expect(create).toBeDisabled();
-
- await page.keyboard.type('Ok');
- await expect(create).toBeEnabled();
- });
-});
diff --git a/app/test/playwright/specs/settings-leaf-workflows.spec.ts b/app/test/playwright/specs/settings-leaf-workflows.spec.ts
index 8b517dffbf..f171b213b5 100644
--- a/app/test/playwright/specs/settings-leaf-workflows.spec.ts
+++ b/app/test/playwright/specs/settings-leaf-workflows.spec.ts
@@ -2,7 +2,6 @@ import { expect, type Page, test } from '@playwright/test';
import {
bootAuthenticatedPage,
- callCoreRpc,
dismissWalkthroughIfPresent,
waitForAppReady,
} from '../helpers/core-rpc';
@@ -60,12 +59,11 @@ function unwrap<T>(value: T | { result: T }): T {
test.describe('Settings leaf workflows', () => {
test('appearance theme persists in app state', async ({ page }) => {
- await openSettings(page, 'pw-settings-appearance', '/settings/appearance');
+ await openSettings(page, 'pw-settings-appearance', '/settings/theme');
- // Panel title dropped in the PanelPage migration; the theme radios confirm
- // the Appearance panel mounted.
- await expect(page.getByRole('radio', { name: /Dark/ })).toBeVisible();
- await page.getByRole('radio', { name: /Dark/ }).click();
+ const dark = page.getByLabel('Theme variant').getByText('Dark', { exact: true });
+ await expect(dark).toBeVisible();
+ await dark.click();
await expect.poll(() => themeState(page)).toMatchObject({ mode: 'dark' });
await expect.poll(() => persistedThemeState(page)).toMatchObject({ mode: 'dark' });
@@ -74,36 +72,6 @@ test.describe('Settings leaf workflows', () => {
await expect.poll(() => themeState(page)).toMatchObject({ mode: 'dark' });
});
- test('agents/new creates a custom agent that appears in the registry', async ({ page }) => {
- const agentId = `pw-researcher-${Date.now()}`;
- await openSettings(page, 'pw-settings-agent-new', '/settings/agents/new');
-
- // Page title dropped in the PanelPage migration; the Name field confirms the
- // agent editor mounted.
- await expect(page.getByRole('textbox', { name: 'Name' })).toBeVisible();
- await page.getByRole('textbox', { name: 'Name' }).fill('Playwright Researcher');
- await page.getByRole('textbox', { name: 'ID', exact: true }).fill(agentId);
- await page.getByLabel('Description').fill('Validates settings agent authoring in E2E.');
- await page.getByLabel('Model (optional)').selectOption('hint:reasoning');
- await page
- .getByLabel('System prompt (optional)')
- .fill('Prefer concise citations and explain uncertainty.');
- await page.getByRole('button', { name: 'Add tools' }).click();
- await page.getByRole('button', { name: /Allow all tools/ }).click();
- await page.getByRole('button', { name: 'Done', exact: true }).click();
- await page.getByRole('button', { name: 'Create agent' }).click();
-
- await expect(page).toHaveURL(/#\/settings\/agents$/);
- const agent = await callCoreRpc<{
- agent?: { id: string; model?: string; tool_allowlist?: string[] };
- }>('openhuman.agent_registry_get', { id: agentId });
- expect(agent.agent).toMatchObject({
- id: agentId,
- model: 'hint:reasoning',
- tool_allowlist: ['*'],
- });
- });
-
test('retired task sources route lands on Connections', async ({ page }) => {
await openSettings(page, 'pw-settings-task-sources', '/settings/task-sources');
diff --git a/app/test/playwright/specs/settings-navigation-panels.spec.ts b/app/test/playwright/specs/settings-navigation-panels.spec.ts
index bf46068aba..bcbf73513c 100644
--- a/app/test/playwright/specs/settings-navigation-panels.spec.ts
+++ b/app/test/playwright/specs/settings-navigation-panels.spec.ts
@@ -52,22 +52,15 @@ import {
*/
const PANELS = [
{ id: 'appearance', route: 'appearance', heading: 'Appearance', marker: 'font-size-slider' },
+ { id: 'theme', route: 'theme', heading: 'Theme Studio', marker: 'theme-studio-panel' },
{ id: 'privacy', route: 'privacy', heading: 'Privacy', marker: 'privacy-mode-options' },
- { id: 'devices', route: 'devices', heading: 'Devices', marker: null, text: 'Pair iPhone' },
{
id: 'security',
route: 'security',
- heading: 'Security',
+ heading: 'Keychain',
marker: null,
text: 'Retry keychain detection',
},
- {
- id: 'notifications',
- route: 'notifications',
- heading: 'Notifications',
- marker: null,
- text: 'Categories',
- },
{
id: 'agent-access',
route: 'agent-access',
@@ -164,7 +157,7 @@ test.describe('Settings navigation — clicking through the sidebar', () => {
});
test('walks three panels in sequence without stale content', async ({ page }) => {
- for (const step of ['security', 'devices', 'about'] as const) {
+ for (const step of ['security', 'theme', 'about'] as const) {
const expected = PANELS.find(p => p.id === step)!.heading;
await page.getByTestId(`settings-nav-${step}`).click();
// `toHaveText` retries, so this also proves the PREVIOUS panel's heading
@@ -205,7 +198,7 @@ test.describe('Settings navigation — browser history', () => {
await expect(panelHeading(page)).toHaveText('Appearance', { timeout: 30_000 });
await page.getByTestId('settings-nav-security').click();
- await expect(panelHeading(page)).toHaveText('Security', { timeout: 30_000 });
+ await expect(panelHeading(page)).toHaveText('Keychain', { timeout: 30_000 });
await page.goBack();
await expect(panelHeading(page)).toHaveText('Appearance', { timeout: 30_000 });
@@ -215,7 +208,7 @@ test.describe('Settings navigation — browser history', () => {
.toBe('#/settings/appearance');
await page.goForward();
- await expect(panelHeading(page)).toHaveText('Security', { timeout: 30_000 });
+ await expect(panelHeading(page)).toHaveText('Keychain', { timeout: 30_000 });
});
test('a reload keeps you on the panel you deep-linked to', async ({ page }) => {
diff --git a/app/test/playwright/specs/settings-theme-import-validation.spec.ts b/app/test/playwright/specs/settings-theme-import-validation.spec.ts
index 592dfaa518..128d6fc944 100644
--- a/app/test/playwright/specs/settings-theme-import-validation.spec.ts
+++ b/app/test/playwright/specs/settings-theme-import-validation.spec.ts
@@ -18,9 +18,8 @@ import {
* which calls `.trim()` on it and throws, crashing the panel on a theme that
* was by then already in the store.
*
- * The panel is reached at `/settings/appearance`, which embeds
- * `ThemeStudioPanel` (`AppearancePanel.tsx:98`); the standalone
- * `/settings/theme` route redirects there.
+ * The panel lives at `/settings/theme`; `/settings/appearance` is for font
+ * sizing and layout preferences.
*
* The observable signal for accept-vs-reject is the textarea. `handleImport`
* clears `importText` only on the success path, and sets `importError` only on
@@ -33,15 +32,11 @@ const importButton = (page: Page) =>
page.getByTestId('app-content-surface').getByRole('button', { name: 'Import', exact: true });
const importError = (page: Page) => page.getByText('Could not parse that theme JSON.');
-async function openAppearance(page: Page) {
- // Import lives on the Theme Studio tab, inside a collapsed accordion item.
- await page.goto('/#/settings/appearance#studio');
+async function openThemeStudio(page: Page) {
+ await page.goto('/#/settings/theme');
await waitForAppReady(page);
await dismissWalkthroughIfPresent(page);
- await expect(page.getByRole('heading', { level: 1 })).toHaveText('Appearance', {
- timeout: 20_000,
- });
- await page.getByRole('button', { name: 'Import theme' }).click();
+ await expect(page.getByTestId('theme-card-import')).toBeVisible({ timeout: 20_000 });
await expect(importBox(page)).toBeVisible({ timeout: 20_000 });
}
@@ -53,8 +48,8 @@ async function attemptImport(page: Page, json: string) {
test.describe('Theme Studio — import validation', () => {
test.beforeEach(async ({ page }) => {
- await bootAuthenticatedPage(page, 'pw-w8-theme-import', '/settings/appearance');
- await openAppearance(page);
+ await bootAuthenticatedPage(page, 'pw-w8-theme-import', '/settings/theme');
+ await openThemeStudio(page);
});
// Each of these reached the store before #5946. `null` and `[]` are the two
diff --git a/app/test/playwright/specs/top-level-functional-flows.spec.ts b/app/test/playwright/specs/top-level-functional-flows.spec.ts
index 2b9ce10e19..604cdec611 100644
--- a/app/test/playwright/specs/top-level-functional-flows.spec.ts
+++ b/app/test/playwright/specs/top-level-functional-flows.spec.ts
@@ -103,7 +103,7 @@ test.describe('Top-level functional flows', () => {
['/home', /Assistant|Message|Chat/],
['/connections', /Composio Integrations|Composio|Channels|MCP Servers/],
['/chat', /Assistant|Message|Chat/],
- ['/settings/notifications-hub', /Notifications/],
+ ['/settings/notifications-hub', /Account|Plan & billing/],
['/notifications', /Notifications|System Events/],
];