Skip to content

Commit 207c009

Browse files
committed
Merge branch 'chore/ionicons-align-build-tests' into FW-7618
2 parents 96b9ead + f6bbf01 commit 207c009

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/components/icon/test/dynamic-type/icon.e2e.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ test.describe('icon: dynamic type', () => {
1010
// Wait for all SVGs to be lazily loaded before taking screenshots
1111
await page.waitForLoadState('networkidle');
1212

13-
await expect(page).toHaveScreenshot(`icon-dynamic-type.png`);
13+
const main = page.locator('main');
14+
await expect(main).toHaveScreenshot(`icon-dynamic-type.png`);
1415
});
1516
});

src/components/icon/test/sanitization/icon.e2e.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ test.describe('icon: sanitization', () => {
77

88
await page.waitForLoadState('networkidle');
99

10-
await expect(page).toHaveScreenshot(`icon-sanitization.png`);
10+
const main = page.locator('main');
11+
await expect(main).toHaveScreenshot(`icon-sanitization.png`);
1112
});
1213
});

0 commit comments

Comments
 (0)