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
refactor(e2e): remove connectivity state differentiation tests
Steven Enamakel45050bd675bc
diff --git a/app/scripts/e2e-run-all-flows.sh b/app/scripts/e2e-run-all-flows.shindex 87bb940e5a..b9b9d4fad0 100755--- a/app/scripts/e2e-run-all-flows.sh+++ b/app/scripts/e2e-run-all-flows.sh@@ -331,7 +331,6 @@ if should_run_suite "provider-web"; then# notion-flow.spec.ts was removed; skip to avoid "spec not found" failure.# run "test/e2e/specs/notion-flow.spec.ts" "notion" "provider-web"run "test/e2e/specs/composio-triggers-flow.spec.ts" "composio-triggers" "provider-web"- run "test/e2e/specs/connectivity-state-differentiation.spec.ts" "connectivity-state" "provider-web"_mini_summary "provider-web"fidiff --git a/app/test/e2e/specs/connectivity-state-differentiation.spec.ts b/app/test/e2e/specs/connectivity-state-differentiation.spec.tsdeleted file mode 100644index 6522a21f90..0000000000--- a/app/test/e2e/specs/connectivity-state-differentiation.spec.ts+++ /dev/null@@ -1,54 +0,0 @@-/**- * E2E coverage for device-offline feedback in the signed-in home surface.- * Socket recovery and local-core health selection have focused store and- * service tests; this suite exercises the user-visible browser event path.- */-import { waitForApp, waitForAppReady } from '../helpers/app-helpers';-import { textExists } from '../helpers/element-helpers';-import { resetApp } from '../helpers/reset-app';-import { navigateViaHash } from '../helpers/shared-flows';-import { resetMockBehavior, startMockServer, stopMockServer } from '../mock-server';--const USER_ID = 'e2e-connectivity-state-differentiation';--async function setDeviceOffline(offline: boolean): Promise<void> {- await browser.execute((value: boolean) => {- Object.defineProperty(navigator, 'onLine', { configurable: true, value: !value });- window.dispatchEvent(new Event(value ? 'offline' : 'online'));- }, offline);-}--describe('Connectivity state differentiation', () => {- before(async function beforeSuite() {- this.timeout(120_000);- await startMockServer();- await waitForApp();- await resetApp(USER_ID);- });-- afterEach(async () => {- resetMockBehavior();- try {- await setDeviceOffline(false);- } catch {- // A failed WebView will be reset by the next test setup.- }- });-- after(async () => {- await stopMockServer();- });-- it('shows device-offline copy when the browser fires offline', async function () {- this.timeout(30_000);- await navigateViaHash('/home');- await waitForAppReady(10_000);- await setDeviceOffline(true);-- await browser.waitUntil(async () => await textExists('Your device is offline right now'), {- timeout: 10_000,- interval: 250,- timeoutMsg: 'home did not render its device-offline message',- });- });-});diff --git a/app/test/e2e/specs/notifications.spec.ts b/app/test/e2e/specs/notifications.spec.tsindex 15adbd49ba..c3ac123eee 100644--- a/app/test/e2e/specs/notifications.spec.ts+++ b/app/test/e2e/specs/notifications.spec.ts@@ -73,82 +73,7 @@ describe('Notifications', () => {await stopMockServer();});- it('Notifications page renders integration notifications', async () => {- await callOpenhumanRpc('openhuman.notification_ingest', {- provider: 'e2e',- title: 'E2E Test Notification',- body: 'Created by the notifications E2E spec',- raw_payload: {},- });- if (!supportsExecuteScript()) {- stepLog('skipping UI test — supportsExecuteScript() is false (Appium Mac2)');- return;- }-- // Navigate to /notifications via direct hash set — the route exists but- // may not have a bottom-tab button. Retry the hash set if it bounces.- for (let attempt = 0; attempt < 3; attempt++) {- await browser.execute(() => {- // `/notifications` now lands on the Welcome landing; jump to the alerts view.- window.location.hash = '/notifications?view=main';- });- await browser.pause(1_500);- const h = await browser.execute(() => window.location.hash);- if (String(h).includes('/notifications')) break;- stepLog(`hash bounce attempt ${attempt}`, { hash: h });- }-- const currentHash = await browser.execute(() => window.location.hash);- stepLog('Notifications route hash', { currentHash });-- // If the route redirected (e.g. auth guard), skip the UI assertions- // because this spec owns notifications presentation, not RPC result semantics.- expect(String(currentHash)).toContain('/notifications');-- await waitForNotificationsSections(10_000);-- // The integration notifications section wraps NotificationCenter.- const sectionVisible = await browser.execute(() => {- const el = document.querySelector('[data-testid="integration-notifications-section"]');- return el !== null;- });-- if (!sectionVisible) {- const tree = await dumpAccessibilityTree();- stepLog('integration-notifications-section not found', { tree: tree.slice(0, 4000) });- }- expect(sectionVisible).toBe(true);- await waitForText('E2E Test Notification', 8_000);- await waitForText('Created by the notifications E2E spec', 8_000);- });-- it('Notifications page shows System Events section', async () => {- if (!supportsExecuteScript()) {- stepLog('skipping UI test — supportsExecuteScript() is false (Appium Mac2)');- return;- }-- // The bare route intentionally shows the notifications welcome screen.- // Select the main view before asserting sections from the alerts UI.- await navigateViaHash('/notifications?view=main');- await waitForNotificationsSections(10_000);-- const sectionVisible = await browser.execute(() => {- const el = document.querySelector('[data-testid="system-events-section"]');- return el !== null;- });-- if (!sectionVisible) {- const tree = await dumpAccessibilityTree();- stepLog('system-events-section not found', { tree: tree.slice(0, 4000) });- }- expect(sectionVisible).toBe(true);-- // The heading text and empty state — the section renders t('alerts.title') = 'Alerts'- // and t('alerts.empty') = 'No alerts yet' when no system notifications are queued.- await waitForText('Alerts', 8_000);- await waitForText('No alerts yet', 8_000);- });+ // Rendered notification content and empty-state UI are owned by Playwright.it('native notification permission command returns a valid state', async () => {if (!supportsExecuteScript()) {diff --git a/app/test/playwright/specs/connectivity-state-differentiation.spec.ts b/app/test/playwright/specs/connectivity-state-differentiation.spec.tsdeleted file mode 100644index a9c1dfbc2e..0000000000--- a/app/test/playwright/specs/connectivity-state-differentiation.spec.ts+++ /dev/null@@ -1,44 +0,0 @@-import { expect, test } from '@playwright/test';--import { bootAuthenticatedPage, callCoreRpc, 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', () => {- test.beforeEach(async ({ page }, testInfo) => {- const testSlug = testInfo.title.toLowerCase().replace(/[^a-z0-9]+/g, '-');- await bootAuthenticatedPage(page, 'pw-connectivity-diff-' + testSlug, '/home');- });-- test.afterEach(async ({ page }) => {- await setDeviceOffline(page, false);- });-- // `backend-only` is the browser's Socket.IO link to the local core. The mock- // immediately accepts reconnects after a server-side disconnect, so the- // transient reconnect label cannot be asserted deterministically here;- // selector behavior has focused store coverage.-- test('keeps device-offline state distinct while the local core remains reachable', async ({- page,- }) => {- await setDeviceOffline(page, true);- 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- // 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);- });-});