diff --git a/tests/library/chromium/session.spec.ts b/tests/library/chromium/session.spec.ts index bb9dfc4af1..4d3a3dec3f 100644 --- a/tests/library/chromium/session.spec.ts +++ b/tests/library/chromium/session.spec.ts @@ -55,7 +55,6 @@ it('should enable and disable domains independently', async function({ page }) { // JS coverage enables and then disables Debugger domain. await page.coverage.startJSCoverage(); await page.coverage.stopJSCoverage(); - page.on('console', console.log); // generate a script in page and wait for the event. await Promise.all([ new Promise(f => client.on('Debugger.scriptParsed', event => { diff --git a/tests/library/snapshotter.spec.ts b/tests/library/snapshotter.spec.ts index 41de4d90cd..075c59ca5f 100644 --- a/tests/library/snapshotter.spec.ts +++ b/tests/library/snapshotter.spec.ts @@ -76,7 +76,6 @@ it.describe('snapshots', () => { }); it('should respect node removal', async ({ page, toImpl, snapshotter }) => { - page.on('console', console.log); await page.setContent('
'); const snapshot1 = await snapshotter.captureSnapshot(toImpl(page), 'snapshot1'); expect(distillSnapshot(snapshot1)).toBe('
'); @@ -86,7 +85,6 @@ it.describe('snapshots', () => { }); it('should respect attr removal', async ({ page, toImpl, snapshotter }) => { - page.on('console', console.log); await page.setContent('
'); const snapshot1 = await snapshotter.captureSnapshot(toImpl(page), 'snapshot1'); expect(distillSnapshot(snapshot1)).toBe('
');