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]>
# Conflicts:
#	test/functional/page_objects/common_page.ts
  • Loading branch information
dmlemeshko committed Jun 10, 2021
1 parent 2621efd commit d8d9a49
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 @@ -256,7 +256,7 @@ export class CommonPageObject extends FtrService {
return currentUrl;
});

await this.retry.try(async () => {
await this.retry.tryForTime(this.defaultFindTimeout, async () => {
await this.sleep(501);
const currentUrl = await this.browser.getCurrentUrl();
this.log.debug('in navigateTo url = ' + currentUrl);
Expand All @@ -265,10 +265,6 @@ export class CommonPageObject extends FtrService {
throw new Error('URL changed, waiting for it to settle');
}
});
if (appName === 'status_page') return;
if (await this.testSubjects.exists('statusPageContainer')) {
throw new Error('Navigation ended up at the status page.');
}
});
}

Expand Down

0 comments on commit d8d9a49

Please sign in to comment.