Skip to content

Commit

Permalink
Add iOS snapshots for the new test
Browse files Browse the repository at this point in the history
  • Loading branch information
squarejesse committed Nov 17, 2023
1 parent 924ed65 commit 48e213c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ final class SnapshotTestingCallback : UIViewSnapshotCallback {
}

func verifySnapshot(view: UIView, name: String?) {
assertSnapshot(of: view, as: .image, named: name, file: fileName, testName: testName)
// Set `record` to true to generate new snapshots. Be sure to revert that before committing!
// Note that tests always fail when `record` is true.
assertSnapshot(of: view, as: .image, named: name, record: false, file: fileName, testName: testName)
}
}
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 48e213c

Please sign in to comment.