Skip to content

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

test(e2e): update connectivity and settings tests

Steven Enamakelc483cdfa0186
diff --git a/app/test/playwright/specs/connectivity-state-differentiation.spec.ts b/app/test/playwright/specs/connectivity-state-differentiation.spec.ts
index ac5308f10c..a9c1dfbc2e 100644
--- a/app/test/playwright/specs/connectivity-state-differentiation.spec.ts
+++ b/app/test/playwright/specs/connectivity-state-differentiation.spec.ts
@@ -1,6 +1,6 @@
import { expect, test } from '@playwright/test';
-import { bootAuthenticatedPage, waitForAppReady } from '../helpers/core-rpc';
+import { bootAuthenticatedPage, callCoreRpc, waitForAppReady } from '../helpers/core-rpc';
async function setDeviceOffline(page: import('@playwright/test').Page, offline: boolean) {
await page.evaluate(isOffline => {
@@ -24,11 +24,15 @@ test.describe('Connectivity state differentiation', () => {
// transient reconnect label cannot be asserted deterministically here;
// selector behavior has focused store coverage.
- test('shows device-offline copy (not backend-only) when window fires offline', async ({
+ test('keeps device-offline state distinct while the local core remains reachable', async ({
page,
}) => {
await setDeviceOffline(page, true);
- await expect(page.getByText('Your device is offline right now')).toBeVisible();
+ await expect.poll(() => page.evaluate(() => navigator.onLine)).toBe(false);
+ await expect(page.getByRole('navigation', { name: 'Home' })).toBeVisible();
+
+ const ping = await callCoreRpc<{ ok?: boolean }>('core.ping', {});
+ expect(ping.ok).toBe(true);
});
// The core is a separate process in this lane, but the runner has no
diff --git a/app/test/playwright/specs/settings-account-preferences.spec.ts b/app/test/playwright/specs/settings-account-preferences.spec.ts
index bdb9ecbd58..2ee2b070f2 100644
--- a/app/test/playwright/specs/settings-account-preferences.spec.ts
+++ b/app/test/playwright/specs/settings-account-preferences.spec.ts
@@ -42,6 +42,7 @@ async function ensureRecoveryPhraseGenerateMode(page: Page): Promise<void> {
if (await replaceButton.isVisible()) {
await replaceButton.click();
+ await page.getByRole('menuitem', { name: 'Create a New Wallet' }).click();
await page.getByRole('button', { name: 'I understand, replace my wallet' }).click();
}
@@ -81,6 +82,8 @@ test.describe('Settings - Account Preferences', () => {
await gotoSettingsRoute(page, '/settings/recovery-phrase');
await ensureRecoveryPhraseGenerateMode(page);
+ await page.getByRole('button', { name: 'Reveal recovery phrase' }).click();
+ await expect(page.getByRole('button', { name: 'Copy to Clipboard' })).toBeEnabled();
await page.locator('#mnemonic-confirm-checkbox').check();
await page.getByRole('button', { name: 'Save Recovery Phrase' }).click();
diff --git a/docs/plans/2026-10-20-e2e-runner-consolidation.md b/docs/plans/2026-10-20-e2e-runner-consolidation.md
index 14f35b6e71..e7bc9e0df8 100644
--- a/docs/plans/2026-10-20-e2e-runner-consolidation.md
+++ b/docs/plans/2026-10-20-e2e-runner-consolidation.md
@@ -42,7 +42,7 @@ Paths in the table are relative to `app/test/{e2e,playwright}/specs/`; each base
| 12 | `chat-tool-error-recovery.spec.ts` | PW. Interrupted-turn error, reenabled composer, cleared in-flight and successful new send/reply; preserve native’s final in-flight oracle explicitly. |
| 13 | `command-palette.spec.ts` | PW with M6. Preserve five seed actions, Enter navigation/Escape, reopen-after-close listener survival, mod+/ directory headings/New Chat/Toggle Sidebar and unfocused ? opening/closing. Existing arrow-key companion remains. |
| 14 | `composio-triggers-flow.spec.ts` | PW. ACTIVE Gmail manage dialog, trigger-toggles and New Gmail Message label, using existing local Composio fixtures. |
-| 15 | `connectivity-state-differentiation.spec.ts` | PW. Same navigator.onLine/offline event and exact device-offline copy; do not invent core restart or backend reconnect coverage from this test. |
+| 15 | `connectivity-state-differentiation.spec.ts` | PW. Toggle `navigator.onLine` and dispatch the browser events, confirm the shell remains mounted and local `core.ping` still succeeds. The former “Your device is offline right now” text is absent from current production UI and the selector has no component consumer, so do not claim a visible offline banner. Do not invent core restart or backend reconnect coverage from this test. |
| 16 | `connector-gmail-composio.spec.ts` | PW. Card selectable, failed state stays usable, expired auth management/reconnect affordance remains signed in. Transfer the explicit native reconnect affordance if absent. |
| 17 | `conversations-web-channel-flow.spec.ts` | PW with M3. Preserve UI send and actual inference request, no chat_send-unavailable error; add native in-flight navigation-away/back continuation and no generic error. Native suite is skipped on Linux but active on other platforms; record that origin, not a Linux passing baseline. |
| 18 | `core-port-conflict-recovery.spec.ts` | Remove both after moving normal startup into native/browser smoke. No occupied port is established by either source. |