1
0
mirror of synced 2026-08-05 15:06:54 +00:00

test: unflake TestGeolocation.shouldUseContextOptionsForPopup (#171)

This commit is contained in:
Yury Semikhatsky
2020-12-23 11:10:43 -08:00
committed by GitHub
parent 66334131ca
commit 8eb1c034b1
@@ -146,7 +146,7 @@ public class TestGeolocation extends TestBase {
Deferred<Event<Page.EventType>> popupEvent = page.waitForEvent(POPUP);
page.evaluate("url => window['_popup'] = window.open(url)", server.PREFIX + "/geolocation.html");
Page popup = (Page) popupEvent.get().data();
popup.waitForLoadState();
popup.waitForLoadState().get();
Object geolocation = popup.evaluate("window['geolocationPromise']");
assertEquals(mapOf("longitude", 10, "latitude", 10), geolocation);
}