swift-snapshot-testing
swift-snapshot-testing copied to clipboard
📸 Delightful Swift snapshot testing.
There is a global variable [UITraitCollection.current](https://developer.apple.com/documentation/uikit/uitraitcollection/current) that allows you to override the current `traitCollection` globally, at the stage of rendering the component. It would be nice to add an override...
**Describe the bug** It appears we're currently stuck between a rock and a hard place when snapshotting a `WKWebView` on macOS. When using Swift-Testing, in swift 5 mode, we get...
**Describe the bug** We observed two related issues with filename generation when using verifySnapshot (via a helper function) within @MainActor async test functions: Unexpected .1 Suffix: When not providing an...
Snapshot Testing has been around for awhile, and its XCTest support has relied on main thread requirements XCTest has under the hood. The workaround for async tests has been to...
**Describe the bug** In the app I'm working on, I've created a test where I want to assert that for a particular view, the bottom navigation bar is in fact...
Hello This is a general query to confirm the official Swift-Snapshot-Testing SDK version that's compatible with Xcode 16/iOS18 Current version we are using: 1.8.2
This PR is intended to fix a couple of issues with snapshotting `WKWebView`: #805 and #857. ## Timeout error (#805) The current logic stops observing `wkWebView`'s `isLoading` property as soon...
I'm aware of the intention of the publicly available `verifySnapshot` method that exposes this parameter, but as consumers of the library we tend to use `assertSnapshot` instead. `assertSnapshot` implementation has...
Hey folks, first of all, thanks for all your contributions and effort! Here's a tiny addition. As wrapping `verifySnapshot` into another `withSnapshotTesting` does not make much sense I added a...
**Describe the bug** When taking an image snapshot of a SwiftUI View that uses a preference to affect it's size, the resulting image will: - be sized without the preference...