Skip to content

Commit 62d0a94

Browse files
ZheSun88vaadin-bot
authored andcommitted
chore: provide more waiting time in test (#7999)
1 parent 8080482 commit 62d0a94

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

vaadin-platform-react-hybrid-test/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@
189189
<plugin>
190190
<groupId>org.springframework.boot</groupId>
191191
<artifactId>spring-boot-maven-plugin</artifactId>
192+
<version>${spring.boot.version}</version>
192193
<executions>
193194
<execution>
194195
<id>repackage</id>

vaadin-platform-react-hybrid-test/src/test/java/com/vaadin/platform/react/test/HillaMainLayoutIT.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ public void backNavigationTest() {
6565
public void forwardNavigationTest() {
6666
findElement(By.id("toHello")).click();
6767

68-
Assert.assertTrue("Navigation with NavLink failed.",
69-
$(VerticalLayoutElement.class).id("HelloReact").isDisplayed());
68+
waitForElement("Navigation with NavLink failed.",
69+
By.id("HelloReact"));
7070

7171
// Navigate to Flow view
7272
getMenuElement("Flow in hilla").get().click();
@@ -76,13 +76,13 @@ public void forwardNavigationTest() {
7676
getDriver().navigate().back();
7777
getDriver().navigate().back();
7878

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"));
8181

8282
getDriver().navigate().forward();
8383

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"));
8686

8787
getDriver().navigate().forward();
8888

0 commit comments

Comments
 (0)