-
Notifications
You must be signed in to change notification settings - Fork 571
Integration tests for origin heuristics #11620
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. |
…t-origin-heuristics
| fn make_test_image() -> re_types::archetypes::Image { | ||
| let image = ndarray::Array3::from_shape_fn((256, 256, 3), |(y, x, c)| match c { | ||
| 0 => x as u8, | ||
| 1 => y as u8, | ||
| 2 => 128, | ||
| _ => unreachable!(), | ||
| }); |
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.
| // Close the selection panel before clicking on the image entity | ||
| // because rendering its download button requires the UI to be on | ||
| // the main thread. We are in a tokio test and it will crash. | ||
| harness.set_selection_panel_opened(false); |
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.
What is this about? Is this related to MainThreadToken? Do we really need to be on main thread to render the button? I would assume we would only need it to process the save-action (i.e. handle clicking it)!
What happens if you remove this line? Does something crash?
| @@ -0,0 +1,246 @@ | |||
| use egui_kittest::kittest::Queryable 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.
Should have a module-level comment explaining roughly what this test is all about

Related
Part of #8948
What
check_context_menu_suggested_origin.pyfrom release checklist