Skip to content

Commit

Permalink
test: unflake TestPageClock
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed Nov 15, 2024
1 parent d2d78a7 commit 209b5de
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,9 @@ void shouldRunTimeBeforePopup(Page page, Server server) {
Page popup = page.waitForPopup(() -> {
page.evaluate("url => window.open(url)", server.PREFIX + "/popup.html");
});
popup.waitForURL(server.PREFIX + "/popup.html");
Double popupTime = (Double) popup.evaluate("time");
assertTrue(popupTime >= 2000);
assertTrue(popupTime >= 2000, "popupTime = " + popupTime);
}

@Test
Expand All @@ -310,6 +311,7 @@ void shouldNotRunTimeBeforePopupOnPause(Page page, Server server) {
Page popup = page.waitForPopup(() -> {
page.evaluate("url => window.open(url)", server.PREFIX + "/popup.html");
});
popup.waitForURL(server.PREFIX + "/popup.html");
Object popupTime = popup.evaluate("time");
assertEquals(1000, popupTime);
}
Expand Down

0 comments on commit 209b5de

Please # to comment.