docs: add video to trace viewer docs (#21568)

This commit is contained in:
Debbie O'Brien 2023-03-10 18:45:55 +01:00 committed by GitHub
parent 870edd1aae
commit 0610705546
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 5 deletions

View File

@ -3,6 +3,8 @@ id: trace-viewer-intro
title: "Trace viewer"
---
import LiteYouTube from '@site/src/components/LiteYouTube';
Playwright Trace Viewer is a GUI tool that lets you explore recorded Playwright traces of your tests meaning you can go back and forward through each action of your test and visually see what was happening during each action.
**You will learn**
@ -11,7 +13,10 @@ Playwright Trace Viewer is a GUI tool that lets you explore recorded Playwright
- [How to open the HTML report](/trace-viewer-intro.md#opening-the-html-report)
- [How to open and view the trace](/trace-viewer-intro.md#viewing-the-trace)
<LiteYouTube
id="lfxjs--9ZQs"
title="Viewing Playwright Traces"
/>
## Recording a Trace
By default the [playwright.config](/test-configuration.md#record-test-trace) file will contain the configuration needed to create a `trace.zip` file for each test. Traces are setup to run `on-first-retry` meaning they will be run on the first retry of a failed test. Also `retries` are set to 2 when running on CI and 0 locally. This means the traces will be recorded on the first retry of a failed test but not on the first run and not on the second retry.

View File

@ -3,14 +3,15 @@ id: trace-viewer
title: "Trace viewer"
---
import LiteYouTube from '@site/src/components/LiteYouTube';
Playwright Trace Viewer is a GUI tool that helps you explore recorded Playwright traces after the script has ran. You can open traces [locally](#viewing-the-trace) or in your browser on [`trace.playwright.dev`](https://trace.playwright.dev).
<video width="100%" height="100%" controls muted>
<source src="https://user-images.githubusercontent.com/13063165/219132713-17b9d75b-71e3-42c4-a43f-3f9e2e15f834.mp4" type="video/mp4" />
Your browser does not support the video tag.
</video>
<LiteYouTube
id="lfxjs--9ZQs"
title="Viewing Playwright Traces"
/>
## Viewing the trace