Skip to content

Commit

Permalink
fix(config): force playwright to run 1 test at a time in one browser
Browse files Browse the repository at this point in the history
  • Loading branch information
NuttyShrimp committed Sep 6, 2024
1 parent aae3f9b commit 24fc9e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions loama/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ export default defineConfig({
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
// Always use 1 worker so we don't create unwanted env's by running 2 tests at the same time
// It forces to only run 1 test in 1 browser at a time
workers: 1,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'html',
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
Expand Down

0 comments on commit 24fc9e3

Please sign in to comment.