mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 13:37:11 +00:00
Update snapshotting library to 1.10.0 (#215)
This commit is contained in:
parent
98de77679b
commit
29f61461aa
@ -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 */
|
||||
|
@ -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"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user