fix: accessibility improvements and test infrastructure hardening

Add aria-labels to form controls (selects, checkboxes, switches), set
html lang attribute and page title, fix color contrast for --candle-dim
and --text-faint tokens, underline inline links, remove opacity hack.
Harden dev login endpoints with atomic findOneAndUpdate and tokenVersion
in JWT. Update Playwright timeouts and E2E test helpers.
This commit is contained in:
Jennie Robinson Faber 2026-04-05 21:59:02 +01:00
parent 61c16d8bac
commit c40f2c7c63
35 changed files with 787 additions and 173 deletions

View file

@ -31,9 +31,13 @@ test.describe('Events list page', () => {
test('clicking a filter button activates it', async ({ page }) => {
await page.goto('/events')
await page.waitForLoadState('networkidle')
// Wait for Vue hydration — the "All" filter should have the active class once reactive
const allBtn = page.locator('.filter-btn', { hasText: 'All' })
await expect(allBtn).toHaveClass(/active/, { timeout: 10000 })
const workshopsBtn = page.locator('.filter-bar button', { hasText: 'Workshops' })
await workshopsBtn.click()
await expect(workshopsBtn).toHaveClass(/active/)
await expect(workshopsBtn).toHaveClass(/active/, { timeout: 5000 })
})
test('event links navigate to detail page', async ({ page }) => {