@@ -24,43 +24,50 @@ final class ElementOrderTests: SnapshotTestCase {
2424 func testScatter( ) {
2525 let elementOrderViewController = ElementOrderViewController ( configurations: . scatter)
2626 elementOrderViewController. view. frame = UIScreen . main. bounds
27- SnapshotVerifyAccessibility ( elementOrderViewController. view, snapshotConfiguration: . init( showElementOrderMarkers: true ) )
27+ let configuration = AccessibilitySnapshotConfiguration ( viewRenderingMode: viewRenderingMode, includesElementOrder: . always)
28+ SnapshotVerifyAccessibility ( elementOrderViewController. view, snapshotConfiguration: configuration)
2829 }
2930
3031 func testGrid( ) {
3132 let elementOrderViewController = ElementOrderViewController ( configurations: . grid)
3233 elementOrderViewController. view. frame = UIScreen . main. bounds
33- SnapshotVerifyAccessibility ( elementOrderViewController. view, snapshotConfiguration: . init( showElementOrderMarkers: true ) )
34+ let configuration = AccessibilitySnapshotConfiguration ( viewRenderingMode: viewRenderingMode, includesElementOrder: . always)
35+ SnapshotVerifyAccessibility ( elementOrderViewController. view, snapshotConfiguration: configuration)
3436 }
3537
3638 func testContainerInElementStack( ) {
3739 let elementOrderViewController = ElementOrderViewController ( configurations: . containerInElementStack)
3840 elementOrderViewController. view. frame = UIScreen . main. bounds
39- SnapshotVerifyAccessibility ( elementOrderViewController. view, snapshotConfiguration: . init( showElementOrderMarkers: true ) )
41+ let configuration = AccessibilitySnapshotConfiguration ( viewRenderingMode: viewRenderingMode, includesElementOrder: . always)
42+ SnapshotVerifyAccessibility ( elementOrderViewController. view, snapshotConfiguration: configuration)
4043 }
4144
4245 func testZeroSizedContainerInElementStack( ) {
4346 let elementOrderViewController = ElementOrderViewController ( configurations: . zeroSizedContainerInElementStack)
4447 elementOrderViewController. view. frame = UIScreen . main. bounds
45- SnapshotVerifyAccessibility ( elementOrderViewController. view, snapshotConfiguration: . init( showElementOrderMarkers: true ) )
48+ let configuration = AccessibilitySnapshotConfiguration ( viewRenderingMode: viewRenderingMode, includesElementOrder: . always)
49+ SnapshotVerifyAccessibility ( elementOrderViewController. view, snapshotConfiguration: configuration)
4650 }
4751
4852 func testGroupedViewsInElementStack( ) {
4953 let elementOrderViewController = ElementOrderViewController ( configurations: . groupedViewsInElementStack)
5054 elementOrderViewController. view. frame = UIScreen . main. bounds
51- SnapshotVerifyAccessibility ( elementOrderViewController. view, snapshotConfiguration: . init( showElementOrderMarkers: true ) )
55+ let configuration = AccessibilitySnapshotConfiguration ( viewRenderingMode: viewRenderingMode, includesElementOrder: . always)
56+ SnapshotVerifyAccessibility ( elementOrderViewController. view, snapshotConfiguration: configuration)
5257 }
5358
5459 func testUngroupedViewsInElementStack( ) {
5560 let elementOrderViewController = ElementOrderViewController ( configurations: . ungroupedViewsInElementStack)
5661 elementOrderViewController. view. frame = UIScreen . main. bounds
57- SnapshotVerifyAccessibility ( elementOrderViewController. view, snapshotConfiguration: . init( showElementOrderMarkers: true ) )
62+ let configuration = AccessibilitySnapshotConfiguration ( viewRenderingMode: viewRenderingMode, includesElementOrder: . always)
63+ SnapshotVerifyAccessibility ( elementOrderViewController. view, snapshotConfiguration: configuration)
5864 }
5965
6066 func testUngroupedViewsInAccessibleParent( ) {
6167 let elementOrderViewController = ElementOrderViewController ( configurations: . ungroupedViewsInAccessibleParent)
6268 elementOrderViewController. view. frame = UIScreen . main. bounds
63- SnapshotVerifyAccessibility ( elementOrderViewController. view, snapshotConfiguration: . init( showElementOrderMarkers: true ) )
69+ let configuration = AccessibilitySnapshotConfiguration ( viewRenderingMode: viewRenderingMode, includesElementOrder: . always)
70+ SnapshotVerifyAccessibility ( elementOrderViewController. view, snapshotConfiguration: configuration)
6471 }
6572
6673}
0 commit comments