Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: remove stray logging (#13572)
Dmitry Gozman2f570fa58651
diff --git a/tests/library/chromium/session.spec.ts b/tests/library/chromium/session.spec.tsindex 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<void>(f => client.on('Debugger.scriptParsed', event => {diff --git a/tests/library/snapshotter.spec.ts b/tests/library/snapshotter.spec.tsindex 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('<div><button id="button1"></button><button id="button2"></button></div>');const snapshot1 = await snapshotter.captureSnapshot(toImpl(page), 'snapshot1');expect(distillSnapshot(snapshot1)).toBe('<DIV><BUTTON id=\"button1\"></BUTTON><BUTTON id=\"button2\"></BUTTON></DIV>');@@ -86,7 +85,6 @@ it.describe('snapshots', () => {});it('should respect attr removal', async ({ page, toImpl, snapshotter }) => {- page.on('console', console.log);await page.setContent('<div id="div" attr1="1" attr2="2"></div>');const snapshot1 = await snapshotter.captureSnapshot(toImpl(page), 'snapshot1');expect(distillSnapshot(snapshot1)).toBe('<DIV id=\"div\" attr1=\"1\" attr2=\"2\"></DIV>');