Skip to content

Commit

Permalink
fix: try to make setting RelateContactToMultipleAccounts more reliable
Browse files Browse the repository at this point in the history
  • Loading branch information
amtrack committed Oct 9, 2023
1 parent 00564af commit d89deca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plugins/relate-contact-to-multiple-accounts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ export class RelateContactToMultipleAccounts extends BrowserforcePlugin {
await page.waitForSelector(SELECTORS.SAVE_BUTTON);
await Promise.all([
Promise.race([
page.waitForSelector(SELECTORS.DISABLED_CHECKBOX),
page.waitForSelector(SELECTORS.CONFIRM_CHECKBOX)
page.waitForNavigation(),
page.waitForSelector(SELECTORS.DISABLED_CHECKBOX, { visible: true }),
page.waitForSelector(SELECTORS.CONFIRM_CHECKBOX, { visible: true })
]),
page.click(SELECTORS.SAVE_BUTTON)
]);
Expand Down

0 comments on commit d89deca

Please sign in to comment.