Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PiT 24.2: selenium 4.11.0 breaks @SpringBootTest with BrowserTestBase #1664

Closed
Tracked by #4289
manolo opened this issue Aug 14, 2023 · 0 comments · Fixed by #1665
Closed
Tracked by #4289

PiT 24.2: selenium 4.11.0 breaks @SpringBootTest with BrowserTestBase #1664

manolo opened this issue Aug 14, 2023 · 0 comments · Fixed by #1665

Comments

@manolo
Copy link
Member

manolo commented Aug 14, 2023

Description of the bug

If you have a @SpringBootTest in your app and update to platform 24.2-SNAPSHOT or testbench 9.0-SNAPSHOT it fails because some class is missed

[ERROR] com.example.application.it.LoginE2ETest.loginAsInvalidUserFails  Time elapsed: 0.945 s  <<< ERROR!
java.lang.NoClassDefFoundError: org/openqa/selenium/manager/SeleniumManagerOutput$Result
	at org.openqa.selenium.remote.service.DriverFinder.getPath(DriverFinder.java:18)
	at org.openqa.selenium.remote.service.DriverFinder.getPath(DriverFinder.java:13)
...
Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.manager.SeleniumManagerOutput$Result
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)

Example test class with this problem is in the flow-crm-tutorial

Culprit commit seems: #1656

Expected behavior

test passes

Minimal reproducible example

## clone the project
git clone https://github.com/vaadin/flow-crm-tutorial.git
cd flow-crm-tutorial
## change version to 24.2-SNAPSHOT
perl -0777 -pi -e 's|(<vaadin.version>)([^\s]+)(</vaadin.version>)|${1}24.2-SNAPSHOT${3}|g' pom.xml
## run the tests
./mvnw clean test

See the error

Versions

  • Vaadin / Flow version: 24.2-SNAPSHOT
  • TB version: 9.0-SNAPSHOT
@manolo manolo transferred this issue from vaadin/flow Aug 14, 2023
@manolo manolo mentioned this issue Aug 14, 2023
58 tasks
@manolo manolo changed the title PiT 24.2: selenium 4.11.0 breaks @SpringBootTest PiT 24.2: selenium 4.11.0 breaks @SpringBootTest with BrowserTestBase Aug 14, 2023
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 a pull request may close this issue.

1 participant