Skip to content

Commit 346a44e

Browse files
committed
Adds draw in hirarchy for accessibility snapshot
1 parent 196c32b commit 346a44e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/TestingExtensions/SnapshotTestBase.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ open class SnapshotTestBase: XCTestCase {
114114
let vc = UIHostingController(rootView: view)
115115
assertSnapshot(
116116
of: vc,
117-
as: .accessibilityImage(showActivationPoints: .always),
117+
as: .accessibilityImage(showActivationPoints: .always, drawHierarchyInKeyWindow: true),
118118
file: file,
119119
testName: "\(testName)-\(config.name)-accessibility",
120120
line: line

0 commit comments

Comments
 (0)