fastlane/lib/fastlane/actions/docs/capture_ios_screenshots.md in fastlane-2.120.0.beta.20190330200100 vs fastlane/lib/fastlane/actions/docs/capture_ios_screenshots.md in fastlane-2.120.0.beta.20190331200023
- old
+ new
@@ -334,5 +334,30 @@
- A restart helps very often
## Determine language
To detect the currently used localization in your tests, access the `deviceLanguage` variable from `SnapshotHelper.swift`.
+
+## Speed up snapshots
+
+A lot of time in UI tests is spent waiting for animations.
+
+You can disable `UIView` animations in your app to make the tests faster:
+
+```swift
+if ProcessInfo().arguments.contains("SKIP_ANIMATIONS") {
+ UIView.setAnimationsEnabled(false)
+}
+```
+
+This requires you to pass the launch argument like so:
+
+```ruby
+snapshot(launch_arguments: ["SKIP_ANIMATIONS"])
+```
+
+By default, _snapshot_ will wait for a short time for the animations to finish.
+If you're skipping the animations, this is wait time is unnecessary and can be skipped:
+
+```swift
+setupSnapshot(app, waitForAnimations: false)
+```