Skip to content

Commit faae158

Browse files
committed
Serial CI
1 parent e37dc6f commit faae158

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

playwright.config.ts

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

3-
const webServer = false;
3+
const webServer = !!process.env.CI;
44

55
/**
66
* See https://playwright.dev/docs/test-configuration.
@@ -13,6 +13,7 @@ export default defineConfig({
1313
forbidOnly: !!process.env.CI,
1414
/* Retry on CI only */
1515
retries: process.env.CI ? 2 : 0,
16+
workers: process.env.CI ? 1 : undefined,
1617
use: {
1718
baseURL: webServer ? 'http://127.0.0.1:4173' : 'https://maskable.app/',
1819
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */

0 commit comments

Comments
 (0)