Skip to content

Commit d6ffa9a

Browse files
committed
Preserve traces/videos on first (failing) test run
Some tests can't be retried (in this case, deleting the account at the end of a test run), so having only a trace/video of the retry is not going to be useful to debug the actual cause of the failure.
1 parent d96ed43 commit d6ffa9a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

functional-tests/playwright.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ export default defineConfig({
154154
baseURL: getBaseTestEnvUrl(),
155155
/* Automatically take screenshot only on failures */
156156
screenshot: "only-on-failure",
157-
/* Automatically record video only on retries */
158-
video: "retry-with-video",
159-
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
160-
trace: "on-first-retry",
157+
/* Automatically record video when tests fail */
158+
video: "retain-on-failure",
159+
/* Collect trace when tests fail. See https://playwright.dev/docs/trace-viewer */
160+
trace: "retain-on-failure",
161161
},
162162
/* Configure projects for major browsers */
163163
projects: [

0 commit comments

Comments
 (0)