menu tests: the ribbon slide reaches rest by the clock, not 120 frames

This commit is contained in:
aiongg
2026-11-24 19:56:29 +00:00
parent 02f2fc0443
commit 1e26d3d4eb
+2 -1
View File
@@ -214,7 +214,8 @@ fn slide(direction: Direction, motion: MotionMode, from: usize, to: usize) -> (f
assert_eq!(shown.get(), to, "the click on the tab showed it");
let title = ["Alpha", "Beta", "Gamma"][to];
let first = group_x(&controls, title);
fixture.idle(120);
// The slide is a tween on the frame clock: two seconds of clock bring it to rest in the frames a settle runs.
fixture.advance(2.0).settle();
let rest = group_x(&controls, title);
(first, rest)
}