diff --git a/test/functional/page_objects/home_page.ts b/test/functional/page_objects/home_page.ts index 6fdc306e39192..215e3360bbd5b 100644 --- a/test/functional/page_objects/home_page.ts +++ b/test/functional/page_objects/home_page.ts @@ -52,6 +52,9 @@ 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.isDisplayed(`removeSampleDataSet${id}`); + await testSubjects.isEnabled(`removeSampleDataSet${id}`); await testSubjects.click(`removeSampleDataSet${id}`); await this._waitForSampleDataLoadingAction(id); }