Toolbar: assert Alt-click wrap-around in the flyout cycle test.

CodeRabbit nitpick: after the last group tool, the next Alt-click must return to the first and keep the flyout closed.
This commit is contained in:
tareq committed 2026-10-30 13:21:01 +01:00
1 parent 4880b917ee
commit db4f8a4d6d
1 file changed
+3
+3
View File
@@ -406,4 +406,7 @@ fn alt_click_cycles_the_tool_flyout_group() {
assert!(h.state().app.ui.flyout.is_none(), "Alt-click must not open the flyout");
click(&mut h, alt);
assert_eq!(h.state().app.session.tool_id(), "polygonFrame");
click(&mut h, alt);
assert_eq!(h.state().app.session.tool_id(), "rectangleFrame", "Alt-click after the last group tool wraps to the first");
assert!(h.state().app.ui.flyout.is_none(), "wrap-around Alt-click must not open the flyout");
}