Skip to content

Commit 717e64b

Browse files
committed
fix: Update snapshots and bump dependencies
1 parent b76afc2 commit 717e64b

File tree

7 files changed

+41
-18
lines changed

7 files changed

+41
-18
lines changed

Package.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ let package = Package(
1212
targets: ["ResponsiveTextField"]),
1313
],
1414
dependencies: [
15-
.package(name: "SnapshotTesting", url: "https://github.com/pointfreeco/swift-snapshot-testing.git", from: "1.8.1"),
16-
.package(name: "combine-schedulers", url: "https://github.com/pointfreeco/combine-schedulers.git", from: "0.5.3")
15+
.package(name: "SnapshotTesting", url: "https://github.com/pointfreeco/swift-snapshot-testing.git", from: "1.17.2"),
16+
.package(name: "combine-schedulers", url: "https://github.com/pointfreeco/combine-schedulers.git", from: "1.0.1")
1717
],
1818
targets: [
1919
.target(

ResponsiveTextField.xcworkspace/xcshareddata/swiftpm/Package.resolved

+27-9
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,44 @@
66
"repositoryURL": "https://github.com/pointfreeco/combine-schedulers.git",
77
"state": {
88
"branch": null,
9-
"revision": "4cf088c29a20f52be0f2ca54992b492c54e0076b",
10-
"version": "0.5.3"
9+
"revision": "487a4d151e795a5e076a7e7aedcd13c2ebff6c31",
10+
"version": "1.0.1"
1111
}
1212
},
1313
{
14-
"package": "SnapshotTesting",
14+
"package": "swift-concurrency-extras",
15+
"repositoryURL": "https://github.com/pointfreeco/swift-concurrency-extras",
16+
"state": {
17+
"branch": null,
18+
"revision": "bb5059bde9022d69ac516803f4f227d8ac967f71",
19+
"version": "1.1.0"
20+
}
21+
},
22+
{
23+
"package": "swift-issue-reporting",
24+
"repositoryURL": "https://github.com/pointfreeco/swift-issue-reporting",
25+
"state": {
26+
"branch": null,
27+
"revision": "926f43898706eaa127db79ac42138e1ad7e85a3f",
28+
"version": "1.2.0"
29+
}
30+
},
31+
{
32+
"package": "swift-snapshot-testing",
1533
"repositoryURL": "https://github.com/pointfreeco/swift-snapshot-testing.git",
1634
"state": {
1735
"branch": null,
18-
"revision": "c466812aa2e22898f27557e2e780d3aad7a27203",
19-
"version": "1.8.2"
36+
"revision": "c097f955b4e724690f0fc8ffb7a6d4b881c9c4e3",
37+
"version": "1.17.2"
2038
}
2139
},
2240
{
23-
"package": "xctest-dynamic-overlay",
24-
"repositoryURL": "https://github.com/pointfreeco/xctest-dynamic-overlay",
41+
"package": "swift-syntax",
42+
"repositoryURL": "https://github.com/swiftlang/swift-syntax",
2543
"state": {
2644
"branch": null,
27-
"revision": "50a70a9d3583fe228ce672e8923010c8df2deddd",
28-
"version": "0.2.1"
45+
"revision": "4c6cc0a3b9e8f14b3ae2307c5ccae4de6167ac2c",
46+
"version": "600.0.0-prerelease-2024-06-12"
2947
}
3048
}
3149
]

Tests/ResponsiveTextFieldTests/ResponsiveTextFieldTests.swift

+12-7
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,15 @@ extension Snapshotting where Value: View, Format == UIImage {
1010
}
1111

1212
final class ResponsiveTextFieldTests: XCTestCase {
13+
override func invokeTest() {
14+
withSnapshotTesting(record: .never) {
15+
super.invokeTest()
16+
}
17+
}
18+
1319
func testEmptyTextField() {
1420
assertSnapshot(
15-
matching: ResponsiveTextField(
21+
of: ResponsiveTextField(
1622
placeholder: "Placeholder Text",
1723
text: .constant(""),
1824
isSecure: false,
@@ -25,7 +31,7 @@ final class ResponsiveTextFieldTests: XCTestCase {
2531

2632
func testTextFieldWithText() {
2733
assertSnapshot(
28-
matching: ResponsiveTextField(
34+
of: ResponsiveTextField(
2935
placeholder: "Placeholder Text",
3036
text: .constant("Textfield with some text"),
3137
isSecure: false,
@@ -38,7 +44,7 @@ final class ResponsiveTextFieldTests: XCTestCase {
3844

3945
func testSecureTextEntry() {
4046
assertSnapshot(
41-
matching: ResponsiveTextField(
47+
of: ResponsiveTextField(
4248
placeholder: "Placeholder Text",
4349
text: .constant("ssh this is top secret"),
4450
isSecure: true,
@@ -50,9 +56,8 @@ final class ResponsiveTextFieldTests: XCTestCase {
5056
}
5157

5258
func testTextFieldCustomTextStyle() {
53-
XCTExpectFailure("Needs re-recording for iOS 15")
5459
assertSnapshot(
55-
matching: ResponsiveTextField(
60+
of: ResponsiveTextField(
5661
placeholder: "Placeholder Text",
5762
text: .constant("Textfield with some text"),
5863
isSecure: false,
@@ -68,7 +73,7 @@ final class ResponsiveTextFieldTests: XCTestCase {
6873

6974
func testTextFieldCustomTextAlignment() {
7075
assertSnapshot(
71-
matching: ResponsiveTextField(
76+
of: ResponsiveTextField(
7277
placeholder: "Placeholder Text",
7378
text: .constant("Textfield with some text"),
7479
isSecure: false,
@@ -81,7 +86,7 @@ final class ResponsiveTextFieldTests: XCTestCase {
8186
named: "Center"
8287
)
8388
assertSnapshot(
84-
matching: ResponsiveTextField(
89+
of: ResponsiveTextField(
8590
placeholder: "Placeholder Text",
8691
text: .constant("Textfield with some text"),
8792
isSecure: false,
Loading

0 commit comments

Comments
 (0)