hermes-agent/apps/desktop/e2e
ethernet 5604e1256f test(desktop): auto-fail e2e tests on error banner
Adds a shared test fixture (e2e/test.ts) that wraps @playwright/test's
page with an error-banner guard. When any [role="alert"] element
(error notification toast) appears in the DOM during a test, the test
fails with the error message text.

The guard uses:
- A MutationObserver (injected via addInitScript) that watches for
  [role="alert"] elements appearing at any point during the test
- A final DOM scan in afterEach for alerts still visible at teardown
- Deduplication so the same error text only fires once

All existing e2e specs updated to import { test, expect } from './test'
instead of '@playwright/test'. No per-spec setup needed — the guard is
auto-installed on every page via the extended fixture.

This catches issues like the "resume failed" error banner that can
appear during session loading — previously the test would pass while
an error toast was silently visible on screen.
2026-07-20 17:22:25 -04:00
..
fixtures test(desktop): e2e proving session-load re-render bug 2026-07-20 16:40:59 -04:00
scripts test(desktop): e2e proving session-load re-render bug 2026-07-20 16:40:59 -04:00
boot-failure.spec.ts test(desktop): auto-fail e2e tests on error banner 2026-07-20 17:22:25 -04:00
boot.spec.ts test(desktop): auto-fail e2e tests on error banner 2026-07-20 17:22:25 -04:00
chat.spec.ts test(desktop): auto-fail e2e tests on error banner 2026-07-20 17:22:25 -04:00
fix-electron-tracing.ts fix(desktop): address review — overlay a11y, e2e typecheck, nits 2026-07-20 14:37:39 -04:00
fixtures.ts test(desktop): e2e proving session-load re-render bug 2026-07-20 16:40:59 -04:00
large-session-reload.spec.ts test(desktop): auto-fail e2e tests on error banner 2026-07-20 17:22:25 -04:00
launch-packaged-app.spec.ts test(desktop): auto-fail e2e tests on error banner 2026-07-20 17:22:25 -04:00
mock-backend-setup.spec.ts test(desktop): auto-fail e2e tests on error banner 2026-07-20 17:22:25 -04:00
mock-server.ts feat(desktop/e2e): Playwright E2E suite with visual regression diffs 2026-07-20 11:44:40 -04:00
onboarding.spec.ts test(desktop): auto-fail e2e tests on error banner 2026-07-20 17:22:25 -04:00
test.ts test(desktop): auto-fail e2e tests on error banner 2026-07-20 17:22:25 -04:00
visual-snapshot.ts fix(desktop): link artifacts in E2E summary + upload all screenshots 2026-07-20 11:44:41 -04:00