Skip to content

Commit 4ffd48f

Browse files
committed
add test for inverted colors identifier
1 parent 02a9e48 commit 4ffd48f

9 files changed

+12
-0
lines changed

Example/SnapshotTests/InvertColorsTests.swift

+12
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,19 @@ final class InvertColorsTests: SnapshotTestCase {
2525
let viewController = InvertColorsViewController()
2626
viewController.view.frame = UIScreen.main.bounds
2727

28+
FBSnapshotVerifyView(viewController.view, identifier: "disabled")
29+
2830
SnapshotVerifyWithInvertedColors(viewController.view)
31+
32+
// Run the plain snapshot a second time to ensure that the view was restored to its original state.
33+
FBSnapshotVerifyView(viewController.view, identifier: "disabled")
34+
}
35+
36+
func testInvertColorsWithIdentifier() {
37+
let viewController = InvertColorsViewController()
38+
viewController.view.frame = UIScreen.main.bounds
39+
40+
SnapshotVerifyWithInvertedColors(viewController.view, identifier: "someIdentifier")
2941
}
3042

3143
}
Loading
Loading

0 commit comments

Comments
 (0)