diff --git a/crates/ui-egui/tests/image_trace_ignore_sampler.rs b/crates/ui-egui/tests/image_trace_ignore_sampler.rs index f9e6bff2ed..91edfb5512 100644 --- a/crates/ui-egui/tests/image_trace_ignore_sampler.rs +++ b/crates/ui-egui/tests/image_trace_ignore_sampler.rs @@ -1155,7 +1155,9 @@ fn review_596866_owned_release_then_press(coalesced: bool) { let history = (app.session.active().unwrap().history.undo.len(), app.session.active().unwrap().history.redo.len()); if coalesced { frame_at(&mut app, &ctx, start + step, vec![review_596866_button(at, false), review_596866_button(at, true)]); - assert!(frame_input(&ctx, |i| i.pointer.primary_released() && i.pointer.primary_pressed() && i.pointer.primary_down())); + // The press's Down comes in a second pass of this frame when another part of the UI asks for a rerun, and in the + // next frame otherwise. The coalesced release and press are read from the frame whose first pass took them. + assert!(frame_event(&ctx, |i| i.pointer.primary_released() && i.pointer.primary_pressed() && i.pointer.primary_down())); } else { review_gesture_release(&mut app, &ctx, at, start + step); assert_eq!(app.session.active().unwrap().selection.objects, Vec::::new(), "CONTROL: the owned Up remains consumed");