Skip to content

Commit

Permalink
remove non-valid code (elastic#100144)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
dmlemeshko and kibanamachine committed May 17, 2021
1 parent 30b0a8f commit 3c2301f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/functional/page_objects/common_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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.');
}
});
}

Expand Down

0 comments on commit 3c2301f

Please sign in to comment.