From ec7f2f3d8cd75d2d87396f68e175af33e0d4bfeb Mon Sep 17 00:00:00 2001 From: Joe Reuter Date: Thu, 10 Feb 2022 18:59:15 +0100 Subject: [PATCH] click slower in timepicker (#125264) --- test/functional/page_objects/time_picker.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/functional/page_objects/time_picker.ts b/test/functional/page_objects/time_picker.ts index 4b73df26c48dec..37933a91a9d705 100644 --- a/test/functional/page_objects/time_picker.ts +++ b/test/functional/page_objects/time_picker.ts @@ -29,6 +29,7 @@ export class TimePickerPageObject extends FtrService { private readonly retry = this.ctx.getService('retry'); private readonly testSubjects = this.ctx.getService('testSubjects'); private readonly header = this.ctx.getPageObject('header'); + private readonly common = this.ctx.getPageObject('common'); private readonly kibanaServer = this.ctx.getService('kibanaServer'); private readonly quickSelectTimeMenuToggle = this.ctx.getService('menuToggle').create({ @@ -245,6 +246,9 @@ export class TimePickerPageObject extends FtrService { await this.testSubjects.click('superDatePickerAbsoluteTab'); const end = await this.testSubjects.getAttribute('superDatePickerAbsoluteDateInput', 'value'); + // Wait until closing popover again to avoid https://github.com/elastic/eui/issues/5619 + await this.common.sleep(2000); + // get from time await this.testSubjects.click('superDatePickerstartDatePopoverButton'); await this.waitPanelIsGone(panel);