Open
Description
There's a find(viewWithId:) function, but as I already set the accessibilityIdentifier property on all views for UI testing, I needed a new find function. I implemented this as a shortcut:
extension InspectableView {
func find(_ id: String) throws -> InspectableView<ViewType.ClassifiedView> {
try find { try $0.accessibilityIdentifier() == id }
}
}
Would be nice to see something like this integrated into the standard package as probably everyone doing UI testing already has those identifiers set.
Metadata
Metadata
Assignees
Labels
No labels