chore(): sync with main
|
After Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 187 KiB After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 187 KiB After Width: | Height: | Size: 53 KiB |
@ -9,7 +9,7 @@ test.describe('toggle: enableOnOffLabels', () => {
|
||||
test('should not have visual regressions', async ({ page }) => {
|
||||
await page.setIonViewport();
|
||||
|
||||
expect(await page.screenshot()).toMatchSnapshot(`toggle-on-off-labels-diff-${page.getSnapshotSettings()}.png`);
|
||||
await expect(page).toHaveScreenshot(`toggle-on-off-labels-diff-${page.getSnapshotSettings()}.png`);
|
||||
});
|
||||
|
||||
test.describe('dark mode', () => {
|
||||
@ -32,9 +32,7 @@ test.describe('toggle: enableOnOffLabels', () => {
|
||||
|
||||
await page.setIonViewport();
|
||||
|
||||
expect(await page.screenshot()).toMatchSnapshot(
|
||||
`toggle-on-off-labels-dark-mode-diff-${page.getSnapshotSettings()}.png`
|
||||
);
|
||||
await expect(page).toHaveScreenshot(`toggle-on-off-labels-dark-mode-diff-${page.getSnapshotSettings()}.png`);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@ -9,7 +9,7 @@ test.describe('toggle: basic', () => {
|
||||
test('should not have visual regressions', async ({ page }) => {
|
||||
await page.setIonViewport();
|
||||
|
||||
expect(await page.screenshot()).toMatchSnapshot(`toggle-diff-${page.getSnapshotSettings()}.png`);
|
||||
await expect(page).toHaveScreenshot(`toggle-diff-${page.getSnapshotSettings()}.png`);
|
||||
});
|
||||
|
||||
test('should have proper class and aria role when checked', async ({ page }) => {
|
||||
|
||||
|
Before Width: | Height: | Size: 169 KiB After Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 163 KiB After Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 170 KiB After Width: | Height: | Size: 51 KiB |
|
Before Width: | Height: | Size: 163 KiB After Width: | Height: | Size: 45 KiB |
@ -7,6 +7,6 @@ test.describe('toggle: sizes', () => {
|
||||
|
||||
await page.setIonViewport();
|
||||
|
||||
expect(await page.screenshot()).toMatchSnapshot(`toggle-sizes-diff-${page.getSnapshotSettings()}.png`);
|
||||
await expect(page).toHaveScreenshot(`toggle-sizes-diff-${page.getSnapshotSettings()}.png`);
|
||||
});
|
||||
});
|
||||
|
||||