Skip to content

test: allow JUnit 6 browser ITs to run on a downloaded Chrome - #27589

Closed
mshabarov wants to merge 1 commit into
mainfrom
ci/devloop-hub
Closed

mshabarov wants to merge 1 commit into
mainfrom
ci/devloop-hub

Conversation

@mshabarov

Copy link
Copy Markdown
Contributor

Follow-up to #27547

build failure · flow-tests · the nightly dev loop build on bender.vaadin.com

The first nightly dev loop builds on bender failed in every browser IT: the agents run Chrome 115, which Vaadin no longer supports, so the page showed "your browser is not supported" and each test timed out after two minutes. A new system property lets a build ask for a current Chrome, which Selenium Manager downloads.

Risks:

  • ✅ No product code, API or behaviour change; without the property the tests use the installed Chrome as before, so GitHub Actions runs are unchanged.

Context. The JUnit 6 base class always starts a local Chrome and ignores the Selenium hub that the JUnit 4 tests use on bender. Moving these tests to the hub would not work either: Flow only lets dev tools connect from localhost, and the dev loop browser ITs depend on dev tools for the live updates they check.

  • Added the test.chrome.version system property to AbstractBrowserIT in flow-test-util-junit6; when set, it is passed as the browser version to ChromeOptions, so Selenium Manager downloads that Chrome for Testing and its driver
  • Documented in the dev loop README that the nightly build passes -Dtest.chrome.version=stable

Bender agents have Chrome 115, which Vaadin no longer supports, so the browser ITs of the nightly dev loop build saw the unsupported browser page. Setting test.chrome.version makes Selenium Manager download that Chrome for Testing.
@mshabarov

Copy link
Copy Markdown
Contributor Author

Type of change

  • Tests
What the nightly build showed
  • Builds 994813 (main), 994814 (25.4) and 994815 (25.3): 6 failed, all browser ITs (DevLoopBrowserIT ×5, DevLoopSpringStatisticsIT), each a 120 s TimeoutException waiting for the view.
  • Capabilities in the failure: browserVersion: 115.0.5790.170; the error screenshot shows the Vaadin "I'm sorry, but your browser is not supported" page.
  • The build stopped after the Spring fixture, so Jetty and the six servers were skipped; -fae is now set on the bender build so each fixture runs.
  • The bender builds already pass -Dtest.chrome.version=stable; until this is merged the property is ignored.

Checked locally with Selenium 4.51: setBrowserVersion("150") downloaded Chrome for Testing 150 and its driver and started it; stable uses the installed Chrome when it already is the stable version.

@Artur-

Artur- commented Dec 1, 2026

Copy link
Copy Markdown
Member

You are suggesting every build should download Chrome?

@github-actions github-actions Bot added the +0.0.1 label Dec 1, 2026
@sonarqubecloud

sonarqubecloud Bot commented Dec 1, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Test Results

 1 654 files  ±0   1 745 suites  ±0   1h 44m 14s ⏱️ - 1m 23s
14 022 tests ±0  13 950 ✅ ±0  72 💤 ±0  0 ❌ ±0 
14 448 runs  ±0  14 376 ✅ ±0  72 💤 ±0  0 ❌ ±0 

Results for commit 5aeb6b4. ± Comparison against base commit b7a737d.

@mshabarov

Copy link
Copy Markdown
Contributor Author

Closing in favour of #27590: the JUnit 6 browser ITs use the Selenium hub on bender, as the JUnit 4 tests do, instead of downloading a Chrome onto each agent.

@mshabarov mshabarov closed this Dec 1, 2026
@mshabarov
mshabarov deleted the ci/devloop-hub branch December 1, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants