diff --git a/tests/page/page-evaluate-no-stall.spec.ts b/tests/page/page-evaluate-no-stall.spec.ts index f513aad3b8..84fddbbd71 100644 --- a/tests/page/page-evaluate-no-stall.spec.ts +++ b/tests/page/page-evaluate-no-stall.spec.ts @@ -50,7 +50,8 @@ test.describe('non-stalling evaluate', () => { // Testing this as a race. expect([ 'Frame does not yet have a main execution context', - 'Frame is currently attempting a navigation' + 'Frame is currently attempting a navigation', + 'Navigation interrupted the evaluation', ]).toContain(error.message); }); }); diff --git a/tests/tracing.spec.ts b/tests/tracing.spec.ts index 8a0bceea54..57e501ad7c 100644 --- a/tests/tracing.spec.ts +++ b/tests/tracing.spec.ts @@ -18,11 +18,12 @@ import { expect, contextTest as test, browserTest } from './config/browserTest'; import yauzl from 'yauzl'; import jpeg from 'jpeg-js'; -test('should collect trace', async ({ context, page, server, browserName }, testInfo) => { +test('should collect trace', async ({ context, page, server }, testInfo) => { await context.tracing.start({ name: 'test', screenshots: true, snapshots: true }); await page.goto(server.EMPTY_PAGE); await page.setContent(''); await page.click('"Click"'); + await page.waitForTimeout(2000); // Give it some time to produce screenshots. await page.close(); await context.tracing.stop({ path: testInfo.outputPath('trace.zip') });