Open aaryankotharii opened 2 years ago
Hey, in your specific case you can get to the Text
using this chain:
let text = try sut.inspect().list().outlineGroup(0).leaf(Bookmark.example1).text(1)
I do find this quite verbose and unintuitive, I'll explore how to improve the experience of inspecting the hierarchical lists.
unable to test hierarchical list
UI taken from hackingwithswift
test written
error
view(ListTest.self).list().text(0) found OutlineGroup<Swift.Array<WalletUITests.Bookmark>, Foundation.UUID, SwiftUI.TupleView<(SwiftUI.Image, SwiftUI.Text)>, SwiftUI.TupleView<(SwiftUI.Image, SwiftUI.Text)>, SwiftUI.DisclosureGroup<SwiftUI.TupleView<(SwiftUI.Image, SwiftUI.Text)>, SwiftUI.OutlineSubgroupChildren>> instead of Text