check that the sample data menu is really open, retry (#144274) (#144353)

(cherry picked from commit f6203495d1)

Co-authored-by: Lee Drengenberg <lee.drengenberg@elastic.co>
This commit is contained in:
Kibana Machine 2022-11-01 15:30:38 -04:00 committed by GitHub
parent 691977945f
commit f9d7907c5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -131,7 +131,12 @@ export class HomePageObject extends FtrService {
async launchSampleDataSet(id: string) {
await this.addSampleDataSet(id);
await this.common.closeToastIfExists();
await this.testSubjects.click(`launchSampleDataSet${id}`);
await this.retry.try(async () => {
await this.testSubjects.click(`launchSampleDataSet${id}`);
await this.find.byCssSelector(
`.euiPopover-isOpen[data-test-subj="launchSampleDataSet${id}"]`
);
});
}
async clickAllKibanaPlugins() {