Skip to content

Commit

Permalink
test: improve playwright config
Browse files Browse the repository at this point in the history
  • Loading branch information
diecodev committed May 8, 2024
1 parent 8c06794 commit a649ed0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ const config: PlaywrightTestConfig = {
/* Run tests in files in parallel */
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: 2,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: "html",
use: {
actionTimeout: 0,
trace: "on-first-retry",
baseURL: "http://localhost:5173",
},
projects: [
{
Expand All @@ -42,6 +43,7 @@ const config: PlaywrightTestConfig = {
command: "npm run dev",
cwd: "./test",
port: 5173,
url: "http://localhost:5173",
reuseExistingServer: !process.env.CI,
},
};
Expand Down

0 comments on commit a649ed0

Please sign in to comment.