From d2a221de1bc2c10f05ef52720c41fb9c09ee74b6 Mon Sep 17 00:00:00 2001 From: Dzmitry Lemechko Date: Fri, 14 May 2021 19:07:27 +0200 Subject: [PATCH] remove non-valid code --- test/functional/page_objects/common_page.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/functional/page_objects/common_page.ts b/test/functional/page_objects/common_page.ts index 6d9641a1a920e..bc60b8ce5f19c 100644 --- a/test/functional/page_objects/common_page.ts +++ b/test/functional/page_objects/common_page.ts @@ -257,7 +257,7 @@ export function CommonPageProvider({ getService, getPageObjects }: FtrProviderCo return currentUrl; }); - await retry.try(async () => { + await retry.tryForTime(defaultFindTimeout, async () => { await this.sleep(501); const currentUrl = await browser.getCurrentUrl(); log.debug('in navigateTo url = ' + currentUrl); @@ -266,10 +266,6 @@ export function CommonPageProvider({ getService, getPageObjects }: FtrProviderCo throw new Error('URL changed, waiting for it to settle'); } }); - if (appName === 'status_page') return; - if (await testSubjects.exists('statusPageContainer')) { - throw new Error('Navigation ended up at the status page.'); - } }); }