introduce a web-first assertion for Visual regression testing.
Today:
expect(await page.screenshot()).toMatchSnapshot('foo.png');
After this:
await expect(page).toHaveScreenshot('foo.png');
toHaveScreenshot should auto-retry screenshot until golden is reached.
toHaveScreenshot should also have:
introduce a web-first assertion for Visual regression testing.
Today:
After this:
toHaveScreenshotshould auto-retry screenshot until golden is reached.toHaveScreenshotshould also have:disalbe css animations— [Feature] disable CSS animations when making screenshots #11912mask out certain parts of screen? e.g. with selector— [Feature] mask certain elements while making screenshots #11913