Accessibility + TDD == easy && !impossible
summary
Shows how Test-Driven Development uses the accessibility APIs to make front-end work faster and safer: builds a Next.js/Tailwind/React enrollment page driven by Playwright tests, uses Axe Core scans plus component testing, enforces one H1, combo box accessible names, and aria-describedby-linked error text with a live-region alert. Automation catches ~20–30% of issues; one in five Australians (≈5M) benefit; accessible tests act as a stable contract so refactors keep working.
AI-written summary · about
chapters (40)
- 0:00Accessibility + TDD intro
- 1:07Why accessibility & TDD overlooked
- 3:13Human impact of accessibility
- 4:55Presenters Maya & Chris
- 6:21Live coding demo setup
- 8:04First failing test for title
- 9:06Adding heading & testing Axe Core
- 11:16Semantic HTML & headings
- 15:28Fixing heading structure
- 16:30Axe Core & Playwright integration
- 19:20Testing course enrollment interaction
- 20:23Testing combo box accessible name
- 21:52What is an accessible name
- 24:18Labels & accessible names best practices
- 25:22Refining accessible name tests
- 26:25Role vs selectors for testing
- 27:07Testing select element course options
- 28:09Testing course ID & submit button
- 29:10Building enrollment table structure
- 30:55Testing table cells & helpers
- 32:20Testing workload concerns
- 35:25Refactoring components & coverage
- 36:48Parameterizing tests for courses
- 37:51Mocking API & fetching data
- 38:32Adding visual styling accessibly
- 39:56Testing input validation
- 41:41Playwright component setup
- 42:22HTML & React roles
- 47:01Testing unselected course validation
- 48:04Native browser validation
- 49:29Error message accessibility
- 51:39Making error messages persistent
- 53:04Testing error message visibility
- 54:07aria-describedby for errors
- 56:37role alert for screen readers
- 58:24Screen reader demo with alert
- 1:00:51Live regions & dynamic content
- 1:01:53Accessibility legal requirements
- 1:02:57Summary & benefits
- 1:04:45Q&A
related talks
51mToDo: Test Driven Development and Accessibility
33mAutomated Accessibility Testing
45mTips from the Trenches: Accessibility Testing
56mAccessibility Testing 101
25mHow to do good without doing anything
35mAutomated Accessibility Testing
34mAdding accessibility into Unit Tests
44mTesting Web Accessibility
