We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3025dd9 commit a1d3dadCopy full SHA for a1d3dad
Tests/AdvancedListTests/AdvancedListTests.swift
@@ -58,14 +58,14 @@ final class AdvancedListTests: XCTestCase {
58
do {
59
let inspectableView = try view.body.inspect()
60
let vStack = try inspectableView.vStack()
61
- let list = try vStack.list(0)
+ let list = try vStack.anyView(0).list()
62
let anyDynamicViewContent = try list.first?.view(AnyDynamicViewContent.self)
63
let forEach = try anyDynamicViewContent?.anyView().forEach()
64
65
- let firstElement = forEach?.first
+ let firstElement = try forEach?.first?.anyView()
66
XCTAssertEqual(try firstElement?.text().string(), mockItem1)
67
68
- let secondElement = forEach?[1]
+ let secondElement = try forEach?[1].anyView()
69
XCTAssertEqual(try secondElement?.text().string(), mockItem2)
70
} catch {
71
XCTFail("\(error)")
0 commit comments