SmoothDeploy Docs
Tests

Screenshot Comparison

Compare each Playwright step screenshot against its baseline side by side and promote the run image to a new baseline.

When a test step captures a screenshot, SmoothDeploy stores it alongside a baseline image. The comparison view lets you inspect both and promote the run image to become the new baseline.

Opening the Comparison View

From the per-test run detail page, click the screenshot thumbnail on any step that has a screenshot.

What You See

The comparison view shows the step number and title in the header. Below it are two cards, one for each screenshot type:

  • Element Screenshot — a screenshot scoped to the element targeted by the step.
  • Page Screenshot — a full-page screenshot captured at the same moment.

Each card shows two columns side-by-side: Baseline (the stored reference) and Run Result (what the current run captured). Click either image to open it full-size.

There is no automatic pixel diff — comparison is visual and manual.

Use the chevron buttons in the header to navigate between steps that have screenshots without leaving the view.

Promoting a Screenshot to Baseline

If the run screenshot is the correct expected state — for example, after a deliberate UI change — click Promote (check icon). The run image replaces the stored baseline immediately.

When no baseline has been set yet, the baseline panel shows a Use as Baseline button (upload icon) instead. It promotes the run image in the same way.

All roles can promote screenshots. After promotion, the baseline panel updates to show the newly promoted image; the next comparison for this step uses it as the reference.

Next Steps