Repository navigation
Stabilize the Select By Attributes wildcard test - #3228
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
| break; | ||
| } | ||
| } | ||
| h.get_by_role_and_label(Role::Button, value).click(); |
There was a problem hiding this comment.
When the entry never appears, the poll gives up after ten steps and the get_by_role_and_label below panics with a generic "node not found", which does not say which value was missing. Asserting first names it in the failure:
| h.get_by_role_and_label(Role::Button, value).click(); | |
| assert!(h.query_by_role_and_label(Role::Button, value).is_some(), "{value} is not listed under Values"); | |
| h.get_by_role_and_label(Role::Button, value).click(); |
Category: quality
Code reviewReviewed the single changed file, BugsNone found. The poll breaks as soon as the value entry appears, and the test checks both outcomes ( SecurityNone. PerformanceNone. Quality
AGENTS.mdNo breaks found.
Twins checkedThe change touches only one test. I checked the other Prior reviewsNo prior review threads on this PR, so no earlier concerns were left alone. Change sizeCompared with main (merge base e041087 to PR head 94dc5db).
|
📖 Docs previewCommit |
Brings in opengeos#3227, opengeos#3228 and opengeos#3209, merged meanwhile. No conflicts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
The Select By Attributes wildcard test intermittently failed when opening the Values menu. In the Ubuntu failure, a background match count requested more repaints than the harness’s four-frame limit allowed.
The test now steps through each input and clicks the requested menu entry as soon as it appears. If the entry is still missing after ten steps, its lookup fails. The test checks both outcomes of selecting a value after
LIKE: choosing'a_b'preserves the clause and explains the wildcard, while choosing'plain'inserts the value and clears the warning.Testing
cargo xtask cipassed test hygiene, formatting, and workspace Clippy. The workspace suite stopped at the previously observed macOS Select All shortcut assertion inmenu::tests::items_name_commands_that_exist.Focused test command:
cargo test --locked -p rustgis-ui-egui --lib \ dialogs::tests::select_by_attributes_values_list_says_why_a_wildcard_value_is_not_added_after_like \ -- --exactCodex authored the test change and ran the checks above.
UI evidence
No visible UI change.
Related issue
Closes #3207.
Summary by CodeRabbit