Skip to content

Releases: happo/happo-cypress

v1.7.2

10 Jul 12:07
Compare
Choose a tag to compare

This patch version has a fix for happoTeardown failures caused by trying to download an asset path starting with a hash #.

v1.7.1

09 Jul 18:32
Compare
Choose a tag to compare

This patch release adds more debug logs when the HAPPO_DEBUG environment variable is set.

v1.7.0

06 Jul 20:35
Compare
Choose a tag to compare

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

05 Jul 09:38
Compare
Choose a tag to compare

This patch release contains a fix for running in a Windows environment. Before, we wouldn't pass along environment variables correctly from the happo-cypress wrapper.

v1.6.0

30 Jun 13:26
Compare
Choose a tag to compare
  • 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

19 Jun 06:56
Compare
Choose a tag to compare

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

14 Jun 08:31
Compare
Choose a tag to compare

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

13 Jun 09:04
Compare
Choose a tag to compare

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

01 Jun 07:31
Compare
Choose a tag to compare

This minor release improves support for taking screenshots of canvases. When you call happoScreenshot() and the subject element either is a canvas or contains canvases, the canvases will be replaced by an inlined image.

v1.2.0

30 May 21:38
Compare
Choose a tag to compare

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 that HAPPO_NONCE is set to the same value as for the individual runs.