mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
UI test fixes (#335)
* Remove status bars when running UITests * Remove simulator OS versions from screenshot names, be less lenient with image diffing * Rename UITests splash screen to onboarding * Switch tests to Xcode 14.1, remove version names for used simulators and switched from iPhone 13 Pro Max to iPhone 14 * Fix ServiceLocator and fallbackLaguage for UI tests * Drop snapshot diffing precision to 0.99 as 0.999 triggers false negatives * Fix server selection UI tests after exposing the sliding sync proxy configuration * Update reference screenshots
This commit is contained in:
@@ -43,7 +43,7 @@ extension XCUIApplication {
|
||||
/// - Parameter identifier: Identifier of the UI test screen
|
||||
func assertScreenshot(_ identifier: UITestScreenIdentifier) {
|
||||
let failure = verifySnapshot(matching: screenshot().image,
|
||||
as: .image(precision: 0.98, perceptualPrecision: 0.98, scale: nil),
|
||||
as: .image(precision: 0.99, perceptualPrecision: 0.98, scale: nil),
|
||||
named: identifier.rawValue,
|
||||
testName: testName)
|
||||
|
||||
@@ -55,7 +55,7 @@ extension XCUIApplication {
|
||||
}
|
||||
|
||||
private var testName: String {
|
||||
osVersion + "-" + languageCode + "-" + regionCode + "-" + deviceName
|
||||
languageCode + "-" + regionCode + "-" + deviceName
|
||||
}
|
||||
|
||||
private var deviceName: String {
|
||||
|
||||
Reference in New Issue
Block a user