Skip to content

Commit

Permalink
preetier
Browse files Browse the repository at this point in the history
  • Loading branch information
mudhoney committed Jan 21, 2025
1 parent affcecf commit 39d0bd1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/desktop/normal/urlsharing.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test("Non-Existing Shared URLs Should Be Reported To User", async ({ page, conte
});

/**
* This test checks if shortURLs are correctly being overwritten by .htacces
* This test checks if shortURLs are correctly being overwritten by .htacces
*/
test("Shared URLs redirection should be done correctly", async ({ page }, info) => {
let hv = new Helioviewer(page);
Expand Down Expand Up @@ -85,6 +85,7 @@ test("Shared URLs should produce pages, exactly like they shared", async ({ page

const afterScreenshot = (await page.screenshot()).toString("base64");

expect(Buffer.from(afterScreenshot, "base64")).toMatchSnapshot("before-url-sharing-screenshot.png",{ maxDiffPixelRatio: 0.01 } );

expect(Buffer.from(afterScreenshot, "base64")).toMatchSnapshot("before-url-sharing-screenshot.png", {
maxDiffPixelRatio: 0.01
});
});

0 comments on commit 39d0bd1

Please sign in to comment.