Releases: happo/happo-playwright
v2.1.0
This version adds support for using dynamic targets. Pass a targets
option to the screenshot()
call and you can either limit the targets from .happo.js by name, or create a completely new target.
In this example we're using the chrome-xl
target from our .happo.js
config file, and a dynamic Firefox target:
await happoPlaywright.screenshot(page, title, {
component: 'Title',
variant: 'default',
targets: [
'chrome-xl',
{ name: 'firefox-small', browser: 'firefox', viewport: '400x800' },
],
});
v2.0.1
v2.0.0
This release moves happo-e2e
from dependencies
to peerDependencies
. This means you'll have to install happo-e2e
separately from happo-playwright
. 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.
v1.1.0
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.