From 8108ec8a30ea149148cad6297f7afeec6d43cc47 Mon Sep 17 00:00:00 2001 From: David Mann Date: Thu, 26 Nov 2026 02:47:17 +0100 Subject: [PATCH] test(i18n): the Preferences preview test checks OK, not the removed Apply button (#17014) Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/i18n/live_tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/i18n/live_tests.rs b/crates/ui-egui/src/i18n/live_tests.rs index fe1de5c459..c3048a340e 100644 --- a/crates/ui-egui/src/i18n/live_tests.rs +++ b/crates/ui-egui/src/i18n/live_tests.rs @@ -297,7 +297,7 @@ fn a_control_request_changes_the_drawing_language_in_the_same_frame() { }); } -/// The draft language previews inside the Preferences window only; Apply commits it. +/// The draft language previews inside the Preferences window only; OK commits it. #[test] fn preferences_preview_does_not_commit_until_applied_and_survives_reload() { if !needs_catalogs() { @@ -313,7 +313,7 @@ fn preferences_preview_does_not_commit_until_applied_and_survives_reload() { let fr = lang("fr"); assert!(text.iter().any(|text| text == tr(fr, "Appearance")), "the draft language must translate the visible window"); assert!(text.iter().any(|text| text == tr(fr, "Cancel")), "the window buttons must preview the language too"); - assert!(text.iter().any(|text| text == tr(fr, "Apply")), "Apply must use the draft language without committing it"); + assert!(text.iter().any(|text| text == tr(fr, "OK")), "OK must use the draft language without committing it"); assert!(text.iter().any(|text| text == "File"), "the main window keeps its committed language"); assert_eq!(h.state().session.prefs().interface.language, "auto"); assert_eq!(current(), Lang::EN, "preview must not leak to the main window");