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: unflake "should stop tracing on requestContext.dispose()" (#23489)
Yury Semikhatsky9cd49d5dd5b4
diff --git a/tests/playwright-test/playwright.fetch.spec.ts b/tests/playwright-test/playwright.fetch.spec.tsindex 540413aeef..3ecc4045c9 100644--- a/tests/playwright-test/playwright.fetch.spec.ts+++ b/tests/playwright-test/playwright.fetch.spec.ts@@ -57,16 +57,12 @@ test('should stop tracing on requestContext.dispose()', async ({ runInlineTest,'Content-Type': 'text/plain; charset=utf-8','Content-Length': '3',});- setTimeout(() => {- resp.end('Hi!');- }, 5000);});const result = await runInlineTest({'playwright.config.ts': `module.exports = {reporter: [['html', { open: 'never' }]],use: {- browserName: 'firefox',trace:'retain-on-failure'}};@@ -79,7 +75,7 @@ test('should stop tracing on requestContext.dispose()', async ({ runInlineTest,await request.get('${server.PREFIX}/slow');});`,- }, { workers: 1, timeout: 3000 });+ }, { workers: 1, timeout: 2000 });expect(result.output).not.toContain('ENOENT');expect(result.exitCode).toBe(1);expect(result.failed).toBe(1);