Skip to content

Instantly share code, notes, and snippets.

@angiejones
Last active September 11, 2020 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angiejones/e337241c42373a3bccc983fffd446c51 to your computer and use it in GitHub Desktop.
Save angiejones/e337241c42373a3bccc983fffd446c51 to your computer and use it in GitHub Desktop.
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