-
Notifications
You must be signed in to change notification settings - Fork 522
Add TestView
and write tests for Item::View
in re_selection_panel
#10716
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
Conversation
Web viewer built successfully. If applicable, you should also test it:
Note: This comment is updated whenever you push a commit. |
9cbb674
to
758915b
Compare
@@ -1322,4 +1327,156 @@ mod tests { | |||
harness.run(); | |||
harness.snapshot("selection_panel_component_hybrid_overwrite"); | |||
} | |||
|
|||
#[test] | |||
fn selection_panel_view_snapshot() { |
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 think I would have made those three all call the same parameterized function, but this is fine too I figure; the boilerplate isn't that crazy
not sure what artifact your TODO is referring too |
What
This adds a
TestView
mock tore_viewport_context
that uses the example types fromre_types
where appropriate. For now it does not display anything (and probably never should). Right now it's only used to test write image comparison tests for the selection panel.TODO
Clean up artifact in selection panel UI. Possibly related:merging anyways (see comments)LabelContent
should be able to have the exact same action button and behaviour asPropertyContent
#6203