Skip to content

feat: delegate waitForVaadin readiness checks to Flow#2160

Draft
Artur- wants to merge 3 commits intomainfrom
wait-for-vaadin-in-flow
Draft

feat: delegate waitForVaadin readiness checks to Flow#2160
Artur- wants to merge 3 commits intomainfrom
wait-for-vaadin-in-flow

Conversation

@Artur-
Copy link
Member

@Artur- Artur- commented Mar 3, 2026

Replace the synchronous polling script that checked document.readyState,
devServerIsNotLoaded, and active clients directly with a call to
Flow's whenReady callback, which now owns all readiness logic.

TestBench polls Java-side until whenReady is a function (handling dev
server startup where the page may not have Flow loaded yet), then
makes a single executeAsyncScript call to let Flow report readiness.

Remove the waitForVaadinLoopHook testing mechanism and update
integration tests to use whenReady=false and setTimeout instead.

@Artur- Artur- force-pushed the wait-for-vaadin-in-flow branch from db49f71 to 2c0976c Compare March 3, 2026 16:08
Move readiness logic (active connectors, dev server status) out of
TestBench and into Flow's whenReady callback. TestBench now polls
Java-side until whenReady is a function, then makes a single async
call to let Flow handle all readiness checks.

The Java-side polling survives page reloads during dev server startup,
unlike the previous JS-side approach.
@Artur- Artur- force-pushed the wait-for-vaadin-in-flow branch from 2c0976c to 6cfbe71 Compare March 3, 2026 16:09
@Artur- Artur- changed the title feat: replace waitForVaadin polling loop with single async call feat: delegate waitForVaadin readiness checks to Flow Mar 3, 2026
@github-actions
Copy link

github-actions bot commented Mar 3, 2026

Test Results

294 tests   214 ✅  2h 7m 45s ⏱️
 34 suites    5 💤
 34 files      2 ❌  73 🔥

For more details on these failures and errors, see this check.

Results for commit cedbad6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants