mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
chore(): run lint on datetime test files
This commit is contained in:
@ -7,7 +7,6 @@ test.describe('datetime: color', () => {
|
|||||||
|
|
||||||
await page.goto('/src/components/datetime/test/color');
|
await page.goto('/src/components/datetime/test/color');
|
||||||
|
|
||||||
const darkModeToggle = page.locator('ion-checkbox');
|
|
||||||
const datetime = page.locator('ion-datetime');
|
const datetime = page.locator('ion-datetime');
|
||||||
|
|
||||||
expect(await datetime.screenshot()).toMatchSnapshot(`datetime-color-${page.getSnapshotSettings()}.png`);
|
expect(await datetime.screenshot()).toMatchSnapshot(`datetime-color-${page.getSnapshotSettings()}.png`);
|
||||||
|
@ -159,14 +159,11 @@ test.describe('datetime: multiple date selection (functionality)', () => {
|
|||||||
await expect(monthYear).toHaveText('April 2022');
|
await expect(monthYear).toHaveText('April 2022');
|
||||||
});
|
});
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
test('multiple=false and array for default value should switch to first item', async () => {
|
test('multiple=false and array for default value should switch to first item', async () => {
|
||||||
const datetime = await datetimeFixture.goto(MULTIPLE_DATES, { multiple: false });
|
const datetime = await datetimeFixture.goto(MULTIPLE_DATES, { multiple: false });
|
||||||
await expect(datetime).toHaveJSProperty('value', SINGLE_DATE);
|
await expect(datetime).toHaveJSProperty('value', SINGLE_DATE);
|
||||||
});
|
});
|
||||||
|
|
||||||
>>>>>>> origin/main
|
|
||||||
test('with buttons, should only update value when confirm is called', async ({ page }) => {
|
test('with buttons, should only update value when confirm is called', async ({ page }) => {
|
||||||
const datetime = await datetimeFixture.goto(SINGLE_DATE, { showDefaultButtons: true });
|
const datetime = await datetimeFixture.goto(SINGLE_DATE, { showDefaultButtons: true });
|
||||||
const june2Button = datetime.locator('[data-month="6"][data-day="2"]');
|
const june2Button = datetime.locator('[data-month="6"][data-day="2"]');
|
||||||
|
Reference in New Issue
Block a user