From 56851d81b04c4425c759ef4aeff11074042ddf37 Mon Sep 17 00:00:00 2001 From: Sean Perkins Date: Thu, 3 Aug 2023 16:52:51 -0400 Subject: [PATCH] chore: shrink screenshot --- src/components/test/dynamic-type/icon.e2e.ts | 4 +++- src/components/test/dynamic-type/index.html | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/test/dynamic-type/icon.e2e.ts b/src/components/test/dynamic-type/icon.e2e.ts index cab1b6c2c..5097720d0 100644 --- a/src/components/test/dynamic-type/icon.e2e.ts +++ b/src/components/test/dynamic-type/icon.e2e.ts @@ -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`); }); }); diff --git a/src/components/test/dynamic-type/index.html b/src/components/test/dynamic-type/index.html index 50e336a46..17682cabb 100644 --- a/src/components/test/dynamic-type/index.html +++ b/src/components/test/dynamic-type/index.html @@ -18,8 +18,10 @@ - - - +
+ + + +