-
Perform accessibility audits for your app
Discover how you can test your app for accessibility with every build. Learn how to perform automated audits for accessibility using XCTest and find out how to interpret the results. We'll also share enhancements to the accessibility API that can help you improve UI test coverage.
Chapitres
- 0:40 - Discover accessibility audits
- 2:52 - Add audits to your UI tests
- 9:34 - Filter audit issues
- 11:41 - Considerations when running audits
- 12:59 - Expose elements hidden from accessibility to UI tests
Ressources
Vidéos connexes
WWDC18
-
Rechercher dans cette vidéo…
-
-
2:52 - Add an accessibility audit to a UI test
func testAccessibility() throws { let app = XCUIApplication() app.launch() try app.performAccessibilityAudit() } -
8:40 - Customize elements available to assistive technologies
view.accessibilityElements = [quoteTextView, newQuoteButton] -
9:57 - Filter specific issues from accessibility audits
try app.performAccessibilityAudit(for: [.dynamicType, .contrast]) { issue in var shouldIgnore = false // ignore contrast issue on "My Label" if let element = issue.element, element.label == "My Label", issue.auditType == .contrast { shouldIgnore = true } return shouldIgnore } -
14:07 - Customize automation elements available to UI tests
view.automationElements = [imageView, quoteTextView, newQuoteButton]
-