diff --git a/core/src/components/popover/test/basic/popover.e2e.ts b/core/src/components/popover/test/basic/popover.e2e.ts index 3c8d2690f6..b344ccabfc 100644 --- a/core/src/components/popover/test/basic/popover.e2e.ts +++ b/core/src/components/popover/test/basic/popover.e2e.ts @@ -76,7 +76,7 @@ test.describe('popover: focus trap', async () => { test('should not override keyboard interactions for textarea elements', async ({ page, browserName }) => { const tabKey = browserName === 'webkit' ? 'Alt+Tab' : 'Tab'; const popover = page.locator('ion-popover'); - const innerNativeTextarea = page.locator('ion-textarea textarea'); + const innerNativeTextarea = page.locator('ion-textarea textarea').nth(0); const vanillaTextarea = page.locator('ion-textarea + textarea'); await openPopover(page, 'popover-with-textarea');