Skip to content

Commit 26b5586

Browse files
committed
Fix iframe strict mode violation when 2 iframes exist
The Falcon console sometimes renders a hidden iframe alongside the app extension iframe. Using locator('iframe') fails with "strict mode violation: resolved to 2 elements". Adding .first() targets the visible iframe and avoids the error.
1 parent d102f8e commit 26b5586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

e2e/src/pages/HelloExtensionPage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class HelloExtensionPage extends SocketNavigationPage {
5858
}
5959

6060
// Verify iframe loads
61-
await expect(this.page.locator('iframe')).toBeVisible({ timeout: 15000 });
61+
await expect(this.page.locator('iframe').first()).toBeVisible({ timeout: 15000 });
6262
this.logger.info('Extension iframe loaded');
6363

6464
// Verify iframe content

0 commit comments

Comments
 (0)