Skip to content

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

test(e2e): retire stale settings contracts

Steven Enamakel00df95d860e2
diff --git a/app/test/playwright/specs/navigation-smoothness.spec.ts b/app/test/playwright/specs/navigation-smoothness.spec.ts
index d8faae1c5b..c0acde00ba 100644
--- a/app/test/playwright/specs/navigation-smoothness.spec.ts
+++ b/app/test/playwright/specs/navigation-smoothness.spec.ts
@@ -60,7 +60,6 @@ test.describe('Navigation Smoothness', () => {
// the chat "new window" empty state renders the former Home hero card.
await page.goto('/#/home');
await waitForAppReady(page);
- await expect(page.locator('[data-walkthrough="home-card"]')).toBeVisible();
await expect(page.getByTestId('chat-message-input')).toBeVisible();
await expect.poll(async () => page.evaluate(() => window.location.hash)).toMatch(/^#\/chat/);
});
diff --git a/app/test/playwright/specs/settings-account-preferences.spec.ts b/app/test/playwright/specs/settings-account-preferences.spec.ts
index 03deb31aa9..1bcd2e57cf 100644
--- a/app/test/playwright/specs/settings-account-preferences.spec.ts
+++ b/app/test/playwright/specs/settings-account-preferences.spec.ts
@@ -60,13 +60,7 @@ test.describe('Settings - Account Preferences', () => {
// Panel titles were dropped in the PanelPage migration; assert the panel's
// stable test id instead of the old heading.
await expect(page.getByTestId('account-panel')).toBeVisible();
- // The Account family surfaces its leaves via the sub-nav pill row above the
- // panel (the two-pane sidebar replaced the old section-hub list).
- await expect(page.getByTestId('settings-subnav-team')).toBeVisible();
- await expect(page.getByTestId('settings-subnav-privacy')).toBeVisible();
- await expect(page.getByTestId('settings-subnav-migration')).toBeVisible();
- // Recovery phrase + wallet balances live under the Wallet family, not Account.
- await expect(page.getByTestId('settings-subnav-recovery-phrase')).toHaveCount(0);
+ await expect(page.getByText(/Account|Profile/).first()).toBeVisible();
});
test('renders the crypto settings section route with recovery phrase + balances', async ({
@@ -113,17 +107,12 @@ test.describe('Settings - Account Preferences', () => {
expect((wallet.result?.accounts ?? []).length).toBeGreaterThan(0);
});
- test('persists privacy analytics and meet handoff toggles to core config', async ({ page }) => {
+ test('persists the privacy analytics toggle to core config', async ({ page }) => {
const beforeAnalytics = await callCoreRpc<{ result?: { enabled?: boolean } }>(
'openhuman.config_get_analytics_settings',
{}
);
- const beforeMeet = await callCoreRpc<{ result?: { auto_orchestrator_handoff?: boolean } }>(
- 'openhuman.config_get_meet_settings',
- {}
- );
const initialAnalytics = Boolean(beforeAnalytics.result?.enabled);
- const initialMeet = Boolean(beforeMeet.result?.auto_orchestrator_handoff);
await gotoSettingsRoute(page, '/settings/privacy');
@@ -150,25 +139,11 @@ test.describe('Settings - Account Preferences', () => {
})
.toBe(!initialAnalytics);
- await expect(page.getByTestId('privacy-meet-handoff-toggle')).toBeChecked({
- checked: initialMeet,
- });
- await page.getByTestId('privacy-meet-handoff-toggle').click();
- await expect
- .poll(async () => {
- const meet = await callCoreRpc<{ result?: { auto_orchestrator_handoff?: boolean } }>(
- 'openhuman.config_get_meet_settings',
- {}
- );
- return Boolean(meet.result?.auto_orchestrator_handoff);
- })
- .toBe(!initialMeet);
-
- const snapshot = await callCoreRpc<{
- result?: { analyticsEnabled?: boolean; meetAutoOrchestratorHandoff?: boolean };
- }>('openhuman.app_state_snapshot', {});
+ const snapshot = await callCoreRpc<{ result?: { analyticsEnabled?: boolean } }>(
+ 'openhuman.app_state_snapshot',
+ {}
+ );
expect(Boolean(snapshot.result?.analyticsEnabled)).toBe(!initialAnalytics);
- expect(Boolean(snapshot.result?.meetAutoOrchestratorHandoff)).toBe(!initialMeet);
});
test('opens the billing route and settles the redirect status copy', async ({ page }) => {
diff --git a/app/test/playwright/specs/settings-advanced-config.spec.ts b/app/test/playwright/specs/settings-advanced-config.spec.ts
index 41008764c7..728117fc27 100644
--- a/app/test/playwright/specs/settings-advanced-config.spec.ts
+++ b/app/test/playwright/specs/settings-advanced-config.spec.ts
@@ -1,4 +1,4 @@
-import { expect, type Locator, type Page, test } from '@playwright/test';
+import { expect, type Page, test } from '@playwright/test';
import {
bootAuthenticatedPage,
@@ -38,18 +38,6 @@ async function gotoSettingsRoute(page: Page, hash: string): Promise<void> {
await dismissWalkthroughIfPresent(page);
}
-function providerEnabledToggle(
- page: Page,
- providerName: 'gmail' | 'slack' | 'discord' | 'whatsapp'
-): Locator {
- const providerOrder = ['gmail', 'slack', 'discord', 'whatsapp'] as const;
- const index = providerOrder.indexOf(providerName);
- if (index < 0) {
- throw new Error(`Unsupported provider row: ${providerName}`);
- }
- return page.getByRole('checkbox', { name: 'Enabled' }).nth(index);
-}
-
test.describe('Settings - Advanced Config', () => {
test.beforeEach(async ({ page }) => {
await bootAuthenticatedPage(page, 'pw-settings-advanced-user');
@@ -64,30 +52,6 @@ test.describe('Settings - Advanced Config', () => {
await expect(page.getByRole('button', { name: 'Restart Tour' })).toBeVisible();
});
- test('persists notification routing settings through core RPC', async ({ page }) => {
- const before = await callCoreRpc<{ settings?: { enabled?: boolean } }>(
- 'openhuman.notification_settings_get',
- { provider: 'gmail' }
- );
- const initialEnabled = Boolean(before.settings?.enabled);
-
- await gotoSettingsRoute(page, '/settings/notifications');
- await page.getByRole('tab', { name: 'Routing' }).click();
- await expect(page.getByText('Notification Intelligence')).toBeVisible();
-
- await providerEnabledToggle(page, 'gmail').click();
-
- await expect
- .poll(async () => {
- const after = await callCoreRpc<{ settings?: { enabled?: boolean } }>(
- 'openhuman.notification_settings_get',
- { provider: 'gmail' }
- );
- return Boolean(after.settings?.enabled);
- })
- .toBe(!initialEnabled);
- });
-
test('persists composio trigger triage settings', async ({ page }) => {
await gotoSettingsRoute(page, '/settings/composio-triggers');
@@ -179,34 +143,11 @@ test.describe('Settings - Advanced Config', () => {
expect(backend.result?.api_key_set).toBe(false);
});
- test('persists agent chat draft state to localStorage', async ({ page }) => {
- await gotoSettingsRoute(page, '/settings/agent-chat');
-
- // The panel's description copy also contains the word "overrides", so scope
- // to the section heading to avoid a strict-mode match on both.
- await expect(page.getByRole('heading', { name: 'Overrides' })).toBeVisible();
- await page.getByPlaceholder('gpt-4o').fill('gpt-4.1-mini');
- await page.getByPlaceholder('0.7').fill('0.2');
-
- await expect
- .poll(async () =>
- page.evaluate(() => {
- const raw = window.localStorage.getItem('openhuman.settings.agentChat.history');
- if (!raw) return null;
- const payload = JSON.parse(raw) as { modelOverride?: string; temperature?: string };
- return {
- modelOverride: payload.modelOverride ?? null,
- temperature: payload.temperature ?? null,
- };
- })
- )
- .toEqual({ modelOverride: 'gpt-4.1-mini', temperature: '0.2' });
- });
-
test('mounts the remaining advanced settings routes', async ({ page }) => {
await gotoSettingsRoute(page, '/settings/local-model-debug');
- // The two-pane sidebar also renders this label, so scope to the first match.
- await expect(page.getByText('Local Model Debug').first()).toBeVisible();
+ await expect
+ .poll(async () => page.evaluate(() => window.location.hash))
+ .toContain('/connections');
await gotoSettingsRoute(page, '/settings/about');
// The About description copy also contains "software updates"; match the
diff --git a/app/test/playwright/specs/settings-ai-skills.spec.ts b/app/test/playwright/specs/settings-ai-skills.spec.ts
index 51ca04113f..f49adabc84 100644
--- a/app/test/playwright/specs/settings-ai-skills.spec.ts
+++ b/app/test/playwright/specs/settings-ai-skills.spec.ts
@@ -21,8 +21,8 @@ test.describe('Settings - AI & Skills', () => {
await expect
.poll(async () => page.evaluate(() => window.location.hash))
.toContain('/connections');
- await expect(page.getByRole('heading', { name: 'LLM Providers', exact: true })).toBeVisible();
- await expect(page.getByRole('heading', { name: 'Routing', exact: true })).toBeVisible();
+ await expect(page.getByTestId('ai-tab-providers')).toBeVisible();
+ await expect(page.getByTestId('ai-tab-routing')).toBeVisible();
});
test('mounts Tools panel and shows tool toggles', async ({ page }) => {
diff --git a/app/test/playwright/specs/skill-socket-reconnect.spec.ts b/app/test/playwright/specs/skill-socket-reconnect.spec.ts
index 3c0ee70ef5..71e756d5d3 100644
--- a/app/test/playwright/specs/skill-socket-reconnect.spec.ts
+++ b/app/test/playwright/specs/skill-socket-reconnect.spec.ts
@@ -15,6 +15,6 @@ test.describe('Socket reconnect skill sync smoke', () => {
await bootAuthenticatedPage(page, 'pw-skill-socket-reconnect', '/home');
await waitForAppReady(page);
await dismissWalkthroughIfPresent(page);
- await expect(page.locator('[data-walkthrough="home-card"]')).toBeVisible();
+ await expect(page.getByTestId('chat-message-input')).toBeVisible();
});
});
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 dc455b0b35..f6cd46d7d0 100644
--- a/app/test/playwright/specs/top-level-functional-flows.spec.ts
+++ b/app/test/playwright/specs/top-level-functional-flows.spec.ts
@@ -98,9 +98,9 @@ test.describe('Top-level functional flows', () => {
await bootAuthenticatedPage(page, 'pw-top-level-ui', '/home');
const routes: Array<[string, RegExp]> = [
// Home folded into the unified chat surface — /home redirects to /chat.
- ['/home', /Your assistant is ready|Reasoning/],
+ ['/home', /Assistant|Message|Chat/],
['/connections', /Composio Integrations|Composio|Channels|MCP Servers/],
- ['/chat', /Your assistant is ready|Reasoning/],
+ ['/chat', /Assistant|Message|Chat/],
['/settings/notifications-hub', /Notifications/],
['/notifications', /Notifications|System Events/],
['/rewards', /Rewards|Referrals|Redeem/],
@@ -110,7 +110,11 @@ test.describe('Top-level functional flows', () => {
await page.goto(`/#${hash}`);
await waitForAppReady(page);
await dismissWalkthroughIfPresent(page);
- await expect(page.locator('#root')).toContainText(text);
+ if (hash === '/home' || hash === '/chat') {
+ await expect(page.getByTestId('chat-message-input')).toBeVisible();
+ } else {
+ await expect(page.locator('#root')).toContainText(text);
+ }
}
});
});
diff --git a/app/test/playwright/specs/user-journey-settings-round-trip.spec.ts b/app/test/playwright/specs/user-journey-settings-round-trip.spec.ts
index 60ff46bd9a..0eaa4fa146 100644
--- a/app/test/playwright/specs/user-journey-settings-round-trip.spec.ts
+++ b/app/test/playwright/specs/user-journey-settings-round-trip.spec.ts
@@ -18,9 +18,9 @@ const panels: PanelCheck[] = [
markers: ['Billing moved to the web', 'Open billing dashboard', 'credits'],
},
// Home folded into the unified chat surface — /home redirects to /chat.
- { hash: '/home', markers: ['Your assistant is ready', 'Reasoning'] },
+ { hash: '/home', markers: [] },
// /chat is the Assistant surface (thread list + agent chat header).
- { hash: '/chat', markers: ['Your assistant is ready', 'Reasoning'] },
+ { hash: '/chat', markers: [] },
];
async function waitForPanelLoad(page: Parameters<typeof test>[0]['page']) {
@@ -49,8 +49,12 @@ test.describe('User journey - settings round-trip', () => {
await page.goto(`/#${panel.hash}`);
await waitForPanelLoad(page);
- const text = await page.locator('#root').innerText();
- expect(panel.markers.some(marker => text.includes(marker))).toBe(true);
+ if (panel.hash === '/home' || panel.hash === '/chat') {
+ await expect(page.getByTestId('chat-message-input')).toBeVisible();
+ } else {
+ const text = await page.locator('#root').innerText();
+ expect(panel.markers.some(marker => text.includes(marker))).toBe(true);
+ }
});
}
});