Copy and layout improvements.
This commit is contained in:
parent
39eb9e039a
commit
02222a5c16
20 changed files with 464 additions and 652 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -83,7 +83,8 @@ test.describe('Join page — member signup flow', () => {
|
|||
await page.locator('#join-name').fill('E2E Test User')
|
||||
await page.locator('#join-email').fill(uniqueEmail)
|
||||
await page.locator('#circle-community').check({ force: true })
|
||||
await page.locator('#join-contribution').selectOption('0')
|
||||
await page.locator('#join-contribution').click()
|
||||
await page.getByRole('option', { name: '$0/mo' }).click()
|
||||
|
||||
await expect(page.locator('.form-submit')).toBeEnabled()
|
||||
|
||||
|
|
@ -108,7 +109,8 @@ test.describe('Join page — member signup flow', () => {
|
|||
await page.locator('#join-name').fill('Dup Test User')
|
||||
await page.locator('#join-email').fill(duplicateEmail)
|
||||
await page.locator('#circle-community').check({ force: true })
|
||||
await page.locator('#join-contribution').selectOption('0')
|
||||
await page.locator('#join-contribution').click()
|
||||
await page.getByRole('option', { name: '$0/mo' }).click()
|
||||
await page.locator('.form-submit').click()
|
||||
|
||||
// Should show an error about the email already existing
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ const authenticatedPages = [
|
|||
{ name: 'admin-events-create', path: '/admin/events/create' },
|
||||
// New authenticated pages
|
||||
{ name: 'member-account', path: '/member/account' },
|
||||
{ name: 'member-activity', path: '/member/activity' },
|
||||
{ name: 'connections', path: '/connections' },
|
||||
{ name: 'admin-dashboard', path: '/admin' },
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue