Skip to content

Commit 2ac2bfd

Browse files
committed
chore: try use only one worker, remove skip fonts
1 parent d08c1f1 commit 2ac2bfd

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

playwright.config.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import { defineConfig } from '@playwright/test';
22

3-
// Skip font-ready wait during screenshots to avoid hangs on CI
4-
// with pages that have many declarative shadow roots (e.g. tooltip placement demo).
5-
// See microsoft/playwright#33330.
6-
process.env.PW_TEST_SCREENSHOT_NO_FONTS_READY = '1';
7-
83
export default defineConfig({
94
testMatch: 'elements/**/*.e2e.ts',
105
timeout: 120 * 1000,
116

12-
workers: process.env.CI ? 2 : 8,
7+
// Parallel workers deadlock on page.screenshot() in headless Chromium
8+
// when multiple pages capture concurrently (compositor stops producing
9+
// frames). Reproduced in the mcr.microsoft.com/playwright container
10+
// used by CI. See microsoft/playwright#33330.
11+
workers: process.env.CI ? 1 : 8,
1312

1413
webServer: process.env.CI ? undefined : {
1514
command: 'npx cem serve --port 8080 --rendering=chromeless',
@@ -37,3 +36,4 @@ export default defineConfig({
3736
process.env.CI ? ['github'] : ['dot'],
3837
],
3938
});
39+

0 commit comments

Comments
 (0)