mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +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";
|
repositoryURL = "https://github.com/pointfreeco/swift-snapshot-testing";
|
||||||
requirement = {
|
requirement = {
|
||||||
kind = upToNextMajorVersion;
|
kind = upToNextMajorVersion;
|
||||||
minimumVersion = 1.9.0;
|
minimumVersion = 1.10.0;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
/* End XCRemoteSwiftPackageReference section */
|
/* End XCRemoteSwiftPackageReference section */
|
||||||
|
@ -104,8 +104,8 @@
|
|||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/pointfreeco/swift-snapshot-testing.git",
|
"location" : "https://github.com/pointfreeco/swift-snapshot-testing.git",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "f8a9c997c3c1dab4e216a8ec9014e23144cbab37",
|
"revision" : "f29e2014f6230cf7d5138fc899da51c7f513d467",
|
||||||
"version" : "1.9.0"
|
"version" : "1.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -43,7 +43,7 @@ extension XCUIApplication {
|
|||||||
/// - Parameter identifier: Identifier of the UI test screen
|
/// - Parameter identifier: Identifier of the UI test screen
|
||||||
func assertScreenshot(_ identifier: UITestScreenIdentifier) {
|
func assertScreenshot(_ identifier: UITestScreenIdentifier) {
|
||||||
let failure = verifySnapshot(matching: screenshot().image,
|
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,
|
named: identifier.rawValue,
|
||||||
testName: testName)
|
testName: testName)
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ class RoomScreenUITests: XCTestCase {
|
|||||||
app.goToScreenWithIdentifier(.roomEncryptedWithAvatar)
|
app.goToScreenWithIdentifier(.roomEncryptedWithAvatar)
|
||||||
|
|
||||||
XCTAssert(app.staticTexts["roomNameLabel"].exists)
|
XCTAssert(app.staticTexts["roomNameLabel"].exists)
|
||||||
XCTAssert(app.images["roomAvatarImage"].exists)
|
XCTAssert(app.images["roomAvatarImage"].waitForExistence(timeout: 1))
|
||||||
|
|
||||||
app.assertScreenshot(.roomEncryptedWithAvatar)
|
app.assertScreenshot(.roomEncryptedWithAvatar)
|
||||||
}
|
}
|
||||||
|
@ -72,4 +72,4 @@ packages:
|
|||||||
majorVersion: 7.15.0
|
majorVersion: 7.15.0
|
||||||
SnapshotTesting:
|
SnapshotTesting:
|
||||||
url: https://github.com/pointfreeco/swift-snapshot-testing
|
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