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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 27 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tests/ResponsiveTextFieldTests/ResponsiveTextFieldTests.swift

Lines changed: 12 additions & 7 deletions
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)