mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-11-21 07:55:08 +00:00
The guard wasn't firing because Electron tests create their own page
via app.firstWindow(), not via Playwright's default page fixture. The
base.afterEach's page fixture was undefined for Electron tests.
Fix: export installErrorBannerGuard + collectErrorBanners from
e2e/test.ts, call installErrorBannerGuard from launchDesktop() and
setupPackagedApp() in fixtures.ts (both firstWindow() call sites),
and use activePage (set by the guard) in afterEach instead of the
default page fixture.
Verified: the guard now catches the 'Resume failed' error banner
('handler error: str object has no attribute get') that appears
during the large-session-reload e2e test.
|
||
|---|---|---|
| .. | ||
| fixtures | ||
| scripts | ||
| boot-failure.spec.ts | ||
| boot.spec.ts | ||
| chat.spec.ts | ||
| fix-electron-tracing.ts | ||
| fixtures.ts | ||
| large-session-reload.spec.ts | ||
| launch-packaged-app.spec.ts | ||
| mock-backend-setup.spec.ts | ||
| mock-server.ts | ||
| onboarding.spec.ts | ||
| test.ts | ||
| visual-snapshot.ts | ||