Fail an E2E test on anything the browser logs, in all three engines #56
Reference in New Issue
Block a user
Delete Branch "e2e-console-guard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Every Playwright spec now takes its
testfrome2e-tests/console-guard.ts, which watches every page a test opens: a console error or warning, or an uncaught page error, fails the test that provoked it — at any step."All browsers" is literal for the Ory-free suites —
visual.spec.ts+language.spec.tsrun in Chromium, Firefox and WebKit (the per-test@enginestag is gone). The Ory-backed suites share one backend and stay on Chromium.Two explicit escapes: the COOP header Chromium drops because the e2e stacks serve plain http over container hostnames, and per-test
allowConsole(/…/)— used once, by the 404 spec. Nothing in the app needed fixing; those two were all the sweep found.src/e2e-console-guard.test.tslocks the wiring in the unit gate, since a spec importingteststraight from Playwright would run unwatched and green.