File tree Expand file tree Collapse file tree 1 file changed +34
-15
lines changed
Example/OpenSwiftUIUITests/Layout/Separator Expand file tree Collapse file tree 1 file changed +34
-15
lines changed Original file line number Diff line number Diff line change @@ -9,43 +9,62 @@ import SnapshotTesting
99@Suite ( . snapshots( record: . never, diffTool: diffTool) )
1010struct DividerUITests {
1111
12- // MARK: - Basic Spacer in HStack
12+ // MARK: - Basic Divider in HVStack
1313
14- @Test ( " TODO: Fix colorScheme issue " )
14+ @Test
1515 func dividerWithColorScheme( ) {
1616 struct ContentView : View {
1717 var body : some View {
1818 HStack {
1919 VStack {
2020 VStack {
21- Color . red
21+ Color . primary
2222 Divider ( )
23- Color . blue
23+ Color . primary
2424 }
25- HStack {
26- Color . red
25+ . dynamicTypeSize ( . large)
26+ . colorScheme ( . light)
27+ VStack {
28+ Color . primary
2729 Divider ( )
28- Color . blue
30+ Color . primary
2931 }
30- } . colorScheme ( . light)
32+ . dynamicTypeSize ( . large)
33+ . colorScheme ( . dark)
34+ }
35+ Divider ( )
36+ . dynamicTypeSize ( . large)
37+ . colorScheme ( . light)
38+ Divider ( )
39+ . dynamicTypeSize ( . accessibility1)
40+ . colorScheme ( . dark)
3141 VStack {
32- HStack {
33- Color . red
42+ VStack {
43+ Color . primary
3444 Divider ( )
35- Color . blue
45+ Color . primary
3646 }
47+ . dynamicTypeSize ( . accessibility1)
48+ . colorScheme ( . light)
3749 VStack {
38- Color . red
50+ Color . primary
3951 Divider ( )
40- Color . blue
52+ Color . primary
4153 }
42- } . colorScheme ( . dark)
54+ . dynamicTypeSize ( . accessibility1)
55+ . colorScheme ( . dark)
56+ }
4357 }
44- . background ( Color . green)
58+ . background ( Color . red)
59+ . frame ( width: 200 , height: 200 )
4560 }
4661 }
62+ #if os(iOS)
63+ openSwiftUIAssertSnapshot ( of: ContentView ( ) )
64+ #else
4765 withKnownIssue ( " Path/Shape is not implemented " ) {
4866 openSwiftUIAssertSnapshot ( of: ContentView ( ) )
4967 }
68+ #endif
5069 }
5170}
You can’t perform that action at this time.
0 commit comments