Bug 1401876 - (Part 2) Add browser-chrome test for reopening picker

This commit is contained in:
janekptacijarabaci 2018-03-31 07:02:03 +02:00 • committed by Roy Tam
commit 1cb68033a6
2 changed files with 27 additions and 1 deletions

View file

@ -57,8 +57,12 @@ class DateTimeTestHelper {
await BrowserTestUtils.waitForEvent(this.panel, "DateTimePickerBindingReady")
}
this.frame = this.panel.dateTimePopupFrame;
await this.waitForPickerReady();
}
async waitForPickerReady() {
await BrowserTestUtils.waitForEvent(this.frame, "load", true);
// Wait for picker elements to be ready and open panel transition to end
// Wait for picker elements to be ready
await BrowserTestUtils.waitForEvent(this.frame.contentDocument, "PickerReady");
}