mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Update snapshotting library to 1.10.0 (#215)
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, scale: nil),
|
||||
as: .image(precision: 0.98, perceptualPrecision: 0.98, scale: nil),
|
||||
named: identifier.rawValue,
|
||||
testName: testName)
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user