Skip to content

Commit

Permalink
fixup! Test(demo): Introduce E2E test for homepage refs #DS-869
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Sep 25, 2023
1 parent 0351794 commit 9cfd6d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/demo-homepages.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { test, expect } from '@playwright/test';
import { expect, test } from '@playwright/test';

test.describe('Demo Homepages', () => {
const demos = [
Expand All @@ -15,7 +15,7 @@ test.describe('Demo Homepages', () => {
for (const demo of demos) {
test(`test demo homepage ${demo.package}`, async ({ page }) => {
await page.goto(demo.url);
await expect(page).toHaveScreenshot(`${demo.package}.png`, { fullPage: true });
await expect(page).toHaveScreenshot(`${demo.package}.png`, { fullPage: true, maxDiffPixelRatio: 0.01 });
});
}
});
18 changes: 0 additions & 18 deletions tests/e2e/example.spec.ts

This file was deleted.

0 comments on commit 9cfd6d7

Please sign in to comment.