Skip to content

Commit 1b98c6d

Browse files
committed
test: add screen shot
1 parent a8d1e87 commit 1b98c6d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/e2e/playwright.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ export default defineConfig({
2020
},
2121
globalSetup: path.join(__dirname, "globalSetup.ts"),
2222
use: {
23+
// Automatically take a screenshot when a test fails.
24+
screenshot: "only-on-failure",
25+
// Capture full trace on retry for deep debugging (includes screenshots, DOM snapshots, network).
2326
trace: "on-first-retry",
2427
},
2528
outputDir: path.join(__dirname, "..", "..", "test-results", "e2e"),

0 commit comments

Comments
 (0)