Repository navigation
test(ui): scroll the Script results under the run's line - #832
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Scroll-position assertions crates/ui-egui/src/scriptcolor.rs |
The test checks the run-status line’s position relative to the first result. It then verifies that scrolling moves the first result while the run-status line’s rectangle stays unchanged. |
Priority:
Estimated code review effort: 2 (Simple) | ~5 minutes
Change: Other
Possibly related PRs
- opengeos/RustGIS#783: Adds the run-status line and the initial assertion in this test.
- opengeos/RustGIS#820: Changes another test that PR
#832reports as its remaining CI failure.
Suggested reviewers: giswqs
Merge Risk: 
Minimal · up to c83fd
-
No actionable merge-blocking risk was identified in this test-only change.
Pre-merge checks: 
5
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
A rabbit watches results glide,
The status line stays fixed beside.
A gentle scroll sends rows away,
While status holds its place all day.
The test confirms the view is right,
Then hops along into the night.
Comment @coderabbitai help to get the list of available commands.
Code reviewI found nothing worth raising in this PR. It only changes the test
Change sizeCompared against: the whole PR against main (merge base d908c53 to PR head c83fd5c).
|
📖 Docs preview
GitHub Pages takes a minute or two to publish a new commit. Newer commits from the fork aren't published until a maintainer adds the |
Code reviewThis PR is test-only. It extends the existing Script-pane layout test in I did not build or run it. I checked the diff and the surrounding repository code. BugsNone found.
Quality
Security, PerformanceNothing to flag. AGENTS.md
Change sizeCompared: the whole PR against main (merge base d908c53 to PR head c83fd5c)
|
Summary
long_results_stay_in_viewsays the line above a Script run's results (the run and how long it took) stays in view, but it only checked that the line sits above them. It now scrolls the results with the mouse wheel and checks that they move while the run's line stays where it was: the line is drawn outside the results' scroll area (analysispane.rs), so a change that moves it inside would now fail the test.Test only; no change to the app.
Testing
cargo xtask cipasses excepta_curved_labels_halos_go_under_all_its_letters(render), which fails on macOS on main too and is being fixed in test: fix main CI on macOS and Windows (thin-font halo test, sign-in cancel race) #820; the rest of the tests pass with--skipon it.scriptcolor.rs›long_results_stay_in_view: a wheel scroll over the first result, eased over 60 steps; the first result moves up, the "Run Add RustGIS: pure-Rust desktop GIS with a ribbon UI #1" line keeps its rect.Related issue
Follow-up to #773 / #783 (the Script pane's run line and results).
Summary by CodeRabbit