lib/assets/SnapshotHelper.swift in snapshot-1.0.3 vs lib/assets/SnapshotHelper.swift in snapshot-1.0.4
- old
+ new
@@ -16,11 +16,11 @@
let path = "/tmp/language.txt"
do {
let locale = try NSString(contentsOfFile: path, encoding: NSUTF8StringEncoding) as String
deviceLanguage = locale
- app.launchArguments = ["-AppleLanguages", "(\(locale))"]
+ app.launchArguments = ["-AppleLanguages", "(\(locale))", "-AppleLocale", "\"\(locale)\"","-ui_testing"]
} catch {
print("Couldn't detect/set language...")
}
}
@@ -45,6 +45,6 @@
while (query.count > 4) {
sleep(1)
print("Number of Elements in Status Bar: \(query.count)... waiting for status bar to disappear")
}
-}
\ No newline at end of file
+}