Skip to content

Commit

Permalink
Mask favicon
Browse files Browse the repository at this point in the history
The time it takes to fetch and render them is unpredictable.
  • Loading branch information
subhoghoshX committed Jul 26, 2024
1 parent e05991f commit 427c078
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/example.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ test("Extension in New Tab page", async ({ page }) => {
await page.goto("chrome://newtab");
await expect(page).toHaveTitle("New Tab");
await expect(page).toHaveScreenshot({
mask: [page.locator("section > div:last-child > div:first-child svg")],
mask: [
page.locator("section > div:last-child > div:first-child svg"),
page.locator("section > div:first-child ul li button img"),
],
});
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 427c078

Please sign in to comment.