Skip to content

Commit 77a810d

Browse files
authored
test: Run playwright tests in parallel (#7334)
1 parent a306abd commit 77a810d

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

packages/integration-tests/playwright.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import type { PlaywrightTestConfig } from '@playwright/test';
22

33
const config: PlaywrightTestConfig = {
44
retries: 0,
5-
workers: 3,
5+
// Run tests inside of a single file in parallel
6+
fullyParallel: true,
7+
// Use 5 workers on CI, else use defaults (based on available CPU cores)
8+
// Note that 5 is a random number selected to work well with our CI setup
9+
workers: process.env.CI ? 5 : undefined,
610
};
711
export default config;

packages/integration-tests/suites/replay/privacyDefault/test.ts-snapshots/privacy.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@
3232
"type": 2,
3333
"tagName": "link",
3434
"attributes": {
35-
"rel": "icon",
36-
"type": "image/png",
37-
"href": "file://assets/icon/favicon.png"
35+
"rr_width": "[0-50]px",
36+
"rr_height": "[0-50]px"
3837
},
3938
"childNodes": [],
4039
"id": 6

packages/nextjs/playwright.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ const config: PlaywrightTestConfig = {
66
use: {
77
baseURL: 'http://localhost:3000',
88
},
9-
workers: 3,
9+
// Run tests inside of a single file in parallel
10+
fullyParallel: true,
11+
// Use 5 workers on CI, else use defaults (based on available CPU cores)
12+
// Note that 5 is a random number selected to work well with our CI setup
13+
workers: process.env.CI ? 5 : undefined,
1014
webServer: {
1115
cwd: path.join(__dirname, 'test', 'integration'),
1216
command: 'yarn start',

packages/remix/playwright.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ const config: PlaywrightTestConfig = {
55
use: {
66
baseURL: 'http://localhost:3000',
77
},
8-
workers: 3,
8+
// Run tests inside of a single file in parallel
9+
fullyParallel: true,
10+
// Use 5 workers on CI, else use defaults (based on available CPU cores)
11+
// Note that 5 is a random number selected to work well with our CI setup
12+
workers: process.env.CI ? 5 : undefined,
913
webServer: {
1014
command: '(cd test/integration/ && yarn build && yarn start)',
1115
port: 3000,

0 commit comments

Comments
 (0)