docs: clarify behavior of each trace and video mode#41127
Conversation
Add a comparison table and a scenario table to the recording options guide, and tighten the per-mode descriptions so the difference between retain-on-failure and the other modes is unambiguous.
Mirror the trace mode clarification for the video option: tighten the per-mode descriptions and add comparison and scenario tables to the recording options guide.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Rendered section: Trace modesThe
The following table shows which traces are kept in a few common scenarios, assuming
:::note |
| | `'on-first-retry'` | — | first retry | first retry | | ||
| | `'on-all-retries'` | — | first retry | both retries | | ||
|
|
||
| :::note |
There was a problem hiding this comment.
I am not sure this note helps at all. Same for the video note.
| | [`property: TestOptions.trace`] | Playwright can produce test traces while running the tests. Later on, you can view the trace and get detailed information about Playwright execution by opening [Trace Viewer](./trace-viewer.md). Options include: `'off'`, `'on'`, `'retain-on-failure'` and `'on-first-retry'` | | ||
| | [`property: TestOptions.video`] | Playwright can record [videos](./videos.md) for your tests. Options include: `'off'`, `'on'`, `'retain-on-failure'` and `'on-first-retry'` | | ||
|
|
||
| #### Trace modes |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Test results for "MCP"7230 passed, 1103 skipped Merge workflow run. |
Test results for "tests 1"1 failed 5 flaky39527 passed, 771 skipped Merge workflow run. |
Summary
traceandvideomode records and keeps, so the difference betweenretain-on-failureand the other modes is unambiguous (follow-up to removingretain-all-failuresin chore(trace): remove retain-all-failures trace and video mode #41123).retain-on-failurealready keeps a failed run's trace/video even when a later retry passes.