Skip to content

Commit

Permalink
Improve e2e workflow (#997)
Browse files Browse the repository at this point in the history
  • Loading branch information
typeofweb authored Oct 29, 2023
1 parent 16ac590 commit c8ed551
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@ const baseURL = process.env.BASE_URL || `http://localhost:${PORT}`;

export default defineConfig({
testDir: "./__tests__",
fullyParallel: !process.env.CI,
workers: process.env.CI ? 1 : undefined,
fullyParallel: true,
workers: process.env.CI ? 3 : undefined,
forbidOnly: !!process.env.CI,
retries: 0,
reporter: process.env.CI ? [["html"], ["github"], ["list"]] : [["html"], ["list"]],

use: {
baseURL,
trace: "on-first-retry",
screenshot: process.env.CI ? "only-on-failure" : "off",
video: process.env.CI ? "retain-on-failure" : "off",
},

projects: [
Expand Down

0 comments on commit c8ed551

Please sign in to comment.