@@ -37,33 +37,33 @@ public void start(Stage stage) {
37
37
public void testOnExceptionEvent () throws Exception {
38
38
flagNewException ();
39
39
WaitForAsyncUtils .waitFor (2 , TimeUnit .SECONDS ,
40
- () -> NodeMatchers .isVisible ().matches (lookup ("." + ExceptionWitnessResponderButton .STYLE_CLASS ).queryFirst ()));
40
+ () -> NodeMatchers .isVisible ().matches (lookup ("." + ExceptionWitnessResponderButton .STYLE_CLASS ).query ()));
41
41
}
42
42
43
43
@ Test
44
44
public void testOnExceptionClearedEvent () throws Exception {
45
45
flagNewException ();
46
46
witness .clearException ();
47
47
WaitForAsyncUtils .waitFor (2 , TimeUnit .SECONDS ,
48
- () -> NodeMatchers .isInvisible ().matches (lookup ("." + ExceptionWitnessResponderButton .STYLE_CLASS ).queryFirst ()));
48
+ () -> NodeMatchers .isInvisible ().matches (lookup ("." + ExceptionWitnessResponderButton .STYLE_CLASS ).query ()));
49
49
}
50
50
51
51
@ Test
52
52
@ Ignore ("Broken on AppVeyor" )
53
53
public void testPopoverAppears () throws TimeoutException {
54
54
flagNewException ();
55
55
WaitForAsyncUtils .waitFor (2 , TimeUnit .SECONDS ,
56
- () -> NodeMatchers .isVisible ().matches (lookup ("." + ExceptionWitnessResponderButton .STYLE_CLASS ).queryFirst ()));
56
+ () -> NodeMatchers .isVisible ().matches (lookup ("." + ExceptionWitnessResponderButton .STYLE_CLASS ).query ()));
57
57
clickOn ("." + ExceptionWitnessResponderButton .STYLE_CLASS );
58
58
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 ()));
60
60
}
61
61
62
62
@ Test
63
63
public void testPopoverDoesNotHaveStackTracePaneWhenWarningIsFlagged () throws Exception {
64
64
flagWarning ();
65
65
WaitForAsyncUtils .waitFor (2 , TimeUnit .SECONDS ,
66
- () -> NodeMatchers .isVisible ().matches (lookup ("." + ExceptionWitnessResponderButton .STYLE_CLASS ).queryFirst ()));
66
+ () -> NodeMatchers .isVisible ().matches (lookup ("." + ExceptionWitnessResponderButton .STYLE_CLASS ).query ()));
67
67
clickOn ("." + ExceptionWitnessResponderButton .STYLE_CLASS );
68
68
verifyThat ("Stack Trace" , NodeMatchers .isInvisible ());
69
69
}
0 commit comments