-
Notifications
You must be signed in to change notification settings - Fork 662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find by AccessibilityIdentifier #77
Comments
Hey, feel free to open a PR for that, great idea! |
I'd only picked a more verbose name for Maybe |
Yes, thought the same, but it‘s a bit long, though. But in regard to the other find versions it‘s probably the right name.
… Am 25.01.2022 um 18:28 schrieb Alexey Naumov ***@***.***>:
I'd only picked a more verbose name for func find(_ id: String) to not be confused with other modifiers, including find(viewWithId:).
Maybe find(viewWithAccessibilityId:) ?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: