Skip to content

Commit f5480b8

Browse files
committed
Fix iframe selector in savePreference to target portal iframe
The unqualified 'iframe' selector matches both the app's portal iframe and the Charlotte AI iframe, causing a strict mode violation. Use 'iframe[name="portal"]' to match the parent class pattern.
1 parent 19b9a7e commit f5480b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

e2e/src/pages/UserPreferencesExtensionPage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class UserPreferencesExtensionPage extends HostPanelExtensionPage {
2323
async savePreference(): Promise<void> {
2424
return this.withTiming(
2525
async () => {
26-
const iframe = this.page.frameLocator('iframe');
26+
const iframe = this.page.frameLocator('iframe[name="portal"]');
2727

2828
// Wait for Save button to confirm form is loaded
2929
await expect(iframe.getByRole('button', { name: /Save Preferences/i })).toBeVisible({ timeout: 10000 });

0 commit comments

Comments
 (0)