Repository navigation
Stabilize the Select By Attributes typed-field test - #3209
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
For the linked-issue check, the test steps the harness and checks the menu after each step: for _ in 0..10 {
h.step();
if h.query_by_role_and_label(Role::Button, "'Asia'").is_some() {
break;
}
}
h.get_by_role_and_label(Role::Button, "'Asia'").click();The loop exits as soon as the option appears. If it never appears, the required lookup fails on the next line. The test then checks the exact expression after the click. Test at the reviewed commit On |
📖 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 test could fail after opening Values because the background match count requested more repaints than the harness allowed. The Ubuntu run for #3193 took six frames to settle against a limit of four.
The test now steps through the typing and click events and gives the Values menu up to ten steps to expose the
'Asia'button. It clicks that button and checks the exact expression,continent = 'Asia'(including the trailing space). Only this test changes.Testing
cargo test --locked -p rustgis-ui-egui --lib dialogs::tests::select_by_attributes_values_list_follows_the_field_typed -- --exact. The same test binary passed 100 consecutive reruns.cargo xtask cipassed formatting and workspace Clippy, then stopped atmenu::tests::items_name_commands_that_existon macOS. The Select All shortcut assertion also failed when run on the untouched base commit,3ae52348.Codex authored the test change and ran the checks above.
UI evidence
No visible UI change.
Related issue
Closes #3193.
Summary by CodeRabbit