From d89deca7e8b641c7266b003c87ab038537a699c0 Mon Sep 17 00:00:00 2001 From: Matthias Rolke Date: Mon, 9 Oct 2023 22:20:21 +0200 Subject: [PATCH] fix: try to make setting RelateContactToMultipleAccounts more reliable --- src/plugins/relate-contact-to-multiple-accounts/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/relate-contact-to-multiple-accounts/index.ts b/src/plugins/relate-contact-to-multiple-accounts/index.ts index d621759e..4bf6216e 100644 --- a/src/plugins/relate-contact-to-multiple-accounts/index.ts +++ b/src/plugins/relate-contact-to-multiple-accounts/index.ts @@ -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) ]);