diff --git a/test/source/browser/controllable.ts b/test/source/browser/controllable.ts index 0750b44fd43..a4ae4184edb 100644 --- a/test/source/browser/controllable.ts +++ b/test/source/browser/controllable.ts @@ -330,9 +330,9 @@ abstract class ControllableBase { } catch (e) { this.log(`wait_and_click(i${i}):6:err(${String(e)}):${selector}`); if ( - e.message === 'Node is either not visible or not an HTMLElement' || - e.message === 'Node is either not clickable or not an HTMLElement' || - e.message === 'Node is detached from document' + ['Node is either not visible or not an HTMLElement', 'Node is either not clickable or not an HTMLElement', 'Node is detached from document'].includes( + e.message + ) ) { // maybe the node just re-rendered? if (!retryErrs || i === 3) { diff --git a/test/source/tests/page-recipe/oauth-page-recipe.ts b/test/source/tests/page-recipe/oauth-page-recipe.ts index c3e13e2ab74..734654180cc 100644 --- a/test/source/tests/page-recipe/oauth-page-recipe.ts +++ b/test/source/tests/page-recipe/oauth-page-recipe.ts @@ -133,7 +133,11 @@ export class OauthPageRecipe extends PageRecipe { } } catch (e) { const eStr = String(e); - if (!eStr.includes('Execution context was destroyed') && !eStr.includes('Cannot find context with specified id')) { + if ( + !eStr.includes('Execution context was destroyed') && + !eStr.includes('Cannot find context with specified id') && + !eStr.includes('Argument should belong to the same JavaScript world as target object') + ) { throw e; // not a known retriable error } // t.log(`Attempting to retry google auth:${action} on the same window for ${email} because: ${eStr}`);