From c5239ca4d65360e4fe32f053115ab12f95baf26b Mon Sep 17 00:00:00 2001 From: rmsff <17902130+rmsff@users.noreply.github.com> Date: Mon, 9 Nov 2026 13:59:48 +0300 Subject: [PATCH] test(ui): Fit Screen after Fill Screen leaves only the fit pending (#12026) --- crates/ui-egui/src/panels/options_bar/hand_tooltips_tests.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/ui-egui/src/panels/options_bar/hand_tooltips_tests.rs b/crates/ui-egui/src/panels/options_bar/hand_tooltips_tests.rs index 127a5e91364..2b45db756ea 100644 --- a/crates/ui-egui/src/panels/options_bar/hand_tooltips_tests.rs +++ b/crates/ui-egui/src/panels/options_bar/hand_tooltips_tests.rs @@ -62,6 +62,10 @@ fn the_buttons_still_zoom_fit_and_fill() { h.run_steps(2); let v = &h.state().ui.views[0]; assert!(v.fill_pending && !v.fit_pending); + h.get_by_label("Fit Screen").click(); + h.run_steps(2); + let v = &h.state().ui.views[0]; + assert!(v.fit_pending && !v.fill_pending, "Fit after Fill"); h.get_by_label("100%").click(); h.run_steps(2); let v = &h.state().ui.views[0];