7.1.0Vitest Browser Mode integration
This release adds support for taking snapshots from Testing Library tests run under Vitest Browser Mode, along with smaller fixes.
Added
- Add a Vitest Browser Mode integration: use
happoVitestPlugin()andhappoScreenshot()fromhappo/vitestandhappo/vitest/browserto send snapshots from Testing Library tests, with support fortargets, dynamic targets,snapshotStrategy,--skip, andautoApplyPseudoStateAttributes[by @trotzig in #308]
Changed
- Default
autoApplyPseudoStateAttributestotruein the Vitest integration, matching the Cypress and Playwright integrations, so hover and focus attributes apply by default [by @lencioni in #763]
Fixed
- Stop reporting
write EPIPEerrors to the error tracker and failing the exit code when whatever reads the CLI's stdout disconnects mid-run [by @lencioni in #748] - Update the "Missing apiKey and apiSecret" error message to link directly to the API tokens page at
<endpoint>/api-tokensinstead of/settings[by @trotzig in #768]