google / EarlGrey

:tea: iOS UI Automation Test Framework
http://google.github.io/EarlGrey/
Apache License 2.0
5.62k stars 744 forks source link

Accessibility checks #393

Open bootstraponline opened 7 years ago

bootstraponline commented 7 years ago

The W3C defines mobile accessibility guidelines. Google provides an Accessibility test framework for Android that integrates with Espresso.

When Espresso loads a view, the following 16 accessibility checks are run. It'd be great to have similar support in EarlGrey.

View checks

AccessibilityNodeInfo checks

AccessibilityEvent checks

bootstraponline commented 7 years ago

https://chromium.googlesource.com/chromium/src.git/+/master/ios/chrome/test/earl_grey/accessibility_util.mm has some interesting accessibility helpers.