Copy and layout improvements.

This commit is contained in:
Jennie Robinson Faber 2026-04-16 21:11:05 +01:00
parent 39eb9e039a
commit 02222a5c16
20 changed files with 464 additions and 652 deletions

View file

@ -18,12 +18,13 @@ test.describe('Events list page', () => {
test('past events toggle exists and can be checked', async ({ page }) => {
await page.goto('/events')
const checkbox = page.locator('input[type="checkbox"]')
await expect(checkbox).toBeVisible()
await expect(page.locator('text=Show past events')).toBeVisible()
await page.waitForLoadState('networkidle')
const toggle = page.locator('.past-toggle')
await expect(toggle).toBeVisible()
await expect(toggle).toContainText('Show past events')
await checkbox.check()
await expect(checkbox).toBeChecked()
await toggle.click()
await expect(toggle).toHaveClass(/active/)
// Page should still render without errors after toggling
await expect(page.locator('h1', { hasText: 'Events' })).toBeVisible()
@ -44,7 +45,7 @@ test.describe('Events list page', () => {
await page.goto('/events')
// Check the past events toggle so we see all events
await page.locator('input[type="checkbox"]').check()
await page.locator('.past-toggle').click()
const eventLinks = page.locator('.event-row a')
const count = await eventLinks.count()