From fb1f5aafbe30a9c17ff73fd1c46c4a8e8d8fba3a Mon Sep 17 00:00:00 2001 From: Ethan Wong Date: Mon, 8 Nov 2021 07:08:43 +0800 Subject: [PATCH] Launch test app in English for UI Tests for prevent local test failure. (#2014) --- UITests/SUTestApplicationTest.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UITests/SUTestApplicationTest.swift b/UITests/SUTestApplicationTest.swift index d0dabb2f..2cb6b085 100644 --- a/UITests/SUTestApplicationTest.swift +++ b/UITests/SUTestApplicationTest.swift @@ -26,6 +26,10 @@ class SUTestApplicationTest: XCTestCase func testRegularUpdate() { let app = XCUIApplication() + app.launchArguments = [ + "-AppleLanguages", + "(en)" + ] app.launch() XCTAssertFalse(app.dialogs["alert"].staticTexts["Update succeeded!"].exists, "Update is already installed; please do a clean build")