From 06107055465efb12c69250dce6cb3aff8bfad40a Mon Sep 17 00:00:00 2001 From: Debbie O'Brien Date: Fri, 10 Mar 2023 18:45:55 +0100 Subject: [PATCH] docs: add video to trace viewer docs (#21568) --- docs/src/trace-viewer-intro-js.md | 7 ++++++- docs/src/trace-viewer.md | 9 +++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/docs/src/trace-viewer-intro-js.md b/docs/src/trace-viewer-intro-js.md index 3980b5c63c..e364ad6149 100644 --- a/docs/src/trace-viewer-intro-js.md +++ b/docs/src/trace-viewer-intro-js.md @@ -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) - + ## 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. diff --git a/docs/src/trace-viewer.md b/docs/src/trace-viewer.md index 640bc08b71..4f13355d53 100644 --- a/docs/src/trace-viewer.md +++ b/docs/src/trace-viewer.md @@ -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). - + ## Viewing the trace