Open brunovianarezende opened 1 year ago
Thank you for letting me know :+1: I'll try to add this test to Karibu itself, hopefully I'll be able to reproduce it on my machine. It's good to know that 1.3.16 worked okay. @brunovianarezende could you please check 1.3.17 whether it's also affected?
Also, which version of vaadin-spring.jar are you using please, and which Vaadin version?
Thank you for letting me know +1 I'll try to add this test to Karibu itself, hopefully I'll be able to reproduce it on my machine. It's good to know that 1.3.16 worked okay. @brunovianarezende could you please check 1.3.17 whether it's also affected?
Yes, 1.3.17 is affected too.
Also, which version of vaadin-spring.jar are you using please, and which Vaadin version?
We use:
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>
vaadin-spring-boot-starter
</artifactId>
<version>${vaadin.version}</version>
</dependency>
where ${vaadin.version}
is equal to 23.1.1, i.e. vaadin-spring is 23.1.1 and vaadin is 23.1.1.
Sorry - I tried to upgrade Spring in Karibu-Testing in hopes to create a reproducible test, but Spring failed with random class incompatibility exceptions. However, let me try to figure out a blind workaround.
The new implementation of retrieveExtendedClientDetails()
seems to interfere with Spring. It was introduced during the fix of #118 . I'll add a flag to turn this functionality off as a workaround.
The flag is called fakeExtendedClientDetails
and it can be turned off starting with Karibu 1.3.20. Please see the documentation for more details. This is just a workaround though - a proper solution still needs to be found.
I'll therefore keep this ticket open. If someone feels brave enough to upgrade Spring in Karibu-Tests and write a test that reproduces this issue, please go ahead and create a PR. I'll merge the PR and proceed to fix the issue properly.
I have a component annotated with @RouteScope and when I try to init the app in the test, I get the error:
it seems to me this error is caused by this commit: https://github.com/mvysny/karibu-testing/commit/7d0435e03717aadf6d4e5bb8c9f26314a409ebca. I tested using version 1.3.16 and it works ok.
This is the code in my test class:
and this is what I have in my POM:
The code that triggers the bug is something like:
and: