mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-26 11:27:10 -06:00
Merge PR #3098: Breaks menu tests pin the English interface, so they pass on a non-English machine
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user