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 "max-failures should stop workers" (#7918)

Dmitry Gozman82d2ec0b2d3d
diff --git a/tests/playwright-test/max-failures.spec.ts b/tests/playwright-test/max-failures.spec.ts
index a0bb4bd3c2..2a931d832a 100644
--- a/tests/playwright-test/max-failures.spec.ts
+++ b/tests/playwright-test/max-failures.spec.ts
@@ -85,7 +85,7 @@ test('max-failures should stop workers', async ({ runInlineTest }) => {
'a.spec.js': `
const { test } = pwt;
test('passed', async () => {
- await new Promise(f => setTimeout(f, 500));
+ await new Promise(f => setTimeout(f, 2000));
});
test('failed', async () => {
test.expect(1).toBe(2);
@@ -98,7 +98,7 @@ test('max-failures should stop workers', async ({ runInlineTest }) => {
});
test('interrupted counts as skipped', async () => {
console.log('\\n%%interrupted');
- await new Promise(f => setTimeout(f, 2000));
+ await new Promise(f => setTimeout(f, 5000));
});
test('skipped', async () => {
console.log('\\n%%skipped');