Skip to content

Commit f4af1ca

Browse files
jrupeshamtrack
andauthored
Update src/plugins/auth-providers/index.ts
Co-authored-by: Matthias Rolke <mr.amtrack@gmail.com>
1 parent 60babb0 commit f4af1ca

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

src/plugins/auth-providers/index.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,7 @@ export class AuthProviders extends BrowserforcePlugin {
9393
}
9494

9595
// Save the changes
96-
await frameOrPage.locator(SAVE_BUTTON_SELECTOR).waitFor({ timeout: 10000 });
97-
98-
// Click save button - don't wait for navigation as it may redirect to a non-existent page
99-
// Instead, wait for the click to complete and then check for errors
100-
const saveButtonLocator = frameOrPage.locator(SAVE_BUTTON_SELECTOR);
101-
const saveButtonCount = await saveButtonLocator.count();
102-
if (saveButtonCount === 0) {
103-
throw new Error(`Save button not found for AuthProvider '${developerName}'`);
104-
}
105-
106-
// Click the save button
96+
const saveButtonLocator = page.locator(SAVE_BUTTON_SELECTOR);
10797
await saveButtonLocator.first().click();
10898

10999
// Wait for save to complete - give it time to process

0 commit comments

Comments
 (0)