@@ -37,33 +37,33 @@ public void start(Stage stage) {
3737 public void testOnExceptionEvent () throws Exception {
3838 flagNewException ();
3939 WaitForAsyncUtils .waitFor (2 , TimeUnit .SECONDS ,
40- () -> NodeMatchers .isVisible ().matches (lookup ("." + ExceptionWitnessResponderButton .STYLE_CLASS ).queryFirst ()));
40+ () -> NodeMatchers .isVisible ().matches (lookup ("." + ExceptionWitnessResponderButton .STYLE_CLASS ).query ()));
4141 }
4242
4343 @ Test
4444 public void testOnExceptionClearedEvent () throws Exception {
4545 flagNewException ();
4646 witness .clearException ();
4747 WaitForAsyncUtils .waitFor (2 , TimeUnit .SECONDS ,
48- () -> NodeMatchers .isInvisible ().matches (lookup ("." + ExceptionWitnessResponderButton .STYLE_CLASS ).queryFirst ()));
48+ () -> NodeMatchers .isInvisible ().matches (lookup ("." + ExceptionWitnessResponderButton .STYLE_CLASS ).query ()));
4949 }
5050
5151 @ Test
5252 @ Ignore ("Broken on AppVeyor" )
5353 public void testPopoverAppears () throws TimeoutException {
5454 flagNewException ();
5555 WaitForAsyncUtils .waitFor (2 , TimeUnit .SECONDS ,
56- () -> NodeMatchers .isVisible ().matches (lookup ("." + ExceptionWitnessResponderButton .STYLE_CLASS ).queryFirst ()));
56+ () -> NodeMatchers .isVisible ().matches (lookup ("." + ExceptionWitnessResponderButton .STYLE_CLASS ).query ()));
5757 clickOn ("." + ExceptionWitnessResponderButton .STYLE_CLASS );
5858 WaitForAsyncUtils .waitFor (2 , TimeUnit .SECONDS ,
59- () -> NodeMatchers .isVisible ().matches (lookup ("." + ExceptionWitnessResponderButton .ExceptionPopOver .STYLE_CLASS ).queryFirst ()));
59+ () -> NodeMatchers .isVisible ().matches (lookup ("." + ExceptionWitnessResponderButton .ExceptionPopOver .STYLE_CLASS ).query ()));
6060 }
6161
6262 @ Test
6363 public void testPopoverDoesNotHaveStackTracePaneWhenWarningIsFlagged () throws Exception {
6464 flagWarning ();
6565 WaitForAsyncUtils .waitFor (2 , TimeUnit .SECONDS ,
66- () -> NodeMatchers .isVisible ().matches (lookup ("." + ExceptionWitnessResponderButton .STYLE_CLASS ).queryFirst ()));
66+ () -> NodeMatchers .isVisible ().matches (lookup ("." + ExceptionWitnessResponderButton .STYLE_CLASS ).query ()));
6767 clickOn ("." + ExceptionWitnessResponderButton .STYLE_CLASS );
6868 verifyThat ("Stack Trace" , NodeMatchers .isInvisible ());
6969 }
0 commit comments