Skip to content

Commit

Permalink
test: mask the whole svg in drawer
Browse files Browse the repository at this point in the history
The row containing the dates changes with passing days and it can't be
made 100% width. So mask the whole svg.
  • Loading branch information
subhoghoshX committed Aug 17, 2024
1 parent ac32fb6 commit a542a44
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/example.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ test("Drawer", async ({ page }) => {
await page.goto("chrome://newtab");
page.getByRole("list").getByText("example.com").click();
await expect(page).toHaveScreenshot("drawer.png", {
mask: [page.locator("div[role='dialog'] svg > g:nth-child(5)")],
mask: [page.locator("div[role='dialog'] svg")],
});
});
Binary file modified tests/example.spec.ts-snapshots/drawer-chromium-linux.png
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 a542a44

Please sign in to comment.