swift-snapshot-testing icon indicating copy to clipboard operation
swift-snapshot-testing copied to clipboard

📸 Delightful Swift snapshot testing.

Results 230 swift-snapshot-testing issues
Sort by recently updated
recently updated
newest added

As discussed in https://github.com/pointfreeco/swift-snapshot-testing/issues/434

The previous logic was "If an image has a zero frame, make the comparison image the same as the reference image" This means that tests incorrectly pass if the reference...

In order to present a modal view controller, its parent view controller must already be a member of a window hierarchy. Therefore given that SnapshotTesting prepares its window internally, there's...

Running any assertSnapshot() on Xcode 13 fails giving this error message: 'failed - The File ______.txt could not be opened because you don't have permission to view it.' Has anyone...

**Describe the bug** The following documentation block in `SwiftUIView.swift` does not match the function it describes: ```swift /// A snapshot strategy for comparing SwiftUI Views based on pixel equality. ///...

This change fixes the following case: - `UITextField` (or `UITextView`) is a first responder - snapshot test runs - `UITextField` is no more the first responder The fix is particularly...

I would like to test my view on both, an iPad and iPhone. Let's assume a very simple view: ``` struct SimpleView: View { var body: some View { if...

This PR attempts to solve the problem of introducing unneeded changes in the snapshots for the projects that use "imprecise" matching, by avoiding recording a new version of a snapshot,...

Once the device structs are created (e.g. `.iPhone8`), there is no good way to get a short description of what they are (`iPhone8_Portrait`) by using an extension since so much...

Apple added support for High Efficiency Image File Format (HEIC) since the following OS versions: - iOS 11.0+ - macOS 10.13+ - Mac Catalyst 13.0+ - tvOS 11.0+ - watchOS...