6.10.1
- Restore
--skippedExamplesflag for the finalize command [by @trotzig in #467]
Release notes
The happo npm package: the CLI and its Storybook, Cypress, Playwright, and Vitest integrations.
--skippedExamples flag for the finalize command [by @trotzig in #467]This version adds support for a --skip CLI argument (can be used with all integrations) and a --only CLI argument (Storybook only). These flags can be used to reduce the snapshots usage by running through a limited set of Happo examples. These arguments are defined as JSON arrays, with items following one of these structures:
{ "component": "Card" }
{ "component": "Card", "variant": "bordered" }
{ "storyFile": "./src/stories/Card.stories.js" }
The last format (using storyFile) is only supported for Storybook runs.
autoApplyPseudoStateAttributes: true|false option has been added to Playwright and Cypress integrations. If you enable it, Happo will automatically collect and represent :focus, :focus-visible, :active, and :hover states in the screenshots. This new option must be paired with the target config applyPseudoClasses: true.Full Changelog: https://github.com/happo/happo/compare/v6.8.0...v6.9.0
Happo no longer injects CSS to disable pointer events by default. In most cases this is the right behavior, and the allowPointerEvents setting is unlikely to be needed going forward.
If you notice unexpected diffs caused by hover effects after updating, you can set allowPointerEvents: false in your target config to restore the previous behavior.
As a side effect, Storybook interaction tests that were previously silently skipped due to pointer-events: none errors may now start appearing in your Happo reports.
Full Changelog: https://github.com/happo/happo/compare/v6.7.0...v6.8.0
--skippedExamples option from legacy happo-e2e by @trotzig in https://github.com/happo/happo/pull/438Full Changelog: https://github.com/happo/happo/compare/v6.6.1...v6.7.0
Full Changelog: https://github.com/happo/happo/compare/v6.6.0...v6.6.1
Full Changelog: https://github.com/happo/happo/compare/v6.5.2...v6.6.0
Full Changelog: https://github.com/happo/happo/compare/v6.5.1...v6.5.2
Full Changelog: https://github.com/happo/happo/compare/v6.5.0...v6.5.1
Full Changelog: https://github.com/happo/happo/compare/v6.4.1...v6.5.0