Which artifact lets a reviewer determine why a button click failed?
Keep a Playwright trace when an engineer must diagnose which action, locator, DOM state or network request failed. Keep a video when sequence, visible feedback and timing need to be understood quickly by a reviewer. Record both selectively when an intermittent journey is hard to recreate.
A button click can fail in several ways
Imagine a Save button that is visible but covered by a loading overlay. A video can show the spinner remained on screen. A trace can show which action timed out, the locator used and the page state captured around the attempt. If the click succeeded but saving failed, inspect the request and response, subject to what the run captured.
| Review question | Trace | Video |
|---|---|---|
| Where did the test stop? | Inspect the recorded action and error. | Locate the last visible interaction on the timeline. |
| Was the intended control present? | Inspect the captured DOM and locator information. | See its apparent position and visible label. |
| Did saving reach the server? | Inspect captured requests and responses. | Look for visible feedback, then verify the request elsewhere. |
| Who needs the evidence? | An engineer diagnosing the failing action. | A reviewer assessing what the user experienced. |
Keep evidence from the attempt that mattered
A retry may have different page state from the first attempt. Decide whether CI needs an artifact from the original failure, the retry or both and set retention accordingly. Use test accounts and inspect what screenshots, DOM snapshots and network data expose. A short video clip can travel to product review while a restricted trace stays with engineering.