Releases: happo/happo-plugin-storybook
v4.4.1
v4.4.0
v4.3.2
Summary
This release fixes an issue where screenshots would be missing (shown as "deleted" in the Happo report UI) if you had an interactive story using forceHappoScreenshot
as either the first story in the whole Storybook test suite, or if you were using chunks
config in .happo.js and the first story rendered for a certain chunk would be interactive and use forceHappoScreenshot
.
What's Changed
- Update actions/checkout and actions/setup-node from v2 to v4 by @lencioni in #127
- Stabilize "Misc Failing" diffs in Happo by @lencioni in #126
- Add HAPPO_API_SECRET to storybook6 build by @lencioni in #125
- Update happo.io 10.1.1 to 10.1.2 by @lencioni in #128
- Update references to enduire by @lencioni in #122
- Reproduce missing interactions bug by @trotzig in #129
- Don't skip interactive screenshots for first item by @trotzig in #130
Full Changelog: v4.3.1...v4.3.2
v4.3.1
v4.3.0
This minor release adds support for a new skip
configuration option. Use it to inform Happo about examples/stories that you want to skip for the run but still want to keep in the Happo reports.
Here's an example where "Button > disabled" is skipped for a run:
// .happo.js
module.exports = {
// ...
plugins: [
happoPluginStorybook({
skip: async () => {
// you can do asynchronous tasks here to figure out which examples to skip. Just make sure to return an array at the end, where each item has a `component` and a `variant` property.
return [
{
component: 'Button',
variant: 'disabled',
},
];
},
}),
]
v4.2.2
v4.2.1
This patch release adds a fix for certain test suites running into an infinite loop when the following criteria is met:
- The story uses a Play function
- The Play function throws an error after having made a call to
forceHappoScreenshot
Before this release, the above scenario would lead to Happo taking a screenshot of the same Story and state over and over again. This release will detect the scenario and move on with the test suite.
v4.2.0
v4.1.0
This minor release adds support for an upcoming feature at happo.io that involves being able to retry a single screenshot. Happo will inform the test suite that it wants a single screenshot and not from all stories. To prepare for that, this library has to honor the new only
configuration option.