Skip to content

Commit e27bb2c

Browse files
committed
test(datetime): update snapshots and use waitFor
1 parent 78df64c commit e27bb2c

File tree

29 files changed

+7
-0
lines changed

29 files changed

+7
-0
lines changed

core/src/components/datetime/test/show-adjacent-days/datetime.e2e.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,42 +8,49 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
88
test.describe(title('datetime: show adjacent days'), () => {
99
test('should not have visual regressions', async ({ page }) => {
1010
await page.goto('/src/components/datetime/test/show-adjacent-days', config);
11+
await page.locator('.datetime-ready').first().waitFor();
1112
const datetime = page.locator('#default');
1213
await expect(datetime).toHaveScreenshot(screenshot(`datetime-show-adjacent-days`));
1314
});
1415

1516
test('should not have visual regressions with a custom styled calendar', async ({ page }) => {
1617
await page.goto('/src/components/datetime/test/show-adjacent-days', config);
18+
await page.locator('.datetime-ready').first().waitFor();
1719
const datetime = page.locator('#custom-calendar-days');
1820
await expect(datetime).toHaveScreenshot(screenshot(`datetime-show-adjacent-days-custom-calendar`));
1921
});
2022

2123
test('should not have visual regressions with specific date disabled', async ({ page }) => {
2224
await page.goto('/src/components/datetime/test/show-adjacent-days', config);
25+
await page.locator('.datetime-ready').first().waitFor();
2326
const datetime = page.locator('#specificDate');
2427
await expect(datetime).toHaveScreenshot(screenshot(`datetime-show-adjacent-days-specific-date-disabled`));
2528
});
2629

2730
test('should not have visual regressions with weekends disabled', async ({ page }) => {
2831
await page.goto('/src/components/datetime/test/show-adjacent-days', config);
32+
await page.locator('.datetime-ready').first().waitFor();
2933
const datetime = page.locator('#weekends');
3034
await expect(datetime).toHaveScreenshot(screenshot(`datetime-show-adjacent-days-weekends-disabled`));
3135
});
3236

3337
test('should not have visual regressions with date range disabled', async ({ page }) => {
3438
await page.goto('/src/components/datetime/test/show-adjacent-days', config);
39+
await page.locator('.datetime-ready').first().waitFor();
3540
const datetime = page.locator('#dateRange');
3641
await expect(datetime).toHaveScreenshot(screenshot(`datetime-show-adjacent-days-date-range-disabled`));
3742
});
3843

3944
test('should not have visual regressions with month disabled', async ({ page }) => {
4045
await page.goto('/src/components/datetime/test/show-adjacent-days', config);
46+
await page.locator('.datetime-ready').first().waitFor();
4147
const datetime = page.locator('#month');
4248
await expect(datetime).toHaveScreenshot(screenshot(`datetime-show-adjacent-days-month-disabled`));
4349
});
4450

4551
test('should not have visual regressions with display specified', async ({ page }) => {
4652
await page.goto('/src/components/datetime/test/show-adjacent-days', config);
53+
await page.locator('.datetime-ready').first().waitFor();
4754
const datetime = page.locator('#display');
4855
await expect(datetime).toHaveScreenshot(screenshot(`datetime-show-adjacent-days-display`));
4956
});
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)