Skip to content

Commit 8383c61

Browse files
committed
Update test randomness and screenshots
1 parent 26363ca commit 8383c61

12 files changed

+25
-22
lines changed

tests/e2e/NewOrgModal.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test.describe("without being signed in", () => {
1414
test("can *NOT* see the 'New Org' button", async ({ page, isMobile }) => {
1515
const response = await page.goto("http://localhost:1234");
1616
expect(response?.status()).toBeLessThan(400);
17-
await expect(page).toHaveScreenshot("no-new-org-button.png");
17+
await expect(page).toHaveScreenshot("no-new-org-button.png", { maxDiffPixels: 100 });
1818

1919
if (isMobile) {
2020
await expect(
@@ -36,7 +36,7 @@ test.describe("while being signed in", () => {
3636
test("can see the 'New Org' button", async ({ page, isMobile }) => {
3737
const response = await page.goto("http://localhost:1234");
3838
expect(response?.status()).toBeLessThan(400);
39-
await expect(page).toHaveScreenshot("new-org-button.png");
39+
await expect(page).toHaveScreenshot("new-org-button.png", { maxDiffPixels: 100 });
4040

4141
if (isMobile) {
4242
await expect(
-1.22 KB
Loading
1.01 KB
Loading
-1.5 KB
Loading
-1.59 KB
Loading
-1.91 KB
Loading
-683 Bytes
Loading
1.48 KB
Loading
-1.48 KB
Loading
-1.88 KB
Loading

0 commit comments

Comments
 (0)