Skip to content

Commit

Permalink
click slower in timepicker (elastic#125264) (elastic#125286)
Browse files Browse the repository at this point in the history
(cherry picked from commit ec7f2f3)

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
  • Loading branch information
kibanamachine and flash1293 committed Feb 10, 2022
1 parent 889f52e commit 04e0a3e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/functional/page_objects/time_picker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 04e0a3e

Please sign in to comment.