Skip to content

PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust

fix(test): reload tests pin the English interface like every other harness (#2239)

abc2cb2f64aac1e6da
diff --git a/crates/ui-egui/tests/reload.rs b/crates/ui-egui/tests/reload.rs
index fb530093f..d9e6b142b 100644
--- a/crates/ui-egui/tests/reload.rs
+++ b/crates/ui-egui/tests/reload.rs
@@ -80,6 +80,8 @@ fn harness(path: &str) -> Harness<'static, PdfCraftApp> {
app.set_option("language", "en").unwrap();
// The labels looked for are English, whatever the machine's language.
app.set_option("language", "en").unwrap();
+ // The labels below are English whatever the developer's system language is.
+ app.set_option("language", "en").unwrap();
app.run_inline = true;
app.open_path(&path);
app