Created
May 13, 2022 14:28
-
-
Save corradin/16c1a62ea60bf99fca71d60c9228fbd7 to your computer and use it in GitHub Desktop.
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('http://localhost:3000'); | |
await page.waitForLoadState('networkidle'); | |
await expect(page).toHaveScreenshot({ | |
maxDiffPixelRatio: 0.02, | |
mask: [page.locator('data-test-id=random-game-image')], | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment