Skip to content

Commit

Permalink
click slower in timepicker
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Feb 10, 2022
1 parent 8ee9765 commit aa4aaa3
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 @@ -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);
Expand Down

0 comments on commit aa4aaa3

Please sign in to comment.