Skip to content

Commit 47ae949

Browse files
test(core/cards): update vrts
1 parent 259f88c commit 47ae949

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

packages/core/src/tests/card-list/card-list.e2e.ts

+9-3
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,26 @@ regressionTest.describe('card-list: basic', () => {
1414
regressionTest('should not have visual regressions', async ({ page }) => {
1515
await page.goto('card-list/basic');
1616
await page.waitForTimeout(1000);
17-
expect(await page.screenshot({ fullPage: true })).toMatchSnapshot();
17+
expect(
18+
await page.screenshot({ fullPage: true, animations: 'disabled' })
19+
).toMatchSnapshot();
1820
});
1921

2022
regressionTest('layout scrolling', async ({ page }) => {
2123
await page.goto('card-list/layout-scroll');
2224
await page.waitForTimeout(1000);
23-
expect(await page.screenshot({ fullPage: true })).toMatchSnapshot();
25+
expect(
26+
await page.screenshot({ fullPage: true, animations: 'disabled' })
27+
).toMatchSnapshot();
2428
});
2529

2630
regressionTest('layout scrolling end', async ({ page }) => {
2731
await page.goto('card-list/layout-scroll');
2832

2933
await page.locator('#end').scrollIntoViewIfNeeded();
3034
await page.waitForTimeout(1000);
31-
expect(await page.screenshot({ fullPage: true })).toMatchSnapshot();
35+
expect(
36+
await page.screenshot({ fullPage: true, animations: 'disabled' })
37+
).toMatchSnapshot();
3238
});
3339
});

packages/core/src/tests/push-card/push-card.e2e.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ import { regressionTest } from '@utils/test';
1313
regressionTest.describe('push-card: basic', () => {
1414
regressionTest('should not have visual regressions', async ({ page }) => {
1515
await page.goto('push-card/basic');
16-
expect(await page.screenshot({ fullPage: true })).toMatchSnapshot();
16+
expect(
17+
await page.screenshot({ fullPage: true, animations: 'disabled' })
18+
).toMatchSnapshot();
1719
});
1820

1921
regressionTest('should click accordion', async ({ page }) => {
@@ -27,6 +29,8 @@ regressionTest.describe('push-card: basic', () => {
2729
// Animation time
2830
await page.waitForTimeout(500);
2931

30-
expect(await page.screenshot({ fullPage: true })).toMatchSnapshot();
32+
expect(
33+
await page.screenshot({ fullPage: true, animations: 'disabled' })
34+
).toMatchSnapshot();
3135
});
3236
});

0 commit comments

Comments
 (0)