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:
Sean Perkins
2022-10-24 11:29:09 -04:00
parent 92d7bd5d7d
commit b509797792

View File

@ -50,17 +50,3 @@ test.describe('datetime: values', () => {
await expect(items).toHaveText(['01', '02', '03']); 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();
});