Fix playwright config mismatch
CI Pipeline / test (20) (pull_request) Successful in 7m8s
CI Pipeline / test (18) (pull_request) Successful in 7m24s
CI Pipeline / e2e (webkit) (pull_request) Has been cancelled
CI Pipeline / visual-regression (pull_request) Has been cancelled
CI Pipeline / performance (pull_request) Has been cancelled
CI Pipeline / storybook (pull_request) Has been cancelled
CI Pipeline / lint (pull_request) Has been cancelled
CI Pipeline / build (pull_request) Has been cancelled
CI Pipeline / e2e (firefox) (pull_request) Has been cancelled
CI Pipeline / e2e (chromium) (pull_request) Has been cancelled

This commit is contained in:
adilallo
2025-09-02 19:06:51 -06:00
parent edf8637d7d
commit 1cda0e7ad3
8 changed files with 196 additions and 116 deletions
+12 -7
View File
@@ -15,7 +15,7 @@ export default defineConfig({
retries: process.env.CI ? 2 : 0,
reporter: [["list"], ["html", { open: "never" }]],
use: {
baseURL: process.env.BASE_URL || "http://localhost:3000",
baseURL: process.env.BASE_URL || "http://localhost:3010",
trace: "on-first-retry",
screenshot: "only-on-failure",
video: "retain-on-failure",
@@ -23,12 +23,17 @@ export default defineConfig({
viewport: { width: 1280, height: 800 }, // Consistent viewport
deviceScaleFactor: 1, // Consistent device scale
},
webServer: {
command: "npm run dev",
url: "http://localhost:3000",
reuseExistingServer: true,
timeout: 120_000,
},
// Only start webServer in non-CI environments
...(process.env.CI
? {}
: {
webServer: {
command: "npm run dev",
url: "http://localhost:3010",
reuseExistingServer: true,
timeout: 120_000,
},
}),
// OS-agnostic snapshot path template (removes platform-specific suffixes)
snapshotPathTemplate:
"{testDir}/{testFileName}-snapshots/{arg}-{projectName}.png",