-
Notifications
You must be signed in to change notification settings - Fork 565
Test: deselect on escape #11685
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
base: main
Are you sure you want to change the base?
Test: deselect on escape #11685
Conversation
|
Web viewer built successfully.
View image diff on kitdiff. Note: This comment is updated whenever you push a commit. |
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.
"xtemp"?
| harness.blueprint_tree().right_click_label("3D view"); | ||
| harness.snapshot_app("deselect_on_escape_6"); | ||
| harness.key_press(egui::Key::Escape); | ||
| harness.snapshot_app("deselect_on_escape_7"); |
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.
Suggestion" add another snapshot after pressing escape yet again. Whatever is currently selected should become unselected, and the recording itself should become selected (which will be visible in the selection panel).
| harness.snapshot_app("deselect_on_escape_6"); | ||
| harness.key_press(egui::Key::Escape); | ||
| harness.snapshot_app("deselect_on_escape_7"); | ||
| } |
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.
An alternative approach here would be to replace the screenshot tests with actually checking the current selection Item
| @@ -0,0 +1,71 @@ | |||
| use re_integration_test::HarnessExt as _; | |||
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.
| use re_integration_test::HarnessExt as _; | |
| //! Test that pressing the Escape key will back out of dialogs etc. | |
| use re_integration_test::HarnessExt as _; |
Related
Part of #8948
What
check_deselect_on_escape.pyfrom release checklist