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 some tests (#41245)

Dmitry Gozmanf9074d2a2d00
diff --git a/tests/electron/playwright.config.ts b/tests/electron/playwright.config.ts
index 3306bc713d..28f2439a80 100644
--- a/tests/electron/playwright.config.ts
+++ b/tests/electron/playwright.config.ts
@@ -32,7 +32,7 @@ const config: Config<PlaywrightWorkerOptions & PlaywrightTestOptions> = {
timeout: 10000,
},
timeout: 30000,
- globalTimeout: 5400000,
+ globalTimeout: 7200000,
workers: process.env.CI ? 1 : undefined,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 3 : 0,
diff --git a/tests/library/browsercontext-basic.spec.ts b/tests/library/browsercontext-basic.spec.ts
index 3d9aec28c8..8f498c6a1b 100644
--- a/tests/library/browsercontext-basic.spec.ts
+++ b/tests/library/browsercontext-basic.spec.ts
@@ -69,8 +69,9 @@ it('should be able to click across browser contexts', async function({ browser }
await page2.close();
});
-it('should be able to hover across browser contexts in parallel', async function({ browser }) {
+it('should be able to hover across browser contexts in parallel', async function({ browser, browserName, headless }) {
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/40562' });
+ it.fixme(browserName === 'firefox' && !headless, 'Hover is flaky in headed Firefox');
const html = `
<style>
diff --git a/tests/library/playwright.config.ts b/tests/library/playwright.config.ts
index 966cc30a69..a61919e08e 100644
--- a/tests/library/playwright.config.ts
+++ b/tests/library/playwright.config.ts
@@ -72,7 +72,7 @@ const config: Config<PlaywrightWorkerOptions & PlaywrightTestOptions & TestModeW
},
maxFailures: 200,
timeout: video ? 60000 : 30000,
- globalTimeout: 5400000,
+ globalTimeout: 7200000,
workers: undefined,
fullyParallel: !process.env.CI,
forbidOnly: !!process.env.CI,
diff --git a/tests/library/trace-viewer.spec.ts b/tests/library/trace-viewer.spec.ts
index 2597046e9f..707d89fd8e 100644
--- a/tests/library/trace-viewer.spec.ts
+++ b/tests/library/trace-viewer.spec.ts
@@ -768,7 +768,7 @@ test('should capture attribute mutations inside a popup window', {
await expect(popup.locator('#overlay')).toBeHidden();
});
- const frame = await traceViewer.snapshotFrame('Click');
+ const frame = await traceViewer.snapshotFrame('Expect');
await expect(frame.locator('#overlay')).toHaveClass('no-display');
});