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('٢٠٢٢');
});
});