File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -58,14 +58,14 @@ final class AdvancedListTests: XCTestCase {
58
58
do {
59
59
let inspectableView = try view. body. inspect ( )
60
60
let vStack = try inspectableView. vStack ( )
61
- let list = try vStack. list ( 0 )
61
+ let list = try vStack. anyView ( 0 ) . list ( )
62
62
let anyDynamicViewContent = try list. first? . view ( AnyDynamicViewContent . self)
63
63
let forEach = try anyDynamicViewContent? . anyView ( ) . forEach ( )
64
64
65
- let firstElement = forEach? . first
65
+ let firstElement = try forEach? . first? . anyView ( )
66
66
XCTAssertEqual ( try firstElement? . text ( ) . string ( ) , mockItem1)
67
67
68
- let secondElement = forEach ? [ 1 ]
68
+ let secondElement = try forEach ? [ 1 ] . anyView ( )
69
69
XCTAssertEqual ( try secondElement? . text ( ) . string ( ) , mockItem2)
70
70
} catch {
71
71
XCTFail ( " \( error) " )
You can’t perform that action at this time.
0 commit comments