Skip to content

Conversation

@aedm
Copy link
Member

@aedm aedm commented Oct 28, 2025

Related

Part of #8948

What

  • Adds automated tests for deselecting items
  • Removes check_deselect_on_escape.py from release checklist

@github-actions
Copy link

github-actions bot commented Oct 28, 2025

Web viewer built successfully.

Result Commit Link Manifest
4f2e10c https://rerun.io/viewer/pr/11685 +nightly +main

View image diff on kitdiff.

Note: This comment is updated whenever you push a commit.

@aedm aedm changed the title Aedm/deselect on escape Test: deselect on escape Oct 28, 2025
@aedm aedm added the exclude from changelog PRs with this won't show up in CHANGELOG.md label Oct 28, 2025
@aedm aedm marked this pull request as ready for review October 31, 2025 14:04
@aedm aedm requested a review from emilk October 31, 2025 14:04
Copy link
Member

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");
Copy link
Member

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");
}
Copy link
Member

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 _;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
use re_integration_test::HarnessExt as _;
//! Test that pressing the Escape key will back out of dialogs etc.
use re_integration_test::HarnessExt as _;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exclude from changelog PRs with this won't show up in CHANGELOG.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants