The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(connectivity): enable device-offline differentiation spec
Steven Enamakel577d513f45a7
diff --git a/app/test/playwright/specs/connectivity-state-differentiation.spec.ts b/app/test/playwright/specs/connectivity-state-differentiation.spec.tsindex 6385037c55..bc10efb023 100644--- a/app/test/playwright/specs/connectivity-state-differentiation.spec.ts+++ b/app/test/playwright/specs/connectivity-state-differentiation.spec.ts@@ -2,24 +2,37 @@ import { test } from '@playwright/test';import { bootAuthenticatedPage, waitForAppReady } from '../helpers/core-rpc';+async function setDeviceOffline(page: import('@playwright/test').Page, offline: boolean) {+ await page.evaluate(isOffline => {+ Object.defineProperty(navigator, 'onLine', { configurable: true, value: !isOffline });+ window.dispatchEvent(new Event(isOffline ? 'offline' : 'online'));+ }, offline);+}+test.describe('Connectivity state differentiation (issue #1527)', () => {test.beforeEach(async ({ page }, testInfo) => {const testSlug = testInfo.title.toLowerCase().replace(/[^a-z0-9]+/g, '-');await bootAuthenticatedPage(page, 'pw-connectivity-diff-' + testSlug, '/home');});- test.skip('shows backend-reconnecting status when backend is unreachable but internet is up', async () => {});-- test.skip('shows reconnecting status after socket is force-disconnected server-side', async () => {});+ test.afterEach(async ({ page }) => {+ await setDeviceOffline(page, false);+ });- test.skip('shows device-offline copy (not backend-only) when window fires offline', async () => {});+ // `backend-only` is the browser's Socket.IO link to the local core. A 503+ // from the hosted backend does not drive this state; selector behavior has+ // focused store coverage.- test.skip('status updates to healthy without reinstall after backend recovers from 503', async () => {});+ test.skip('shows reconnecting status after socket is force-disconnected server-side', async () => {}); // https://github.com/tinyhumansai/openhuman/issues/1527- test.skip('shows core-offline indicator (not device-offline) when internet is up but core is unreachable', async () => {- // Placeholder until a stop-core command exists in the web/test lane.+ test('shows device-offline copy (not backend-only) when window fires offline', async ({ page }) => {+ await setDeviceOffline(page, true);+ await expect(page.getByText('Your device is offline right now')).toBeVisible();});+ // The core is a separate process in this lane, but the runner has no+ // supported control for stopping and restarting it during a page test.+test('baseline app shell is ready in the browser lane', async ({ page }) => {await waitForAppReady(page);});