Skip to content

Commit 6036b96

Browse files
committed
chore(config): update Playwright trace recording setting and modify server start command for better debugging
1 parent a7bbe87 commit 6036b96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

playwright.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ export default defineConfig({
99
reporter: "html", // Reporter to use
1010
use: {
1111
baseURL: "http://localhost:3000", // Base URL for actions like page.goto()
12-
trace: "on-first-retry", // Record trace only when retrying a failed test
12+
trace: "retain-on-failure", // Record trace if test fails
1313
},
1414
webServer: {
15-
command: "pnpm start", // Command to start the dev server
15+
command: "DEBUG=next:start pnpm start",
1616
url: "http://localhost:3000", // URL to wait for
1717
reuseExistingServer: !process.env.CI, // Reuse server locally, start fresh in CI
1818
timeout: 240 * 1000, // Increase timeout for server start (4 minutes)

0 commit comments

Comments
 (0)