Skip to content

Commit 7220b4b

Browse files
authored
test(spinner): migrate tests to playwright (#25259)
1 parent 7cfde33 commit 7220b4b

File tree

43 files changed

+45
-47
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+45
-47
lines changed

core/src/components/spinner/test/basic/e2e.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { expect } from '@playwright/test';
2+
import { test } from '@utils/test/playwright';
3+
4+
test.describe('spinner: basic', () => {
5+
test.beforeEach(async ({ page }) => {
6+
await page.goto('/src/components/spinner/test/basic');
7+
});
8+
test.describe('spinner: visual regression tests', () => {
9+
test('should not have visual regressions', async ({ page }) => {
10+
await page.setIonViewport();
11+
12+
expect(await page.screenshot()).toMatchSnapshot(`spinner-basic-diff-${page.getSnapshotSettings()}.png`);
13+
});
14+
});
15+
});
187 KB
56.4 KB
150 KB
185 KB
56.9 KB
150 KB
167 KB
51.2 KB

0 commit comments

Comments
 (0)