Skip to content

Commit

Permalink
chore: shrink screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-perkins committed Aug 3, 2023
1 parent 38e9cd9 commit 56851d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/components/test/dynamic-type/icon.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ test.describe('icon: dynamic type', () => {
// Wait for all SVGs to be lazily loaded before taking screenshots
await page.waitForLoadState('networkidle');

expect(await page.screenshot({ fullPage: true })).toMatchSnapshot(`icon-dynamic-type-diff.png`);
const icons = page.locator('#icons');

expect(await icons.screenshot()).toMatchSnapshot(`icon-dynamic-type-diff.png`);
});

});
8 changes: 5 additions & 3 deletions src/components/test/dynamic-type/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
</head>

<body>
<ion-icon name="star"></ion-icon>
<ion-icon name="star" size="small"></ion-icon>
<ion-icon name="star" size="large"></ion-icon>
<div id="icons">
<ion-icon name="star"></ion-icon>
<ion-icon name="star" size="small"></ion-icon>
<ion-icon name="star" size="large"></ion-icon>
</div>
</body>
</html>

0 comments on commit 56851d8

Please sign in to comment.