Slide 1

Slide 1 text

Testing for Accessibility

Slide 2

Slide 2 text

I’m Robin Kanatzar. You can find me on Twitter @RobinKanatzar Testing for Accessibility 2

Slide 3

Slide 3 text

What we can and can’t test Free testing tools 3 The plan

Slide 4

Slide 4 text

4 Real people who use assistive technology* Machine * Assistive technology = VoiceOver, Voice Control, Switch Control, and much more

Slide 5

Slide 5 text

What we can and can’t test (with a machine) 1. 5

Slide 6

Slide 6 text

Conflicting traits (example: .button & .link) Color contrast Touch target Overlapping elements 100% Machine Testable

Slide 7

Slide 7 text

Dynamic type Orientation Element labels Element ignoring Machine + Human

Slide 8

Slide 8 text

8 Color contrast Touch targets Overlapping elements Conflicting traits Dynamic type Orientation Element labels Element ignoring Element grouping (semantic groups) …and more What we can and can’t test

Slide 9

Slide 9 text

Free testing tools 2. 9

Slide 10

Slide 10 text

XCUITest ▪ Uses accessibility tree under the hood ▪ Writing UI tests is the easiest way to start testing for accessibility 10 UI Test

Slide 11

Slide 11 text

A11yUITests ▪ “An extension to XCTestCase that adds tests for common accessibility issues that can be run as part of an XCUI Test suite.” 11 Rob Whitaker - mobilea11y.com - @RobRWAPP 11 11 UI Test Github Repo

Slide 12

Slide 12 text

Accessibility Inspector ▪ Xcode > Open Developer Tools > Accessibility Inspector 12 Dev

Slide 13

Slide 13 text

SwiftLint ▪ accessibility_label_for_image 13 Dev

Slide 14

Slide 14 text

Evinced Flow Analyzer 14 QA

Slide 15

Slide 15 text

Tools ▪ A11yUITests ▪ XCUITest ▪ Evinced Mobile Flow Analyzer Development QA ▪ Accessibility Inspector ▪ SwiftLint UI Tests (CI / CD)

Slide 16

Slide 16 text

16 Conclusion What we can and can’t test Free testing tools

Slide 17

Slide 17 text

Merci ! Any questions? You can find me at ▪ @RobinKanatzar on Twitter ▪ [email protected] 17