From fd8724db8fedb953e8331d8a7e354a426e2fca33 Mon Sep 17 00:00:00 2001 From: nitrix Date: Thu, 12 Mar 2026 22:34:36 +0100 Subject: [PATCH] Rename role badges to present participle (Organizing, Attending) Co-Authored-By: Claude Opus 4.6 --- frontend/e2e/home-events.spec.ts | 4 ++-- frontend/e2e/watch-event.spec.ts | 6 +++--- frontend/src/components/EventCard.vue | 2 +- frontend/src/components/__tests__/EventCard.spec.ts | 4 ++-- frontend/src/components/__tests__/EventList.spec.ts | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/frontend/e2e/home-events.spec.ts b/frontend/e2e/home-events.spec.ts index 88ca1a8..63731ec 100644 --- a/frontend/e2e/home-events.spec.ts +++ b/frontend/e2e/home-events.spec.ts @@ -139,7 +139,7 @@ test.describe('US5: Visual Distinction for Event Roles', () => { const card = page.locator('.event-card').filter({ hasText: 'Summer BBQ' }) const badge = card.locator('.event-card__badge') await expect(badge).toBeVisible() - await expect(badge).toHaveText('Organizer') + await expect(badge).toHaveText('Organizing') await expect(badge).toHaveClass(/event-card__badge--organizer/) }) @@ -150,7 +150,7 @@ test.describe('US5: Visual Distinction for Event Roles', () => { const card = page.locator('.event-card').filter({ hasText: 'Team Meeting' }) const badge = card.locator('.event-card__badge') await expect(badge).toBeVisible() - await expect(badge).toHaveText('Attendee') + await expect(badge).toHaveText('Attending') await expect(badge).toHaveClass(/event-card__badge--attendee/) }) diff --git a/frontend/e2e/watch-event.spec.ts b/frontend/e2e/watch-event.spec.ts index 94b936e..d919967 100644 --- a/frontend/e2e/watch-event.spec.ts +++ b/frontend/e2e/watch-event.spec.ts @@ -110,7 +110,7 @@ test.describe('US3: Bookmark reflects attending status', () => { // Navigate to list via back link await page.locator('.detail__back').click() - await expect(page.getByText('Attendee')).toBeVisible() + await expect(page.getByText('Attending')).toBeVisible() await expect(page.getByText('Watching')).not.toBeVisible() }) }) @@ -139,7 +139,7 @@ test.describe('US4: RSVP cancellation preserves watch status', () => { // Navigate to list via back link await page.locator('.detail__back').click() await expect(page.getByText('Watching')).toBeVisible() - await expect(page.getByText('Attendee')).not.toBeVisible() + await expect(page.getByText('Attending')).not.toBeVisible() }) }) @@ -212,7 +212,7 @@ test.describe('US7: Watcher upgrades to attendee', () => { // Navigate to list via back link await page.locator('.detail__back').click() - await expect(page.getByText('Attendee')).toBeVisible() + await expect(page.getByText('Attending')).toBeVisible() await expect(page.getByText('Watching')).not.toBeVisible() }) }) diff --git a/frontend/src/components/EventCard.vue b/frontend/src/components/EventCard.vue index 705870d..19895a5 100644 --- a/frontend/src/components/EventCard.vue +++ b/frontend/src/components/EventCard.vue @@ -12,7 +12,7 @@ {{ displayTime }} - {{ eventRole === 'organizer' ? 'Organizer' : eventRole === 'attendee' ? 'Attendee' : 'Watching' }} + {{ eventRole === 'organizer' ? 'Organizing' : eventRole === 'attendee' ? 'Attending' : 'Watching' }}