Skip to content

Commit

Permalink
mask the whole overview header
Browse files Browse the repository at this point in the history
because the length of date text can be different on different dates
  • Loading branch information
subhoghoshX committed Jul 29, 2024
1 parent 8230ed0 commit 7b9c92e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ export function Overview({ totalUsage }: Props) {

return (
<Card className="flex flex-col">
<CardHeader className="items-center pb-0">
<CardHeader className="items-center pb-0" id="overview-header">
<CardTitle className="text-lg">Top 5 sites</CardTitle>
<CardDescription id="overview-date">{formattedDate}</CardDescription>
<CardDescription>{formattedDate}</CardDescription>
</CardHeader>
<CardContent className="flex-1 pb-0">
<ChartContainer
Expand Down
2 changes: 1 addition & 1 deletion tests/example.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ test("Extension in New Tab page", async ({ page }) => {
await expect(page).toHaveScreenshot({
mask: [
page.locator("section > div:last-child > div:first-child svg"),
page.locator("#overview-date"),
page.locator("#overview-header"),
page.locator("#favicon"),
],
});
Expand Down
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 7b9c92e

Please sign in to comment.