From 8eb1c034b160f1835e11a8f8a6f5070327c977d3 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Wed, 23 Dec 2020 11:10:43 -0800 Subject: [PATCH] test: unflake TestGeolocation.shouldUseContextOptionsForPopup (#171) --- .../src/test/java/com/microsoft/playwright/TestGeolocation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playwright/src/test/java/com/microsoft/playwright/TestGeolocation.java b/playwright/src/test/java/com/microsoft/playwright/TestGeolocation.java index 931a5d19..48e2d29e 100644 --- a/playwright/src/test/java/com/microsoft/playwright/TestGeolocation.java +++ b/playwright/src/test/java/com/microsoft/playwright/TestGeolocation.java @@ -146,7 +146,7 @@ public class TestGeolocation extends TestBase { Deferred> 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); }