@@ -486,7 +486,7 @@ public void navigateBack() throws Exception {
486486 Window window = application .getWindow ();
487487 CountDownLatch latch = new CountDownLatch (2 );
488488 navigateAndWaitForContent (window , guest_url );
489- navigateAndWaitForContent (window , "https://openfin.co " );
489+ navigateAndWaitForContent (window , "https://google.com " );
490490 navigateHistoryAndWaitForContent (window , -1 , latch );
491491
492492 window .executeJavaScript ("location.href" , result -> {
@@ -506,12 +506,13 @@ public void navigateForward() throws Exception {
506506 Application application = TestUtils .runApplication (options , desktopConnection );
507507 Window window = application .getWindow ();
508508 CountDownLatch latch = new CountDownLatch (3 );
509- navigateAndWaitForContent (window , "https://openfin.co " );
509+ navigateAndWaitForContent (window , "https://google.com " );
510510 navigateAndWaitForContent (window , guest_url );
511511 navigateHistoryAndWaitForContent (window , -1 , latch );
512512 navigateHistoryAndWaitForContent (window , 1 , latch );
513513
514514 window .executeJavaScript ("location.href" , result -> {
515+ logger .info (String .format ("location.ref %s " , result .toString ()));
515516 if (result != null && result .toString ().equals (guest_url )) {
516517 latch .countDown ();
517518 }
@@ -533,7 +534,7 @@ public void eventReceived(ActionEvent actionEvent) {
533534 }
534535 }
535536 };
536- TestUtils .addEventListener (window , "dom-content-loaded" , listener );
537+ TestUtils .addEventListener (window , eventType , listener );
537538 window .navigate (url , null );
538539 latch .await (5 , TimeUnit .SECONDS );
539540 window .removeEventListener (eventType , listener , null );
0 commit comments