-
Notifications
You must be signed in to change notification settings - Fork 2
test: fix grid-min-height in integration test #166
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
WalkthroughWhen the EMPTY parameter is present, the view now sets the grid element's minimum-height CSS style to "0" in the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 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
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
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
@src/test/java/com/flowingcode/vaadin/addons/gridhelpers/it/HeightByRowsITView.java:
- Around line 75-77: The test uses the undocumented internal CSS variable
"--_grid-min-height" via grid.getElement().getStyle().set(...); replace that
with a documented Vaadin approach: use grid.setAllRowsVisible(true) when you
want the grid to size to its content for the non-scrolling case, or set a
documented Lumo sizing token (e.g., set the element style max-height using
"var(--lumo-size-m)" with calc() or a fixed max-height) for controlled sizing;
update the empty-grid branch of the test to assert the behavior of the chosen
documented approach (e.g., call grid.setAllRowsVisible(true) and verify height
for empty grid or set max-height using calc(0 * var(--lumo-size-m)) and assert
the CSS max-height), and remove any usage of "--_grid-min-height".
src/test/java/com/flowingcode/vaadin/addons/gridhelpers/it/HeightByRowsITView.java
Show resolved
Hide resolved
|



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