Skip to content

Commit c4b948b

Browse files
committed
Fix iframe selector for Charlotte AI compatibility
Use iframe[name="portal"] instead of bare iframe selector to avoid strict mode violation when Charlotte AI adds a second iframe to the page.
1 parent 175aeab commit c4b948b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e2e/src/pages/HelloExtensionPage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ 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[name="portal"]')).toBeVisible({ timeout: 15000 });
6262
this.logger.info('Extension iframe loaded');
6363

6464
// Verify iframe content
65-
const iframe: FrameLocator = this.page.frameLocator('iframe');
65+
const iframe: FrameLocator = this.page.frameLocator('iframe[name="portal"]');
6666

6767
// Check for "Foundry Functions Demo" text
6868
await expect(iframe.getByText(/Foundry Functions Demo/i)).toBeVisible({ timeout: 10000 });

0 commit comments

Comments
 (0)