mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
test(i18n): the Preferences preview test checks OK, not the removed Apply button (#17014)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
e2be7f4958
commit
8108ec8a30
1 file changed
+2
-2
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user