Update UI tests (#730)

* Update snapshots.

* Fix timeline grouping and UI tests.

* Remove German UI tests with double-length pseudolanguage.

Avoids tests breaking when translations are updated.
This commit is contained in:
Doug
2023-03-28 14:06:53 +01:00
committed by GitHub
parent e1df5310b7
commit d7622ea731
230 changed files with 536 additions and 384 deletions
+8 -5
View File
@@ -62,7 +62,7 @@ extension XCUIApplication {
}
private var testName: String {
languageCode + "-" + regionCode + "-" + deviceName
localeCode + "-" + deviceName
}
private var deviceName: String {
@@ -76,6 +76,13 @@ extension XCUIApplication {
return name
}
private var localeCode: String {
if UserDefaults.standard.bool(forKey: "NSDoubleLocalizedStrings") {
return "pseudo"
}
return languageCode + "-" + regionCode
}
private var languageCode: String {
Locale.current.language.languageCode?.identifier ?? ""
@@ -84,10 +91,6 @@ extension XCUIApplication {
private var regionCode: String {
Locale.current.language.region?.identifier ?? ""
}
private var osVersion: String {
UIDevice.current.systemVersion.replacingOccurrences(of: ".", with: "-")
}
}
private extension UIImage {