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 @@ -65,8 +65,8 @@ public void backNavigationTest() {
65
65
public void forwardNavigationTest () {
66
66
findElement (By .id ("toHello" )).click ();
67
67
68
- Assert . assertTrue ("Navigation with NavLink failed." ,
69
- $ ( VerticalLayoutElement . class ). id ("HelloReact" ). isDisplayed ( ));
68
+ waitForElement ("Navigation with NavLink failed." ,
69
+ By . id ("HelloReact" ));
70
70
71
71
// Navigate to Flow view
72
72
getMenuElement ("Flow in hilla" ).get ().click ();
@@ -76,13 +76,13 @@ public void forwardNavigationTest() {
76
76
getDriver ().navigate ().back ();
77
77
getDriver ().navigate ().back ();
78
78
79
- Assert . assertTrue ("Should have returned to initial page" ,
80
- findElement ( By .id ("toHello" )). isDisplayed ( ));
79
+ waitForElement ("Should have returned to initial page" ,
80
+ By .id ("toHello" ));
81
81
82
82
getDriver ().navigate ().forward ();
83
83
84
- Assert . assertTrue ("Expected hilla view after forward" ,
85
- $ ( VerticalLayoutElement . class ). id ("HelloReact" ). isDisplayed ( ));
84
+ waitForElement ("Expected hilla view after forward" ,
85
+ By . id ("HelloReact" ));
86
86
87
87
getDriver ().navigate ().forward ();
88
88
You can’t perform that action at this time.
0 commit comments