Skip to content

Instantly share code, notes, and snippets.

@angiejones
Last active September 11, 2020 21:04
Embed
What would you like to do?
Playwright - Visual Testing with Applitools
it('should be visually perfect', async () => {
await page.fill('#searchBar', 'test')
await page.waitForSelector('li.ui-screen-hidden', { state: 'attached' })
//Visual Testing
await eyes.open(page, 'Automation Bookstore - Playwright', 'Partial Search', new RectangleSize(800, 600))
await eyes.check(Target.window().fully())
await eyes.close()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment