mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-12 05:12:39 +00:00
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:
1 parent
4880b917ee
commit
db4f8a4d6d
1 file changed
+3
@@ -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");
|
||||
}
|
||||
Reference in new issue
Block a user