Skip to content

Conversation

@aedm
Copy link
Member

@aedm aedm commented Oct 20, 2025

Related

Part of #8948

What

  • Adds automated tests adding entities to a new view
  • Removes check_context_menu_add_entity_to_new_space_view.py from release checklist

@github-actions
Copy link

github-actions bot commented Oct 20, 2025

Web viewer built successfully.

Result Commit Link Manifest
d6d544b https://rerun.io/viewer/pr/11594 +nightly +main

View image diff on kitdiff.

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

@aedm aedm added the exclude from changelog PRs with this won't show up in CHANGELOG.md label Oct 20, 2025
@aedm aedm marked this pull request as ready for review October 21, 2025 09:42
@aedm aedm requested a review from lucasmerlin October 21, 2025 09:42
harness.click_nth_label("3D", 0);
harness.snapshot_app("add_entity_to_view_boxes3d_3");

harness.right_click_nth_label("/", 2);
Copy link
Member

Choose a reason for hiding this comment

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

All this nth_label stuff feels a bit brittle to me.. I imagine it could become really annoying if we change unrelated code somewhere that maybe adds another place where we show the name of the selection and then we'd need to update a lot of random nth_label indexes in the integration tests.

Maybe we could do something like harness.blueprint().click_label("/") via HarnessExt?

I think we could even do this in a way that we can still automatically do harness.run() in the event helpers.

This should also help readability of the tests, as it's more obvious whats being interacted with.

Copy link
Member Author

Choose a reason for hiding this comment

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

I absolutely agree. I started with these when there was little hierarchy in our accessibility node tree, but now it should be fixed: #11628

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

harness.click_nth_label("Text log", 0);
harness.snapshot_app("add_entity_to_view_text_log_3");

// When adding a text log, to a new view, the origin is set to the entity path
Copy link
Member

Choose a reason for hiding this comment

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

Does this mean the Space origin should be text_log?

Maybe you can also add an assert for this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@@ -0,0 +1,275 @@
use egui::accesskit::Role;
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 egui::accesskit::Role;
//! This file is all about…
use egui::accesskit::Role;

Comment on lines +79 to +80
// Adds `count` views to the given container, names them sequentially from an index base.
fn add_views_to_container(
Copy link
Member

Choose a reason for hiding this comment

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

count is what?

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.

4 participants