Tests: the font-menu hover preview test lets the menu settle

Opening the menu on the current family (#9197) paints rows whose font
samples load over a few frames; on CI's font set that takes 6 steps,
past egui_kittest's default of 4. Raise max_steps as other harnesses do.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
David Mann
2026-10-25 22:59:53 +01:00
co-authored by Claude Opus 5.5
parent 4bb367750e
commit a2ab774eb4
+3 -1
View File
@@ -531,7 +531,9 @@ fn options_bar_hover_previews_on_canvas_without_committing() {
}
}
let mut h = Harness::builder().with_size(vec2(900.0, 700.0)).build_eframe(|cc| {
// Opening the menu on the current family (#9197) paints rows that load their font samples
// over a few frames, more than the default four steps.
let mut h = Harness::builder().with_size(vec2(900.0, 700.0)).with_max_steps(64).build_eframe(|cc| {
PhotocraftApp::setup_context(&cc.egui_ctx, crate::theme::ThemeKind::ALL[0]);
PreviewApp { app: PhotocraftApp::new(photocraft_engine::Session::new(), Services::default()) }
});