Skip to content

Commit b1aaee4

Browse files
committed
chore(e2e): log browser logs to console
1 parent df4b266 commit b1aaee4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

e2e/adapters-e2e/tests/express.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
import { expect, test } from '@playwright/test';
22

3+
test.beforeEach(async ({ page }) => {
4+
page.on('console', (msg) => {
5+
// eslint-disable-next-line no-console
6+
console.log(`[browser ${msg.type()}] ${msg.text()}`);
7+
});
8+
});
9+
310
test.describe('Verifying Express Adapter', () => {
411
test('should ignore unknown qdata', async ({ page, request }) => {
512
page.goto('/');

0 commit comments

Comments
 (0)