Skip to content

Commit

Permalink
update snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mltbnz committed Sep 14, 2024
1 parent 2bc19ad commit af1cb3b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CriticalMaps.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_STRICT_CONCURRENCY = complete;
};
name = Debug;
};
Expand Down Expand Up @@ -661,6 +662,7 @@
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
SWIFT_STRICT_CONCURRENCY = complete;
VALIDATE_PRODUCT = YES;
};
name = Release;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import MapFeature
import SnapshotTesting
import TestHelper
import XCTest

Expand All @@ -12,7 +13,7 @@ final class UserTrackingButtonSnapshotTests: XCTestCase {
)
)

assertViewSnapshot(sut, height: 60, width: 60, sloppy: true)
assertSnapshot(of: sut, as: .image)
}

@MainActor
Expand All @@ -24,7 +25,7 @@ final class UserTrackingButtonSnapshotTests: XCTestCase {
)
)

assertViewSnapshot(sut, height: 60, width: 60, sloppy: true)
assertSnapshot(of: sut, as: .image)
}

@MainActor
Expand All @@ -35,7 +36,6 @@ final class UserTrackingButtonSnapshotTests: XCTestCase {
reducer: { UserTrackingFeature() }
)
)

assertViewSnapshot(sut, height: 60, width: 60, sloppy: true)
assertSnapshot(of: sut, as: .image)
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit af1cb3b

Please sign in to comment.