-
Notifications
You must be signed in to change notification settings - Fork 2
test: fix column toggle test for Vaadin 25 #167
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
Conversation
WalkthroughDependency update for testbench-rpc (1.4.0 → 1.5.0) alongside version-aware logic implementation in GridHelperElement to support Vaadin 25. New Version API added to IntegrationView and related interfaces, with copyright year updates throughout. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In @pom.xml:
- Around line 129-133: The pom declares dependency
com.flowingcode.vaadin.test:testbench-rpc with version 1.5.0 which does not
exist on Maven Central and will break the build; update the version to an
existing release (e.g., 1.4.0) or change to the correct private/internal
coordinates if 1.5.0 is intended, by editing the dependency entry for groupId
"com.flowingcode.vaadin.test" and artifactId "testbench-rpc" in the pom to a
resolvable version.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (5)
pom.xmlsrc/test/java/com/flowingcode/vaadin/addons/gridhelpers/it/ColumnToggleIT.javasrc/test/java/com/flowingcode/vaadin/addons/gridhelpers/it/GridHelperElement.javasrc/test/java/com/flowingcode/vaadin/addons/gridhelpers/it/IntegrationView.javasrc/test/java/com/flowingcode/vaadin/addons/gridhelpers/it/IntegrationViewCallables.java
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: build-vaadin24
- GitHub Check: build-vaadin25
🔇 Additional comments (5)
src/test/java/com/flowingcode/vaadin/addons/gridhelpers/it/IntegrationView.java (1)
86-89: LGTM - Version API implementation is clean and correct.The
getVersion()method properly implements the interface contract and provides the runtime version information needed for version-aware test behavior.src/test/java/com/flowingcode/vaadin/addons/gridhelpers/it/IntegrationViewCallables.java (1)
29-30: LGTM - Interface method declaration is well-placed.The
getVersion()method is appropriately added to the RMI callable interface, enabling test code to retrieve the server-side Vaadin version.src/test/java/com/flowingcode/vaadin/addons/gridhelpers/it/GridHelperElement.java (2)
41-55: LGTM - Fluent versioning API with proper state management.The private constructor and
withVersion()method follow a clean immutable pattern for creating versioned instances. The@NonNullannotation onwithVersion()appropriately prevents accidental null versions.
79-96: Good fix - Version-aware query addresses the Vaadin 25 timeout issue.The version-conditional logic correctly switches the element query strategy for Vaadin 25+, where the column toggle uses a
vaadin-menu-barwith agridHelperToggletheme instead of overlay elements. This should resolve thewaitForFirsttimeouts reported in issue #159.Note: When
versionisnull, the code defaults to the pre-25 behavior. This is acceptable sinceColumnToggleIT.setup()always callswithVersion(), but other callers should be aware of this fallback.src/test/java/com/flowingcode/vaadin/addons/gridhelpers/it/ColumnToggleIT.java (1)
44-46: LGTM - Test setup correctly integrates version-aware behavior.The setup now retrieves the Vaadin version from the server and passes it to
GridHelperElement, ensuring the correct DOM query strategy is used based on the runtime environment. This completes the fix for the Vaadin 25 compatibility issue.



Close #159
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.