Simple installation, minimal configuration. Add visual testing to your existing Playwright suite today.
Install the TestivAI Playwright reporter package:
Add the TestivAI reporter to your playwright.config.ts:
Get your API key from the TestivAI dashboard.
Add the witness() call to any test where you want visual coverage:
Configure TestivAI behavior with these options:
| Option | Type | Default | Description |
|---|---|---|---|
| apiKey | string | - | Your TestivAI API key |
| project | string | - | Project name in dashboard |
| tolerance.position | number | 2 | Pixel tolerance for layout changes |
| tolerance.color | number | 0.02 | Color difference threshold (0-1) |
| ignore | array | [] | CSS selectors to ignore |
| viewport | array | ['1280x720'] | Viewports to test |
Add your API key as an environment variable in your CI system:
Ensure your API key is correctly set as an environment variable:
Increase tolerance or add ignore selectors for dynamic content:
Email us at support@testiv.ai or join our Discord community.
Free during beta. No credit card required.