From dc93b8ab1501e7b55875644591ae209e03a4bf21 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Mon, 4 Dec 2023 11:05:04 -0500 Subject: [PATCH] test: migrate locale datetime tests --- core/src/components/datetime/test/locale/datetime.e2e.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/core/src/components/datetime/test/locale/datetime.e2e.ts b/core/src/components/datetime/test/locale/datetime.e2e.ts index fba13a4137..7c64ba6373 100644 --- a/core/src/components/datetime/test/locale/datetime.e2e.ts +++ b/core/src/components/datetime/test/locale/datetime.e2e.ts @@ -22,7 +22,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => { await datetimeFixture.expectLocalizedDatePicker(screenshot); }); - test('month/year picker should not have visual regressions', async () => { + test.only('month/year picker should not have visual regressions', async () => { await datetimeFixture.goto(config, 'en-US', 'month-year'); await datetimeFixture.expectLocalizedMonthYearPicker(screenshot); }); @@ -107,14 +107,13 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) => test('should correctly localize year column data', async ({ page }) => { await page.setContent( ` - + `, config ); await page.waitForSelector('.datetime-ready'); - const datetimeYear = page.locator('ion-datetime .year-column .picker-item[data-value="2022"]'); - + const datetimeYear = page.locator('ion-datetime .year-column ion-picker-column-option').nth(0); await expect(datetimeYear).toHaveText('٢٠٢٢'); }); });