Update snapshotting library to 1.10.0 (#215)

This commit is contained in:
ismailgulek
2022-09-28 10:25:59 +03:00
committed by GitHub
parent 98de77679b
commit 29f61461aa
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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, scale: nil),
as: .image(precision: 0.98, perceptualPrecision: 0.98, scale: nil),
named: identifier.rawValue,
testName: testName)
+1 -1
View File
@@ -34,7 +34,7 @@ class RoomScreenUITests: XCTestCase {
app.goToScreenWithIdentifier(.roomEncryptedWithAvatar)
XCTAssert(app.staticTexts["roomNameLabel"].exists)
XCTAssert(app.images["roomAvatarImage"].exists)
XCTAssert(app.images["roomAvatarImage"].waitForExistence(timeout: 1))
app.assertScreenshot(.roomEncryptedWithAvatar)
}