Skip to content

Commit

Permalink
make sure button is displayed and enabled before clicking
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeDr committed May 12, 2020
1 parent e4c68f1 commit d14b4b4
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 d14b4b4

Please sign in to comment.