Console error patterns the auto-fixture treats as environmental
flakiness rather than test failures.
The 63 of the 71 E2E specs that import test from here use this
fixture; the other 8 import @playwright/test directly.
Specs that also make their own
explicit assertNoConsoleErrors(page) call keep
that explicit contract (it reads the viewer's in-page buffer — which several
other helpers and specs still read too — and a bare call passes no
allow-list at all, though two call sites do pass their own);
the auto-fixture
covers cases where the spec author forgot to add the explicit
call. Headless-browser environmental noise (WebGL context loss
under GPU pressure, intermittent fetch failures during teardown)
is filtered here so it doesn't drown out real regressions.
Keep the list narrow — it's safer to add a per-spec annotation than
to silence a broad pattern globally.
Console error patterns the auto-fixture treats as environmental flakiness rather than test failures.
The 63 of the 71 E2E specs that import
testfrom here use this fixture; the other 8 import@playwright/testdirectly. Specs that also make their own explicitassertNoConsoleErrors(page)call keep that explicit contract (it reads the viewer's in-page buffer — which several other helpers and specs still read too — and a bare call passes no allow-list at all, though two call sites do pass their own); the auto-fixture covers cases where the spec author forgot to add the explicit call. Headless-browser environmental noise (WebGL context loss under GPU pressure, intermittent fetch failures during teardown) is filtered here so it doesn't drown out real regressions.Keep the list narrow — it's safer to add a per-spec annotation than to silence a broad pattern globally.