Skip to content

Commit

Permalink
retry visualize link navigation (#116582)
Browse files Browse the repository at this point in the history
flash1293 authored Nov 3, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 2ba7cdc commit b56979a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/functional/page_objects/visualize_page.ts
Original file line number Diff line number Diff line change
@@ -315,7 +315,10 @@ export class VisualizePageObject extends FtrService {

public async openSavedVisualization(vizName: string) {
const dataTestSubj = `visListingTitleLink-${vizName.split(' ').join('-')}`;
await this.testSubjects.click(dataTestSubj, 20000);
await this.retry.try(async () => {
await this.testSubjects.click(dataTestSubj, 20000);
await this.notOnLandingPageOrFail();
});
await this.header.waitUntilLoadingHasFinished();
}

@@ -337,6 +340,11 @@ export class VisualizePageObject extends FtrService {
return await this.testSubjects.exists('visualizationLandingPage');
}

public async notOnLandingPageOrFail() {
this.log.debug(`VisualizePage.notOnLandingPageOrFail`);
return await this.testSubjects.missingOrFail('visualizationLandingPage');
}

public async gotoLandingPage() {
this.log.debug('VisualizePage.gotoLandingPage');
const onPage = await this.onLandingPage();

0 comments on commit b56979a

Please sign in to comment.