Skip to content

Commit f862d9e

Browse files
thymikeeclaude
andcommitted
test(ios): cover Finnish in the system-strings launch confirmation test
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
1 parent cdba0c1 commit f862d9e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/UnitTests/RunnerTests+LaunchConfirmationPromptTests.swift‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ extension RunnerTests {
3737
/// The OS's own SchemeApproval strings supply the wording: a French or Japanese device reads the
3838
/// confirmation, and `accept` picks its open button where the English labels cannot.
3939
func testSystemStringsRecognizeAndAnswerTheLocalizedLaunchConfirmation() {
40-
let languages = ["fr-FR", "ja-JP"]
40+
let languages = ["fr-FR", "ja-JP", "fi-FI"]
4141
let prompt = RunnerLaunchConfirmationPrompt.fromSystemStrings(languages: languages)
4242
let vocabulary = RunnerAlertLabelVocabulary.fromSystemStrings(languages: languages)
4343

@@ -48,6 +48,9 @@ extension RunnerTests {
4848
XCTAssertTrue(prompt.recognizes(title: "“テスト”で開きますか?", buttons: ["キャンセル", "開く"]))
4949
XCTAssertEqual(RunnerAlertButtonChoice.buttonIndex(for: ["キャンセル", "開く"], action: "accept", vocabulary: vocabulary), 1)
5050

51+
XCTAssertTrue(prompt.recognizes(title: "Avataanko Testi-apissa?", buttons: ["Kumoa", "Avaa"]))
52+
XCTAssertEqual(RunnerAlertButtonChoice.buttonIndex(for: ["Kumoa", "Avaa"], action: "accept", vocabulary: vocabulary), 1)
53+
5154
XCTAssertFalse(prompt.recognizes(title: "Öffnen in „Test“?", buttons: ["Abbrechen", "Öffnen"]), "German is not preferred")
5255
}
5356

0 commit comments

Comments
 (0)