Releases: happo/happo-cypress
v1.7.2
v1.7.1
v1.7.0
This minor release adds support for a new environment variable: HAPPO_DOWNLOAD_ALL
. When set, all referenced assets will be pre-fetched (as opposed to only relative assets in the default case).
Apart from that, there are a few bugfixes included as well:
- Don't inline canvases without dimensions
- Use HTTP_PROXY when fetching external stylesheets as well
- Prevent setting
null
attributes for inlined canvas
v1.6.1
v1.6.0
- Improve resolving environment variables in Travis CI. This should help improve running happo-cypress in Travis.
- Add support for a http proxy via the
HTTP_PROXY
environment variable. - Add support for a
HAPPO_DEBUG
environment variable (can be used to print debug information)
v1.5.0
This minor release has two updates:
- Canvas inlining (replacing
<canvas>
with<img>
) is now less aggressive about copying over styles. - Assets are now uploaded to happo.io before sending html+css payloads. This will improve performance a little bit on some test runs.
v1.4.1
This patch release addresses a few issues with running Happo alongside Percy in a Cypress test suite:
- Changes the default port so that we're not confusing Percy
- Validate the payloads sent internally to make sure they're coming from us
- Prevent stalling happo-cypress command in case finalize call fails
v1.4.0
This minor release adds support for a new transformDOM
option to happoScreenshot
. Use it to transform the DOM before it is sent to Happo for screenshooting. Here's an example where iframes are replaced with placeholders:
cy.get('.main').happoScreenshot({
component: 'Main',
transformDOM: {
selector: 'iframe',
transform: (element, doc) => {
// element here is an iframe
const div = doc.createElement('div');
div.innerHTML = '[iframe placeholder]';
return div; // return the element you want to replace the iframe with
}
},
});
v1.3.0
v1.2.0
This minor release adds support for running parallel Cypress builds. To have Happo create a combined report for all parallel test runs, do the following:
- Use a
HAPPO_NONCE
environment variable across all runs. This variable will tie everything together. - Call
npx happo-cypress finalize
after all parallel runs have finished. Make sure thatHAPPO_NONCE
is set to the same value as for the individual runs.