-
-
Save up1/536a4d79b0bae45740a4bb52b4f0e185 to your computer and use it in GitHub Desktop.
Playwright :: Visual testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { test, expect } from '@playwright/test'; | |
| test('example test', async ({ page }) => { | |
| await page.goto('https://playwright.dev'); | |
| await expect(page).toHaveScreenshot(); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { test, expect } from '@playwright/test'; | |
| test('example test', async ({ page }) => { | |
| await page.goto('https://playwright.dev'); | |
| await expect(page).toHaveScreenshot({ maxDiffPixels: 100 }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment