Skip to content

v1.1.0

Compare
Choose a tag to compare
@trotzig trotzig released this 26 Jan 14:24

This release will hopefully fix an issue where happoTakeDOMSnapshot is missing. We've seen these errors:

TypeError: window.happoTakeDOMSnapshot is not a function

If you want to make use of the fix, you have to update your happoPlaywright.init calls. Instead of passing a page, pass a context:

test.beforeEach(async ({ context }) => {
  await happoPlaywright.init(context);
});

This version is backwards-compatible with the old way of initializing the lib: happoPlaywright.init(page). The recommended way is to use context however.