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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -3253,7 +3253,7 @@
repositoryURL = "https://github.com/pointfreeco/swift-snapshot-testing";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 1.9.0;
minimumVersion = 1.10.0;
};
};
/* End XCRemoteSwiftPackageReference section */

View File

@ -104,8 +104,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-snapshot-testing.git",
"state" : {
"revision" : "f8a9c997c3c1dab4e216a8ec9014e23144cbab37",
"version" : "1.9.0"
"revision" : "f29e2014f6230cf7d5138fc899da51c7f513d467",
"version" : "1.10.0"
}
},
{

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)

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)
}

View File

@ -72,4 +72,4 @@ packages:
majorVersion: 7.15.0
SnapshotTesting:
url: https://github.com/pointfreeco/swift-snapshot-testing
majorVersion: 1.9.0
majorVersion: 1.10.0