Skip to content

Instantly share code, notes, and snippets.

@corradin
Created May 13, 2022 14:16
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 corradin/ce93cdcb09950bf7af44a63fa3bfe36a to your computer and use it in GitHub Desktop.
Save corradin/ce93cdcb09950bf7af44a63fa3bfe36a to your computer and use it in GitHub Desktop.
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 });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment