A hands-on training project for learning web accessibility (a11y) through a realistic e-commerce application. Write and fix Playwright tests to explore WCAG 2.1 compliance patterns.
Cosmic Goods — a fictional shop selling whimsical products, built with plain HTML/CSS to keep the focus on accessibility patterns rather than frameworks.
ai-slop-shop/ # The demo e-commerce application
playwright/
tests/ # Incomplete test stubs — your training exercises
solution_tests/ # Reference implementations to check your work
Requirements: Node.js v24 (use nvm: nvm use)
npm installnpm run start:shopOpens the app at http://localhost:3000/src/home.html.
npm run test:playwright # Headless
npm run test:playwright:ui # Interactive Playwright UIThe test server starts automatically on port 3100.
The playwright/tests/ directory contains test stubs. Your goal is to implement each test so it passes against the demo application or finds an accessibility issue.
Feel free to make changes and try to fix the web shop.
- Playwright — end-to-end test framework
- axe-core — automated accessibility rule engine
- serve — static file server
- Vanilla HTML/CSS — no frontend framework, semantic markup focus