Skip to content

Commit d5205d3

Browse files
authored
fix: wait for dev server in DevModeNoClassCacheIT to prevent flaky test (#22689)
The test was timing out waiting for the "last-span" element because it didn't wait for the Vite dev server to fully initialize before checking for DOM elements. Adding waitForDevServer() ensures the dev server, Spring Boot app, and view rendering complete before assertions.
1 parent 644be01 commit d5205d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flow-tests/test-redeployment-no-cache/src/test/java/com/vaadin/flow/uitest/ui/DevModeNoClassCacheIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ protected String getTestPath() {
3636
@Test
3737
public void testDevModeClassCacheNotPopulated() {
3838
open();
39+
waitForDevServer();
3940

4041
waitForElementPresent(By.id("last-span"));
4142

0 commit comments

Comments
 (0)