- Screenshots capture the UI state at specific moments.
- Videos record the full test execution.
Quick Reference
Screenshots and videos are controlled by your Playwright config.@testdino/playwright streams them to TestDino during the run. Use this table as a checklist for your setup.
When to use each
- Use screenshots when
- Use videos when
- The error mentions a missing or incorrect element
- You need to verify the UI layout
- You want quick visual confirmation
Enable screenshots
Playwright captures screenshots on failure by default. Configure additional options:'off': No screenshots'on': Screenshot after every test'only-on-failure': Screenshot only when test fails (recommended)
Enable video recording
Configure video recording in your Playwright config:'off': No video'on': Always record'on-first-retry': Record only on retry'retain-on-failure': Keep video only for failed tests
Video size settings
Control video dimensions:NoteSmaller dimensions reduce file size but may result in missing details.
Stream Visual Evidence
@testdino/playwright streams screenshots, videos, and traces to TestDino during the run. What reaches the dashboard follows your Playwright config, so no upload flag is needed.
Set the token and run tests. Artifacts stream during the run:
--no-artifacts to npx tdpw test to skip screenshot, video, and trace streaming.
View screenshots
- Open a test run
- Click a failed test
- Go to the Screenshots section in the evidence panel
What to look for
View videos
- Open a test run in TestDino
- Click a failed test
- Go to the Video section in the evidence panel
What to look for
Visual Comparison
For tests usingtoHaveScreenshot(), TestDino shows visual diffs:
Console Logs
The Console section shows browser console output:- JavaScript errors
- Application logs
- Network errors
- Warnings
Debugging with Visual Evidence
Screenshots
- Check if expected elements are visible
- Look for error messages or loading states
- Compare with the expected UI
Videos
- Watch the sequence of actions
- Identify timing issues
- See animations and transitions that screenshots miss
Visual comparison
- Spot unintended UI changes
- Verify layout consistency
- Detect rendering differences across environments
Storage Limits
Visual artifacts increase storage usage. Configure retention based on your plan:Related
Trace Viewer
Step-by-step execution analysis
Error Grouping
Find patterns across failures
Visual Testing
Screenshot comparison setup
Node.js CLI
CLI setup and options