-
Notifications
You must be signed in to change notification settings - Fork 565
Test adding entities to new view #11594
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?
Conversation
|
Web viewer built successfully.
View image diff on kitdiff. Note: This comment is updated whenever you push a commit. |
| harness.click_nth_label("3D", 0); | ||
| harness.snapshot_app("add_entity_to_view_boxes3d_3"); | ||
|
|
||
| harness.right_click_nth_label("/", 2); |
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.
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.
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.
I absolutely agree. I started with these when there was little hierarchy in our accessibility node tree, but now it should be fixed: #11628
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.
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 |
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.
Does this mean the Space origin should be text_log?
Maybe you can also add an assert for this?
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.
Done.
| @@ -0,0 +1,275 @@ | |||
| use egui::accesskit::Role; | |||
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 egui::accesskit::Role; | |
| //! This file is all about… | |
| use egui::accesskit::Role; |
| // Adds `count` views to the given container, names them sequentially from an index base. | ||
| fn add_views_to_container( |
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.
count is what?
Related
Part of #8948
What
check_context_menu_add_entity_to_new_space_view.pyfrom release checklist