Skip to content
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

added performAccessibilityActivateWithExpectedResult #1304

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

RoyalPineapple
Copy link
Contributor

@RoyalPineapple RoyalPineapple commented Sep 17, 2024

Some of my recent accessibility work in our design system results in accessibility elements that abstract away the interactivity of some underlying controls. These elements subsume the interactivity of their children and re-expose the functionality via accessibilityActivate().

Unfortunately this breaks KIF matching resulting in the need for an escape hatch to allow activation of elements with greater complexity.

performAccessibilityActivateWithExpectedResult calls accessibilityElement() on the found element and compares its result to the expectation.

@RoyalPineapple RoyalPineapple force-pushed the alex/AccessibilityActivate branch 2 times, most recently from 61f9c9d to c2e68f6 Compare September 17, 2024 19:30
@RoyalPineapple RoyalPineapple changed the title added performAccessibilityActivateWithEpectedResult added performAccessibilityActivateWithExpectedResult Sep 17, 2024
Sources/KIF/Classes/KIFUIViewTestActor.m Outdated Show resolved Hide resolved
KIF Tests/AccessibilityActivationTests_ViewTestActor.m Outdated Show resolved Hide resolved
Sources/KIF/Classes/KIFUIViewTestActor.m Show resolved Hide resolved
@RoyalPineapple RoyalPineapple merged commit ec9b38d into master Sep 24, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants