Prefire
Prefire copied to clipboard
🔥 A library based on Xcode Preview, for easy generation: Playbook view, Snapshot and Accessibility tests. SwiftUI and UIKit supported!
## Context 🕵️♀️ Just updated from 1.5.0 to 2.3.0. I use playbook and tests plugins for my target. Configuration file uses `- preview_default_enabled: false` to manually choose previews for snapshots...
## Context 🕵️♀️ While attempting to capture a view that includes AsyncImage or revealing a component after a specified duration, it's been noticed that the resulting snapshot doesn't include images...
In our case we have our `PreviewProvider`'s wrapped in compiler directives. This is due to `MediaMock` being also wrapped in compiler directives and so forth. ```swift #if DEBUG import SwiftUI...
## Context 🕵️♀️ I would like to custom the snapshot image file name with custom prefix. e.g. with Swift snapshot testing, I can change the file name like `test_snapshots.EU-staging-pt_PT` ##...
I've got Prefire up & running in a package on my own machine. I'm trying to get the tests running on Xcode Cloud but it seems like the snapshots tests...
## Context 🕵️♀️ As per Apple's documentation - https://developer.apple.com/documentation/xcode/previewing-your-apps-interface-in-xcode `#Preview` supports other forms of views such as UIViewController, NSView, UIView. Right now, unless you exclude those the generated tests from...
## Context 🕵️♀️ Most of our previews look fine in preview without any additional attributes: ```swift #Preview { ShowMetaStack( showModel: ShowModel.featureMockData, nowNextModel: .success(.init()), actionsRowModel: .withReminderMockData, playButtonAction: { }, actions: .init(...
### Short description 📝 When using `#Preview` macro to generate snapshot tests in combination with test configuration with multiple `snapshot_devices`: ```yaml test_configuration: - target: ShowPage - simulator_device: "iPhone15,4" - required_os:...
## Context 🕵️♀️ Specifying module like this `struct FooPreviews: ModuleA.PrefierProvider { ... }` ## What 🌱 I guess such specification (that can take place in multimodular projects) shouldn't affect snapshot...
## Context 🕵️♀️ I have some components that explicitly check against the current device using `UIDevice.current.userInterfaceIdiom` (I known this might not be a best practice and we are on the...