Skip to content

Commit 55127c5

Browse files
test(button): add tests for spinner inside buttons
1 parent ecf7295 commit 55127c5

27 files changed

+174
-1
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { expect } from '@playwright/test';
2+
import { configs, test } from '@utils/test/playwright';
3+
4+
configs({ modes: ['ios', 'md', 'ionic-md', 'ionic-ios'] }).forEach(({ config, screenshot, title }) => {
5+
test.describe(title('button: spinner'), () => {
6+
test('should not have visual regressions', async ({ page }) => {
7+
await page.goto(`/src/components/button/test/spinner`, config);
8+
9+
await page.setIonViewport();
10+
11+
await expect(page).toHaveScreenshot(screenshot(`button-spinner`));
12+
});
13+
});
14+
});
28.4 KB
Loading
40.4 KB
Loading
25.2 KB
Loading
27.8 KB
Loading
40.7 KB
Loading
25.2 KB
Loading
26.9 KB
Loading
38.3 KB
Loading
24.5 KB
Loading

0 commit comments

Comments
 (0)