Quick Reference
Prerequisites
- Playwright Test and at least one test using
toHaveScreenshot()(Playwright Docs) @testdino/playwrightconfigured inplaywright.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.The variable lasts until you close the terminal, so run your tests in the same terminal.Playwright must generate the screenshots and snapshot comparison output for the run.
- macOS / Linux
- Windows (PowerShell)
3
Run in CI
Example GitHub Actions step. Set
TESTDINO_TOKEN and run tests. Results stream during the run.Examples
View a failed visual test
- Open the failing run in TestDino
- Open the failing test case
- Use the Visual Comparison panel to switch between:
- Changes
- Side by Side
- Swipe
- Baseline
- Current
- The test uses
toHaveScreenshot() @testdino/playwrightis configured inplaywright.config