Releases: happo/happo-cypress
v4.3.0
What's Changed
- Allow snapshot strategy to be configured by @trotzig in #122
- Bump ansi-regex from 4.1.0 to 4.1.1 by @dependabot in #97
- Add prettier config and run prettier on everything by @lencioni in #123
- Update happo-e2e 2.4.0 to 3.3.1, happo.io 6 to 11 by @lencioni in #125
- Bump json5 from 1.0.1 to 1.0.2 by @dependabot in #103
- Bump word-wrap from 1.2.3 to 1.2.5 by @dependabot in #116
- Bump crypto-js from 4.1.1 to 4.2.0 by @dependabot in #117
- Bump ws from 7.5.4 to 7.5.10 by @dependabot in #118
- Bump nanoid from 3.2.0 to 3.3.8 by @dependabot in #127
- Bump tough-cookie from 4.0.0 to 4.1.4 by @dependabot in #128
- Update master to main in github config by @lencioni in #124
New Contributors
Full Changelog: v4.2.0...v4.3.0
v4.2.0
This minor release adds support for passing along Cypress supported options to cy.task
via all happo calls. For example, you can pass log: false
to suppress the Happo commands from the Cypress log panel:
cy.get('body').happoScreenshot({ component: 'Login page', log: false });
v4.1.3
v4.1.2
v4.1.1
v4.1.0
This release adds support for a new option for happoScreenshot
: includeAllElements: true
. This option can be used if you need the screenshot to include multiple elements that don't have a common ancestor/parent elements. Here's an example where all elements with the class name "portal" is included in a screenshot:
cy.get('.portal').happoScreenshot({ component: 'All portals', includeAllElements: true });
If you leave out the includeAllElements
option, only the first matching element will be included in the screenshot. This is the default behavior.
To use this new option, you need to be on happo-e2e@2.2.0
or later: https://github.com/happo/happo-e2e/releases/tag/v2.2.0
v4.0.0
This release moves happo-e2e
from dependencies
to peerDependencies
. This means you'll have to install happo-e2e
separately from happo-cypress
. Most people already have already done this because the docs mention installing both packages separately, so even though this is a breaking change it will have little impact for most people.
v3.0.1
v3.0.0
Breaking changes:
- The
happo-cypress
wrapper has been replaced byhappo-e2e
In this release, the meaty bits have been extracted into a happo-e2e
library, to allow for other end-to-end test frameworks (like Playwright) to use the same happo core. The main thing that affects users is that the happo-cypress
wrapper has now been replaced by happo-e2e
:
First, install happo-e2e
:
npm install --save-dev happo-e2e
Then, replace happo-cypress --
with happo-e2e
, e.g.
npx happo-e2e -- npx cypress run
v2.0.0
Version 2 fixes a bug with spec files that were automatically retried. In previous versions, Happo would duplicate screenshots made in retried attempts, leading to snapshots like "Button-default-1", "Button-default-2", etc. To fix this, we had to rewire how the happo-cypress plugin is registered/initialized. Before, this was enough:
// version 1.x
on('task', happoTask);
After updating to v2, you'll have to initialize the plugin slightly different:
// version 2
happoTask.register(on);