test: remove stray logging (#13572)
This commit is contained in:
parent
189a5fa0f8
commit
2f570fa586
|
|
@ -55,7 +55,6 @@ it('should enable and disable domains independently', async function({ page }) {
|
||||||
// JS coverage enables and then disables Debugger domain.
|
// JS coverage enables and then disables Debugger domain.
|
||||||
await page.coverage.startJSCoverage();
|
await page.coverage.startJSCoverage();
|
||||||
await page.coverage.stopJSCoverage();
|
await page.coverage.stopJSCoverage();
|
||||||
page.on('console', console.log);
|
|
||||||
// generate a script in page and wait for the event.
|
// generate a script in page and wait for the event.
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
new Promise<void>(f => client.on('Debugger.scriptParsed', event => {
|
new Promise<void>(f => client.on('Debugger.scriptParsed', event => {
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,6 @@ it.describe('snapshots', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should respect node removal', async ({ page, toImpl, snapshotter }) => {
|
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>');
|
await page.setContent('<div><button id="button1"></button><button id="button2"></button></div>');
|
||||||
const snapshot1 = await snapshotter.captureSnapshot(toImpl(page), 'snapshot1');
|
const snapshot1 = await snapshotter.captureSnapshot(toImpl(page), 'snapshot1');
|
||||||
expect(distillSnapshot(snapshot1)).toBe('<DIV><BUTTON id=\"button1\"></BUTTON><BUTTON id=\"button2\"></BUTTON></DIV>');
|
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 }) => {
|
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>');
|
await page.setContent('<div id="div" attr1="1" attr2="2"></div>');
|
||||||
const snapshot1 = await snapshotter.captureSnapshot(toImpl(page), 'snapshot1');
|
const snapshot1 = await snapshotter.captureSnapshot(toImpl(page), 'snapshot1');
|
||||||
expect(distillSnapshot(snapshot1)).toBe('<DIV id=\"div\" attr1=\"1\" attr2=\"2\"></DIV>');
|
expect(distillSnapshot(snapshot1)).toBe('<DIV id=\"div\" attr1=\"1\" attr2=\"2\"></DIV>');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue