fix(e2e): repair failing suite — a11y fixes and stale assertions

Three product a11y defects: drop role="radiogroup" from the /join PWYC
<ul> (it stripped the list role; native radios already group), use
--parch-text on the active contribution chip (was --text-bright, 1.17:1
on --parch), and label the New tag pool USelect on event create.

Three stale tests: real event-type filter labels, updated location
placeholder, and click the label instead of the hidden 0×0 radio.
This commit is contained in:
Jennie Robinson Faber 2026-05-24 00:43:54 +01:00
parent fee5959818
commit 039a6802e3
6 changed files with 7 additions and 7 deletions

View file

@ -11,7 +11,7 @@ test.describe('Events list page', () => {
const filterBar = page.locator('.filter-bar')
await expect(filterBar).toBeVisible()
for (const label of ['All', 'Workshops', 'Community', 'Social', 'Showcase']) {
for (const label of ['All', 'Talk / Presentation', 'Workshop', 'Community Meetup', 'Co-working Session', 'Peer Session', 'Skills Share', 'Info Session']) {
await expect(filterBar.locator('button', { hasText: label })).toBeVisible()
}
})
@ -36,7 +36,7 @@ test.describe('Events list page', () => {
// 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' })
const workshopsBtn = page.locator('.filter-bar button', { hasText: 'Workshop' })
await workshopsBtn.click()
await expect(workshopsBtn).toHaveClass(/active/, { timeout: 5000 })
})