Skip to content

Commit 9a1b7e7

Browse files
committed
chore: disable parallel test running
1 parent 69e21f1 commit 9a1b7e7

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

playwright.config.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
1-
import { defineConfig, devices } from '@playwright/test';
1+
import { defineConfig, devices } from "@playwright/test";
22

33
/**
44
* Read environment variables from file.
55
* https://github.com/motdotla/dotenv
66
*/
77
// require('dotenv').config();
88

9-
/**
9+
/**q
1010
* See https://playwright.dev/docs/test-configuration.
1111
*/
1212
export default defineConfig({
13-
testDir: './test/e2e-playwright',
13+
testDir: "./test/e2e-playwright",
1414
/* Run tests in files in parallel */
15-
fullyParallel: true,
15+
fullyParallel: false,
1616
/* Fail the build on CI if you accidentally left test.only in the source code. */
1717
forbidOnly: !!process.env.CI,
1818
/* Retry on CI only */
19-
retries: process.env.CI ? 2 : 0,
19+
retries: 0,
2020
/* Opt out of parallel tests on CI. */
21-
workers: process.env.CI ? 1 : undefined,
21+
workers: undefined,
2222
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
23-
reporter: 'html',
23+
reporter: "html",
2424
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2525
use: {
2626
/* Base URL to use in actions like `await page.goto('/')`. */
2727
// baseURL: 'http://127.0.0.1:3000',
2828

2929
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
30-
trace: 'on-first-retry',
30+
trace: "on-first-retry",
3131
},
3232

3333
/* Configure projects for major browsers */
3434
projects: [
3535
{
36-
name: 'chromium',
37-
use: { ...devices['Desktop Chrome'] },
36+
name: "chromium",
37+
use: { ...devices["Desktop Chrome"] },
3838
},
3939

40-
{
41-
name: 'firefox',
42-
use: { ...devices['Desktop Firefox'] },
43-
},
40+
// {
41+
// name: 'firefox',
42+
// use: { ...devices['Desktop Firefox'] },
43+
// },
4444

45-
{
46-
name: 'webkit',
47-
use: { ...devices['Desktop Safari'] },
48-
},
45+
// {
46+
// name: 'webkit',
47+
// use: { ...devices['Desktop Safari'] },
48+
// },
4949

5050
/* Test against mobile viewports. */
5151
// {

0 commit comments

Comments
 (0)