File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
vaadin-platform-react-hybrid-test
src/test/java/com/vaadin/platform/react/test Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 189
189
<plugin >
190
190
<groupId >org.springframework.boot</groupId >
191
191
<artifactId >spring-boot-maven-plugin</artifactId >
192
+ <version >${spring.boot.version} </version >
192
193
<executions >
193
194
<execution >
194
195
<id >repackage</id >
Original file line number Diff line number Diff line change @@ -72,8 +72,8 @@ public void forwardNavigationTest() {
72
72
By .id ("toHello" ));
73
73
findElement (By .id ("toHello" )).click ();
74
74
75
- Assert . assertTrue ("Navigation with NavLink failed." ,
76
- $ ( VerticalLayoutElement . class ). id ("HelloReact" ). isDisplayed ( ));
75
+ waitForElement ("Navigation with NavLink failed." ,
76
+ By . id ("HelloReact" ));
77
77
78
78
// Navigate to Flow view
79
79
getMenuElement ("Flow in hilla" ).get ().click ();
@@ -83,13 +83,13 @@ public void forwardNavigationTest() {
83
83
getDriver ().navigate ().back ();
84
84
getDriver ().navigate ().back ();
85
85
86
- Assert . assertTrue ("Should have returned to initial page" ,
87
- findElement ( By .id ("toHello" )). isDisplayed ( ));
86
+ waitForElement ("Should have returned to initial page" ,
87
+ By .id ("toHello" ));
88
88
89
89
getDriver ().navigate ().forward ();
90
90
91
- Assert . assertTrue ("Expected hilla view after forward" ,
92
- $ ( VerticalLayoutElement . class ). id ("HelloReact" ). isDisplayed ( ));
91
+ waitForElement ("Expected hilla view after forward" ,
92
+ By . id ("HelloReact" ));
93
93
94
94
getDriver ().navigate ().forward ();
95
95
You can’t perform that action at this time.
0 commit comments