Context
Follow-up from review of #1275.
Evidence
e2e/payment-qr-device.spec.ts:139-143 — pageerror and console listeners write with console.log and never fail the test:
page.on('pageerror', (err) => {
console.log('[pageerror]', err.message);
});
page.on('console', (msg) => {
if (msg.type() === 'error') console.log('[console.error]', msg.text());
});
Suggested fix
Remove the listeners, or collect errors and assert them against an allow-list at the end of the test. If the log is needed, store it as a Playwright attachment.
Related
Context
Follow-up from review of #1275.
Evidence
e2e/payment-qr-device.spec.ts:139-143—pageerrorandconsolelisteners write withconsole.logand never fail the test:Suggested fix
Remove the listeners, or collect errors and assert them against an allow-list at the end of the test. If the log is needed, store it as a Playwright attachment.
Related