Skip to main content
Stream Playwright snapshot screenshots to TestDino to review diffs, baselines, and CI context for visual test failures.

Quick Reference

Prerequisites

  • Playwright Test and at least one test using toHaveScreenshot() (Playwright Docs)
  • @testdino/playwright configured in playwright.config (CLI reference)
  • A TestDino token available as an environment variable or CI secret

Quick Start Steps

1

Add a visual assertion

Start with a single toHaveScreenshot() assertion.
NoteTestDino can only show visual diffs for tests that generate screenshot comparisons.
2

Run your tests

Set the token and run Playwright as usual. Screenshots stream to TestDino during the run.
Playwright must generate the screenshots and snapshot comparison output for the run.
3

Run in CI

Example GitHub Actions step. Set TESTDINO_TOKEN and run tests. Results stream during the run.
TipResults stream live even when tests fail, so visual failures land on the dashboard without a separate upload step.

Examples

View a failed visual test

  1. Open the failing run in TestDino
  2. Open the failing test case
  3. Use the Visual Comparison panel to switch between:
    • Diff
    • Actual
    • Expected
If you do not see the panel, check both:
  • The test uses toHaveScreenshot()
  • @testdino/playwright is configured in playwright.config

Update baselines after an intentional UI change

If the UI change is expected, update snapshots locally and commit the new baseline.
WarningUpdating baselines changes what Playwright considers correct for future runs. Review the git diff before committing.