Releases: happo/happo-cypress
v1.17.1
v1.17.0
This version adds built-in support for github actions. Instead of having to set HAPPO_BEFORE_SHA
, HAPPO_AFTER_SHA
, etc, you can now simply run the Cypress test suite and Happo will automatically pick up the variables it needs from the github actions environment.
v1.16.1
This release contains a possible bugfix for timeouts happening when the happoRegisterBase64Image
task is called. Instead of sending the whole image (as a base64 encoded string), we send the full string in chunks and then on the last step everything is put together into a real png image. This approach has a smaller memory footprint than the previous approach, and should help prevent timeouts (which can be caused by processes dying).
v1.16.0
This minor release adds support for dynamic targets.
cy.get('footer').happoScreenshot({
component: 'Footer',
targets: [{ name: 'chrome-small', browser: 'chrome', viewport: '375x640` {],
});
See the docs for further usage instructions: https://docs.happo.io/docs/cypress#dynamic-targets
v1.15.0
Bug fixes:
- Assets that were referenced with "./" (e.g.
<img src="./logo.png">
) caused the happo-cypress to crash. This has been fixed.
New features:
- A new
happoHideDynamicElements
function has been added. It will find things like timestamps and hide them from the screenshot.
v1.14.0
v1.13.0
Auto-compare with latest report.
Up until now, you've had to run happo-cypress in CI or do a manual effort to compare Happo reports and get diffs. From this release, the default behavior for non-CI execution has changed. We now make a comparison with the latest approved report available for the Happo account.
v1.12.2
v1.12.1
v1.12.0
This minor release changes the behavior when using cypress open
or cypress run
without the happo-cypress wrapper. Before, Happo screenshots would always be constructed as long as a .happo.js
file with an apiKey
and apiSecret
was found. With this release, you have to explicitly enable Happo, in one of two ways:
- Use the
happo-cypress
wrapper (this behavior didn't change). https://docs.happo.io/docs/cypress#usage-with-cypress-run - Set a
HAPPO_ENABLED=true
environment variable (this is the new behavior). https://docs.happo.io/docs/cypress#usage-with-cypress-open
Strictly speaking, this release should have been a major version bump. Releasing as a minor will help ensure that more people get the new behavior, as the old one was confusing and could lead to quota/cost issues down the road.