Skip to content

Commit

Permalink
increase tolerance on pixels a small amount
Browse files Browse the repository at this point in the history
  • Loading branch information
RohinBhargava committed Oct 24, 2024
1 parent c7fe46f commit 4413f17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion playwright/websockets/websocket.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ test("websocket test", async ({ page, context }) => {
const preview = generatePreviewContext(target);
await addPreviewCookie(context, preview);
await page.goto(preview.previewUrl);
await expect(page).toHaveScreenshot();
await expect(page).toHaveScreenshot({
maxDiffPixels: 50,
});
});

0 comments on commit 4413f17

Please sign in to comment.