-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Summary
Add test coverage for the new topic pages, following the project's two-layer accessibility testing strategy (axe-core scans + Playwright assertions).
Tests to add
Accessibility tests (tests/accessibility.spec.ts)
/topicslisting page — axe-core scan (WCAG 2.2 AA)/topics/{slug}detail page — axe-core scan (WCAG 2.2 AA)- Heading hierarchy — verify
<h1>exists on both pages, heading levels don't skip - Navigation — verify
aria-current="page"is set on the Topics nav link when on topic pages - Landmark structure — verify topic page sections use appropriate landmarks
Functional tests
- Topics listing — verify topic names, descriptions, and links render correctly
- Topic detail page — verify topic name, body content, and event sections render
- Event sections — verify upcoming and past event sections appear with correct headings
- Cross-linking — verify topic links on event detail pages navigate to the correct topic page
- 404 handling — verify non-existent topic slug redirects to 404
Testing data
Use the "Repetitive Strain Injury" topic in the test dataset. Additional test topics may need to be created in the test dataset to cover edge cases (e.g. topic with no associated events).
Dependencies
- Create Topics listing page #579 (Topics listing page)
- Create individual topic pages #580 (Individual topic pages)
- Add Topics link to primary navigation #581 (Navigation link)
- Link topic headings on event pages to topic pages #582 (Cross-linking from event pages)
Part of
- Topic pages #577 (Topic pages)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Not Started