mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user