diff --git a/redwood-layout-uiview/RedwoodLayoutUIViewTests/SnapshotTestingCallback.swift b/redwood-layout-uiview/RedwoodLayoutUIViewTests/SnapshotTestingCallback.swift index ebde35122f..41ab23050e 100644 --- a/redwood-layout-uiview/RedwoodLayoutUIViewTests/SnapshotTestingCallback.swift +++ b/redwood-layout-uiview/RedwoodLayoutUIViewTests/SnapshotTestingCallback.swift @@ -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) } } diff --git a/redwood-layout-uiview/RedwoodLayoutUIViewTests/__Snapshots__/UIViewFlexContainerTestHost/testDynamicElementUpdates.ABCDE.png b/redwood-layout-uiview/RedwoodLayoutUIViewTests/__Snapshots__/UIViewFlexContainerTestHost/testDynamicElementUpdates.ABCDE.png new file mode 100644 index 0000000000..3f2ea20b8c --- /dev/null +++ b/redwood-layout-uiview/RedwoodLayoutUIViewTests/__Snapshots__/UIViewFlexContainerTestHost/testDynamicElementUpdates.ABCDE.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6d7d2a342b6c121e44d48e64175f4cc6853f6acdccbea0631969fdb76a917fd2 +size 68997 diff --git a/redwood-layout-uiview/RedwoodLayoutUIViewTests/__Snapshots__/UIViewFlexContainerTestHost/testDynamicElementUpdates.ABDE.png b/redwood-layout-uiview/RedwoodLayoutUIViewTests/__Snapshots__/UIViewFlexContainerTestHost/testDynamicElementUpdates.ABDE.png new file mode 100644 index 0000000000..e97e191375 --- /dev/null +++ b/redwood-layout-uiview/RedwoodLayoutUIViewTests/__Snapshots__/UIViewFlexContainerTestHost/testDynamicElementUpdates.ABDE.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2162a6fccffb3d28208bc0127f25ac225914a8e5d933605df1c6a144d48935f3 +size 68142 diff --git a/redwood-layout-uiview/RedwoodLayoutUIViewTests/__Snapshots__/UIViewFlexContainerTestHost/testDynamicElementUpdates.BCDE.png b/redwood-layout-uiview/RedwoodLayoutUIViewTests/__Snapshots__/UIViewFlexContainerTestHost/testDynamicElementUpdates.BCDE.png new file mode 100644 index 0000000000..98d4e47139 --- /dev/null +++ b/redwood-layout-uiview/RedwoodLayoutUIViewTests/__Snapshots__/UIViewFlexContainerTestHost/testDynamicElementUpdates.BCDE.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5e090f271547a8ee7a8ac8cca2365c0eb987d5b3d1dc2f5a6c010fcca21d1e4 +size 68213