Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: unflake "should retain traces for interrupted tests" (#16235)

Dmitry Gozman2fa48483af33
diff --git a/tests/playwright-test/playwright.trace.spec.ts b/tests/playwright-test/playwright.trace.spec.ts
index a247b8186a..5d57398b97 100644
--- a/tests/playwright-test/playwright.trace.spec.ts
+++ b/tests/playwright-test/playwright.trace.spec.ts
@@ -248,13 +248,14 @@ test('should retain traces for interrupted tests', async ({ runInlineTest }, tes
`,
'a.spec.ts': `
pwt.test('test 1', async ({ page }) => {
+ await page.waitForTimeout(2000);
expect(1).toBe(2);
});
`,
'b.spec.ts': `
pwt.test('test 2', async ({ page }) => {
await page.goto('about:blank');
- await page.waitForTimeout(1000);
+ await page.waitForTimeout(5000);
});
`,
}, { workers: 2 });