mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 15:51:16 +08:00
test(datetime): remove empty string test
This test was introduced for a temporary fix in v6. That fix was removed in v7 in favor of a breaking change that effects what an empty string will default to.
This commit is contained in:
@ -50,17 +50,3 @@ test.describe('datetime: values', () => {
|
||||
await expect(items).toHaveText(['01', '02', '03']);
|
||||
});
|
||||
});
|
||||
|
||||
test('setting value to empty string should treat it as having no date', async ({ page, skip }) => {
|
||||
skip.rtl();
|
||||
skip.mode('ios');
|
||||
await page.setContent(`
|
||||
<ion-datetime value="" locale="en-US"></ion-datetime>
|
||||
`);
|
||||
|
||||
await page.waitForSelector('.datetime-ready');
|
||||
|
||||
// Should render current month with today outlined.
|
||||
const calendarDayToday = page.locator('ion-datetime .calendar-day-today');
|
||||
await expect(calendarDayToday).toBeVisible();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user