···1111 testDir: './tests/e2e/',
1212 testMatch: /.*\.test\.e2e\.js/, // Match any .test.e2e.js files
13131414- /**
1515- * Only run one test at a time, running multiple could lead to a inconsistent
1616- * database state.
1717- */
1818- fullyParallel: false,
1919- workers: 1,
1414+ // you can adjust this value locally to match your machine's power,
1515+ // or pass `--workers x` to playwright
1616+ workers: process.env.CI ? 1 : 2,
20172118 /* Maximum time one test can run for. */
2219 timeout: 30 * 1000,
23202421 expect: {
2525-2622 /**
2723 * Maximum time expect() should wait for the condition to be met.
2824 * For example in `await expect(locator).toHaveText();`
···3430 forbidOnly: Boolean(process.env.CI),
35313632 /* Retry on CI only */
3737- retries: process.env.CI ? 2 : 0,
3333+ retries: process.env.CI ? 1 : 0,
38343935 /* Reporter to use. See https://playwright.dev/docs/test-reporters */
4036 reporter: process.env.CI ? 'list' : [['list'], ['html', {outputFolder: 'tests/e2e/reports/', open: 'never'}]],