Skip to main content

Inspect Failed Steps

The same failure read from a terminal: find the failed run, then print its whole context — the failing scenario, the assertion, the stack and the log tail — without opening a browser.

Failed rows are the starting point for triage. A failure may mean the application has a bug, the test needs an update, the target environment is not ready, or a shared dependency such as login or test data failed.

Open failure details

  1. Open Runs.
  2. Select the failed run.
  3. Open the Features tab.
  4. Find the failed scenario rows when the run has many.
  5. Open the failed row to expand its details.

The details view can show the scenario location, the error, the final screenshot, the video, and a Debug with AI button that opens the Playwright trace with an AI assistant.

Read the failure panel

Use the panel from top to bottom:

AreaWhat to look for
ErrorThe Playwright error text, assertion output, and the failure source.
LocationThe spec file and configuration that identify where the failure occurred.
Final screenshotThe browser state at the end of the failed scenario.
VideoThe browser session leading up to the failure.
Debug with AIOpens the full action-by-action Playwright trace with an AI assistant docked beside it that diagnoses the failure automatically.

Decide what kind of failure it is

SignalLikely cause
Screenshot shows the wrong pageNavigation, login, or environment setup may be wrong.
Screenshot shows the expected page but the assertion failedThe test expectation may be too strict or out of date.
Error mentions missing selector or timeoutThe UI changed, the app was slow, or the selector needs an update.
Error appears before the test reaches the appCheck session setup, dependencies, and secrets.
Many rows fail at the same prerequisiteFix the prerequisite before editing individual tests.

Use the next evidence layer

If the failure panel does not explain the problem:

NeedOpen
See the exact browser sequenceWatch videos
Inspect page actions, DOM snapshots, and request timingOpen traces
Check browser console errors or network requestsOpen traces

From the command line

The same failure context is available from a terminal, which is usually where you are when CI tells you something went red:

testvibe runs list --status failed
testvibe runs diagnose <runId>

diagnose prints the failing scenario, the assertion that failed, the stack, the tail of the run log and links to the run's artifacts. Add --json to get the Gherkin and the executed spec source alongside it.

The artifact links it prints are short-lived signed URLs. Treat them as credentials — they grant read access until they expire, so avoid pasting diagnose output straight into a public ticket or chat.

Setting up the CLI and its API key is covered in CLI & API keys.

After you make a change, re-run the smallest useful scope first. For re-runs, see Cancel or re-run tests.