From a7095086c332baa659d2a8694b0ff7284c3edf0e Mon Sep 17 00:00:00 2001 From: Joey <159029424+Axxxxpirine@users.noreply.github.com> Date: Mon, 19 Oct 2026 13:07:23 +0200 Subject: [PATCH] Breaks menu tests pin the English interface, so they pass on a non-English machine An integration test isn't built with cfg(test), so WordApp follows the system language and the ribbon's "Breaks" button wasn't found on a French Mac. Set the app's language to English like native_print.rs does. Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/tests/breaks_menu.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/tests/breaks_menu.rs b/crates/ui-egui/tests/breaks_menu.rs index db8550279..3640a6a01 100644 --- a/crates/ui-egui/tests/breaks_menu.rs +++ b/crates/ui-egui/tests/breaks_menu.rs @@ -6,7 +6,9 @@ use wordcraft_ui_egui::{Services, WordApp}; /// A WordCraft window on the Layout tab, ready for ribbon clicks. fn layout_tab() -> egui_kittest::Harness<'static, WordApp> { - let app = WordApp::new(Session::new(wordcraft_doc::Document::from_text("one\ntwo")), Services::default()); + let mut app = WordApp::new(Session::new(wordcraft_doc::Document::from_text("one\ntwo")), Services::default()); + // The labels below are English; an integration test otherwise follows the machine's language. + app.ui.language = "en".into(); let mut h = egui_kittest::Harness::builder().with_size(egui::vec2(1440.0, 900.0)).build_ui_state( |ui, app: &mut WordApp| { let ctx = ui.ctx().clone();