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(e2e): sidebar, palette keyboard, redirect history and responsive — all green in browser\n\n25 tests across four specs, run against the real web lane (Chromium + a\nlocally-built openhuman-core), not jsdom.\n\nTwo corrections the browser forced, neither visible to any jsdom test:\n\n * /webhooks does NOT land on /settings/integrations. That target is itself a\n redirect (settingsRouteElements.tsx:129) to /connections, so the real\n landing is /connections and there is no Integrations settings page --\n despite AppRoutes.tsx:237 saying 'land on the Integrations settings'. The\n jsdom route-table suite renders only the top-level table and never mounts\n the nested settings routes, so it sees the declared target and stops.\n\n * The sidebar is 224px of a 414px viewport (54%). clampWidth\n (RootShellLayout.tsx:38) clamps against SIDEBAR_MIN_WIDTH=188 /\n MAX_WIDTH=420 and never against window.innerWidth, and tauri.conf.json\n declares the window resizable with no minWidth, so the floor is reachable.\n Nothing overflows and content keeps >40%, so this is a proportion problem\n rather than a broken layout. My first version asserted 'never more than\n half' -- an invariant the product never promised -- and failed at 224px.\n Re-pinned as an explicit characterization test.\n\nPer-spec timeout raised to 180s: bootAuthenticatedPage costs 30-60s against\nplaywright.config.ts's 60s off-CI budget (the sidebar suite's first test\nmeasured 59.1s, and two responsive tests failed outright inside beforeEach).\nRaised here rather than in the shared config. After the raise the same tests\nrun in 0.9-3.9s, which confirms the cost is boot, not assertions.\n
M3gA-Mind2748f7b9bc1e
diff --git a/app/test/playwright/specs/app-shell-responsive.spec.ts b/app/test/playwright/specs/app-shell-responsive.spec.tsindex 88ddd02fa9..adaac8cb09 100644--- a/app/test/playwright/specs/app-shell-responsive.spec.ts+++ b/app/test/playwright/specs/app-shell-responsive.spec.ts@@ -2,6 +2,14 @@ import { expect, type Page, test } from '@playwright/test';import { bootAuthenticatedPage, dismissWalkthroughIfPresent } from '../helpers/core-rpc';+// `bootAuthenticatedPage` runs in every `beforeEach` and costs 30-60s against a+// locally-built debug core — the sidebar suite's first test measured 59.1s+// against the config's 60s non-CI budget, and this suite's first two tests blew+// it outright ("Test timeout of 60000ms exceeded while running beforeEach").+// The work is the harness's, not the assertions': raise the ceiling here rather+// than in the shared playwright.config.ts, which is not this worker's to edit.+test.describe.configure({ timeout: 180_000 });+/*** Narrow-viewport behaviour of the root shell.*@@ -63,21 +71,37 @@ test.describe('App shell — narrow viewports', () => {});}- test('the sidebar never occupies more than half the window at 414px', async ({ page }) => {+ test('PINS CURRENT BEHAVIOUR: the sidebar width has no viewport-relative clamp', async ({+ page,+ }) => {+ // Measured, not assumed. `clampWidth` (`RootShellLayout.tsx:38`) clamps the+ // sidebar against the constants `SIDEBAR_MIN_WIDTH = 188` and+ // `SIDEBAR_MAX_WIDTH = 420` (`components/ui/Sidebar.tsx:48-49`) and never+ // against `window.innerWidth`. So the sidebar keeps its full width however+ // narrow the window gets, and takes a majority of the screen below ~450px.+ //+ // Whether that matters is a product call, and `tauri.conf.json` does not+ // settle it: the window is `resizable: true` with NO `minWidth`, so a user+ // can drag below 414px and the 188px floor then owns half the app.+ //+ // I originally wrote this as `expect(width).toBeLessThan(414 / 2)` — an+ // invariant the product never promised. It failed at 224px. Pinning the+ // real behaviour instead, so that adding a viewport clamp is a deliberate+ // change that updates this test rather than a silent one. See W5 BUG-10.await page.setViewportSize({ width: 414, height: 896 });await expect.poll(() => page.evaluate(() => window.innerWidth)).toBe(414);const count = await sidebar(page).count();- if (count === 0) {- // A shell that hides the sidebar outright at phone width is a valid- // answer — record it rather than failing.- expect(count).toBe(0);- return;- }+ if (count === 0) return; // a shell that hides it outright is also fineconst box = await sidebar(page).boundingBox();if (box === null || box.width === 0) return; // collapsed away entirely- expect(box.width).toBeLessThan(414 / 2);++ // The floor is absolute: never below SIDEBAR_MIN_WIDTH, whatever the window.+ expect(box.width).toBeGreaterThanOrEqual(188);+ // And it currently exceeds half the window at this size. If this ever+ // stops being true, the clamp changed — update the test with the reason.+ expect(box.width).toBeGreaterThan(414 / 2);});test('resizing back to full width restores the layout', async ({ page }) => {diff --git a/app/test/playwright/specs/app-shell-sidebar.spec.ts b/app/test/playwright/specs/app-shell-sidebar.spec.tsindex e86e195e12..257f15757b 100644--- a/app/test/playwright/specs/app-shell-sidebar.spec.ts+++ b/app/test/playwright/specs/app-shell-sidebar.spec.ts@@ -2,6 +2,14 @@ import { expect, type Page, test } from '@playwright/test';import { bootAuthenticatedPage, dismissWalkthroughIfPresent } from '../helpers/core-rpc';+// `bootAuthenticatedPage` runs in every `beforeEach` and costs 30-60s against a+// locally-built debug core — the sidebar suite's first test measured 59.1s+// against the config's 60s non-CI budget, and this suite's first two tests blew+// it outright ("Test timeout of 60000ms exceeded while running beforeEach").+// The work is the harness's, not the assertions': raise the ceiling here rather+// than in the shared playwright.config.ts, which is not this worker's to edit.+test.describe.configure({ timeout: 180_000 });+/*** Root-shell sidebar: routing by click, the active-row marker, and the* collapse / icon-only rail (openhuman#5676).diff --git a/app/test/playwright/specs/command-palette-keyboard.spec.ts b/app/test/playwright/specs/command-palette-keyboard.spec.tsindex 2c8ddda756..926b0d8ced 100644--- a/app/test/playwright/specs/command-palette-keyboard.spec.ts+++ b/app/test/playwright/specs/command-palette-keyboard.spec.ts@@ -2,6 +2,14 @@ import { expect, type Page, test } from '@playwright/test';import { bootAuthenticatedPage, dismissWalkthroughIfPresent } from '../helpers/core-rpc';+// `bootAuthenticatedPage` runs in every `beforeEach` and costs 30-60s against a+// locally-built debug core — the sidebar suite's first test measured 59.1s+// against the config's 60s non-CI budget, and this suite's first two tests blew+// it outright ("Test timeout of 60000ms exceeded while running beforeEach").+// The work is the harness's, not the assertions': raise the ceiling here rather+// than in the shared playwright.config.ts, which is not this worker's to edit.+test.describe.configure({ timeout: 180_000 });+/*** Command palette, keyboard-only — the arrow-key path.*diff --git a/app/test/playwright/specs/route-redirect-history.spec.ts b/app/test/playwright/specs/route-redirect-history.spec.tsindex 7dde00d461..a212bfd5f8 100644--- a/app/test/playwright/specs/route-redirect-history.spec.ts+++ b/app/test/playwright/specs/route-redirect-history.spec.ts@@ -2,6 +2,14 @@ import { expect, type Page, test } from '@playwright/test';import { bootAuthenticatedPage, waitForAppReady } from '../helpers/core-rpc';+// `bootAuthenticatedPage` runs in every `beforeEach` and costs 30-60s against a+// locally-built debug core — the sidebar suite's first test measured 59.1s+// against the config's 60s non-CI budget, and this suite's first two tests blew+// it outright ("Test timeout of 60000ms exceeded while running beforeEach").+// The work is the harness's, not the assertions': raise the ceiling here rather+// than in the shared playwright.config.ts, which is not this worker's to edit.+test.describe.configure({ timeout: 180_000 });+/*** Retired routes redirect with `replace`, and the browser Back button must not* hand the user back to the retired path.@@ -26,7 +34,13 @@ const REDIRECTS: ReadonlyArray<readonly [string, string]> = [['/skills', '/connections'],['/channels', '/connections'],['/routines', '/flows'],- ['/webhooks', '/settings/integrations'],+ // Two hops, not one: `/webhooks` redirects to `/settings/integrations`+ // (`AppRoutes.tsx:238`), which is ITSELF a redirect to `/connections`+ // (`settingsRouteElements.tsx:129`). The final landing is what the user sees,+ // so that is what this asserts. Measured in a real browser — the declared+ // target alone would have been wrong, and the jsdom suite could not tell,+ // because it never mounts the nested settings routes.+ ['/webhooks', '/connections'],['/home', '/chat'],['/activity', '/settings/notifications'],['/intelligence', '/settings/notifications'],