hands-on accessibility...accessibility testing methods overview automated testing manual testing...

64
Hands-on accessibility testing

Upload: others

Post on 06-Aug-2021

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Hands-on accessibility

testing

Page 2: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Nicolas Steenhout @vavroom

https://incl.ca [email protected]

https://a11yrules.com

Knowbilityhttp://knowbility.org

Page 3: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Handout

http://bit.ly/a11y-testing-handout

Page 4: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Disclaimer

No time for everything

Getting you started

Workflow to find a majority of issues

Page 5: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Accessibility Overview

Page 6: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

"The inclusive practice of making websitesusable by everyone,

regardless of ability or disability."

Page 7: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

1 in 5

Page 8: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Vision

Hearing

Physical or Motor

Cognitive or Neurological

Blind, low vision, colour blind

Deaf, hard of hearing

Fine control, slow motion, no mouse

Learning impairment, distracted, decision-making

Page 9: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Sighted keyboard-only

users

Temporary impairments

Page 10: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

New mother with squirming infant in her arms

Functional limitations

Cracked mobile phone screen

Page 11: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

No Metrics

Page 12: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Good for everyone

Page 13: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

CP makes fine movements difficult vs

Big fingers and small checkbox on phone

Page 14: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Cognitive impairment - hard to read text vs

Non-native language speakers

Page 15: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Low vision - Difficult to perceive text without contrast

vs Looking at phone in bright sunlight

Page 16: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

WCAG 2.03 Levels

4 Principles

12 Guidelines

61 Success criteria

Lots of techniques

WCAG 2.1

Page 17: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

erceivable

perable

nderstandable

obust

Able to perceive info through their senses either via browser or assistive technology

Able to interact with controls or dynamic elements with mouse, keyboard, etc

Able to understand information and how to use the interface

Content can be accessed by old and new user agents and assistive technology

P

O

U

R

Page 18: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Compliance != Accessibility

Page 19: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Meeting requirements

doesn't alwaysensure

accessibility

Page 20: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Testing methods overview

Page 21: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Automated testing

Manual testing

User testing

Page 22: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Automated testingQuick

Not all errors need human eye

Can review hundreds of pages

Good for getting "pulse", starting point

Page 23: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Automated testingIncomplete coverage

Alternate text

Forms

Picks things up that aren't there

Colour

Scripting, dynamic content, etc

Page 24: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Automated testing

UK Government Digital Service

Worst accessible page ever

Best tool only picked up 38% of barriers

http://bit.ly/2rEBZlx

Page 25: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Manual testing

Human judgement

Slower

Depends on tester's experience

Page 26: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

User testing

Real users

Discovering things testers can miss

https://access-works.com/

Page 27: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Automated testing tools

Page 28: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

tenon.io

Page 29: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

WAVE toolbar

Page 30: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

axe accessibility engine

Page 31: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Opquast

Page 32: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

tota11y

Page 33: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Manual Testing Tools

Page 34: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Keyboard

Page 35: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Colour Contrast Analyser

Many tools out there

WebAIM contrast analyser

http://bit.ly/Webaim-contrast

Page 36: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Zoom Page WE

Page 37: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Code inspection

Web developer toolbar

Browser developer tools, etc

Page 38: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Screen readers

Page 39: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Using screen readers

Complex software

Experience mission critical

Good indication but can lead to false positives

Page 40: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Screen readers

JAWS (Windows)

NVDA (Windows)

VoiceOver (OS X)

Orca (Linux)

Page 41: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Screen readers / browser combo

JAWS (Windows) - IE / Edge

NVDA (Windows) / Firefox/Chrome

VoiceOver (OS X) / Safari

Page 42: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

NVDA Key combinations

http://bit.ly/Webaim-NVDA

Modifier key:INSERT (or CAPS LOCK)

Page 43: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

VO Key combinations

Modifier keys:

CTRL+OPTIONS = VO

http://bit.ly/Webaim-VO

Page 44: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Screen reader demo

Page 45: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Screen reader exercise

Load up your preferred screen reader

Navigate a site you are familiar with

Page 46: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Manual testing

Page 47: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Keyboard

Navigate forward - TAB

Navigate backward - SHIFT+TAB

Activate with SPACEBAR or ENTER

Page 48: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Keyboard Challenge

Spend a day without using your mouse or trackpad

Page 49: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Keyboard Challenge

Spend a day an hour without using your mouse or trackpad

Challenge your friends and colleagues:http://nomouse.org

Page 50: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Keyboard

Skip link?

Focus visible?

Keyboard traps?

Interactive elements - buttons, links, forms?

Page 51: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Images

alt attribute

alt="" vs alt="Some description"

Page 52: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Images

Decorative vs Informative

http://bit.ly/alt-decision-tree

Page 53: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Forms

labels

associated using the 'for' attribute

Page 54: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Forms

Error messages

Inline validation

Focus management

aria-describedby

Page 55: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Forms

Time out

Notify users session about to expire!

Page 56: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Document structureHeading hierarchy

Skipped headings?

Missing headings?

Empty headings?

Page 57: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Language

Document language declared?

Changes in languages defined?

Page 58: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Text resize to 200%

Text readable?

Horizontal scroll?

Overlap?

Page 59: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Windows High contrast

How does it look?

Can you see all elements?

Page 60: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Colour Contrast

Regular text minimum 4.5:1

Large text: 3:1

Page 61: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Tables - tabular data

Are there <th>?

Are cells associated with headers?

Page 62: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Tables - layout

Don't use tables for layout

If you must, add role="presentation"

Page 63: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Audio & Video

Captions? Transcripts?

Controls keyboard accessible?

Page 64: Hands-on accessibility...accessibility Testing methods overview Automated testing Manual testing User testing Automated testing Quick Not all errors need human eye Can review hundreds

Thank you!Questions?

Nicolas [email protected]

@vavroom

http://bit.ly/Nic-Slides/