Skip to content

Commit

Permalink
fixes the flakiness on hybrid visualization test
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Jul 7, 2020
1 parent f18002c commit 52bbbff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/functional/page_objects/visualize_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,10 @@ export function VisualizePageProvider({ getService, getPageObjects }: FtrProvide

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

public async waitForVisualizationSavedToastGone() {
Expand Down

0 comments on commit 52bbbff

Please sign in to comment.