Skip to content

Commit

Permalink
[7.8] make sure remove sample data button is displayed and enabled be…
Browse files Browse the repository at this point in the history
…fore clicking (#66322) (#66501)
  • Loading branch information
Lee Drengenberg authored May 14, 2020
1 parent 9140a7a commit 97caea5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/functional/page_objects/home_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 97caea5

Please sign in to comment.