Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Testing
@MainActor
@Suite(.snapshots(record: .never, diffTool: diffTool))
struct GeometryReaderUITests {
@Test
@Test(.bug("https://github.com/OpenSwiftUIProject/OpenSwiftUI/issues/474"))
func centerView() {
struct ContentView: View {
var body: some View {
Expand All @@ -24,6 +24,15 @@ struct GeometryReaderUITests {
}
}
openSwiftUIAssertSnapshot(of: ContentView())
#if os(iOS)
#if OPENSWIFTUI
withKnownIssue {
openSwiftUIAssertSnapshot(of: ContentView(), as: .image)
}
#else
openSwiftUIAssertSnapshot(of: ContentView(), as: .image)
#endif
#endif
}

@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// InsetViewModifierUITests.swift
// OpenSwiftUIUITests

import Testing

@MainActor
struct InsetViewModifierUITests {
@Test(.bug("https://github.com/OpenSwiftUIProject/OpenSwiftUI/issues/511"))
func safeAreaPaddingWithEdgeInsets() {
struct ContentView: View {
var body: some View {
Color.red
.safeAreaPadding(.init(top: 10, leading: 20, bottom: 30, trailing: 40))
}
}
#if OPENSWIFTUI
withKnownIssue {
openSwiftUIAssertSnapshot(of: ContentView())
}
#else
openSwiftUIAssertSnapshot(of: ContentView())
#endif
}
}
Loading