Skip to content

Commit

Permalink
[7.9] add short sleep before clicking Remove on sample data (#71104) (#…
Browse files Browse the repository at this point in the history
…71906)

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
Lee Drengenberg and elasticmachine authored Jul 15, 2020
1 parent 7d955b0 commit cbedeba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/functional/page_objects/home_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ export function HomePageProvider({ getService, getPageObjects }: FtrProviderCont
async removeSampleDataSet(id: string) {
// looks like overkill but we're hitting flaky cases where we click but it doesn't remove
await testSubjects.waitForEnabled(`removeSampleDataSet${id}`);
// https://github.com/elastic/kibana/issues/65949
// Even after waiting for the "Remove" button to be enabled we still have failures
// where it appears the click just didn't work.
await PageObjects.common.sleep(1010);
await testSubjects.click(`removeSampleDataSet${id}`);
await this._waitForSampleDataLoadingAction(id);
}
Expand Down

0 comments on commit cbedeba

Please sign in to comment.