From ec07b791d4871005d76037e000a2f891190b27fa 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) (cherry picked from commit ec7f2f3d8cd75d2d87396f68e175af33e0d4bfeb) --- 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 bf2db6c25ad12d..bdc7fb47bc2114 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({ @@ -240,6 +241,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);