Skip to content

hermione/v8.2.0

Compare
Choose a tag to compare
@KuznetsovRoman KuznetsovRoman released this 01 Mar 09:10

馃殌 Improvements

  • export TestError type (#848)
  • add ability to ignore few pixels in assertView command (#849)
    Example:
it('example', async ({browser}) => {
    // ignores up to 5 diff pixels
    await browser.assertView('some-state', 'some-selector', {ignoreDiffPixelCount: 5});

    // ignores up to 1.5% diff pixels
    await browser.assertView('other-state', 'other-selector', {ignoreDiffPixelCount: "1.5%"});
});