Skip to content

Commit 0a89e66

Browse files
committed
test(datetime): set the working parts to the first selected value
1 parent 0a278c2 commit 0a89e66

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

core/src/components/datetime/test/multiple/datetime.e2e.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,4 +311,13 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => {
311311
await expect(header).toHaveText('Mon, Oct 10');
312312
});
313313
});
314+
315+
test.describe('with selected days in different months', () => {
316+
test('set the working parts to the first selected value', async ({ page }) => {
317+
const datetime = await new DatetimeMultipleFixture(page).goto(config, MULTIPLE_DATES_SEPARATE_MONTHS);
318+
const monthYear = datetime.locator('.calendar-month-year');
319+
320+
await expect(monthYear).toHaveText(/March 2022/);
321+
});
322+
});
314323
});

0 commit comments

Comments
 (0)