From a6a12acad7abe9c31209f481311655c97915137e Mon Sep 17 00:00:00 2001 From: Maurice Date: Sat, 11 Apr 2026 19:18:17 +0200 Subject: [PATCH] fix: add title attrs to icon-only buttons, remove obsolete Memories tab test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add title attributes to action buttons in SpotlightCard, MobileTripCard, TripCard so tests can find them by accessible name (edit, delete, archive, copy) - Remove FE-PAGE-PLANNER-018 test — MemoriesPanel moved to Journey addon --- client/src/pages/DashboardPage.tsx | 24 ++++++++++---------- client/src/pages/TripPlannerPage.test.tsx | 27 +---------------------- 2 files changed, 13 insertions(+), 38 deletions(-) diff --git a/client/src/pages/DashboardPage.tsx b/client/src/pages/DashboardPage.tsx index 86fff2e2..1b935861 100644 --- a/client/src/pages/DashboardPage.tsx +++ b/client/src/pages/DashboardPage.tsx @@ -203,10 +203,10 @@ function SpotlightCard({ trip, onEdit, onCopy, onDelete, onArchive, onClick, t, ) : }
e.stopPropagation()}> - {onEdit && } - {onCopy && } - {onArchive && } - {onDelete && } + {onEdit && } + {onCopy && } + {onArchive && } + {onDelete && }
@@ -303,10 +303,10 @@ function MobileTripCard({ trip, onEdit, onCopy, onDelete, onArchive, onClick, t, {/* Action buttons top-right */}
- {onEdit && } - {onCopy && } - {onArchive && } - {onDelete && } + {onEdit && } + {onCopy && } + {onArchive && } + {onDelete && }
{/* Countdown badge */} @@ -393,10 +393,10 @@ function TripCard({ trip, onEdit, onCopy, onDelete, onArchive, onClick, t, local {/* Action buttons top-right — visible on hover */}
- {onEdit && } - {onCopy && } - {onArchive && } - {onDelete && } + {onEdit && } + {onCopy && } + {onArchive && } + {onDelete && }
{/* Status badge top-left */} diff --git a/client/src/pages/TripPlannerPage.test.tsx b/client/src/pages/TripPlannerPage.test.tsx index 54a7d99d..78096249 100644 --- a/client/src/pages/TripPlannerPage.test.tsx +++ b/client/src/pages/TripPlannerPage.test.tsx @@ -592,32 +592,7 @@ describe('TripPlannerPage', () => { }); }); - describe('FE-PAGE-PLANNER-018: Memories tab renders MemoriesPanel', () => { - it('shows MemoriesPanel after clicking the Photos tab with a photo_provider addon enabled', async () => { - server.use( - http.get('/api/addons', () => - HttpResponse.json({ addons: [{ id: 'google_photos', type: 'photo_provider' }] }) - ) - ); - - vi.useFakeTimers(); - - seedTripStore({ id: 42 }); - - renderPlannerPage(42); - - act(() => { vi.runAllTimers(); }); - - vi.useRealTimers(); - - const photosTab = await screen.findByTitle('Photos'); - fireEvent.click(photosTab); - - await waitFor(() => { - expect(screen.getByTestId('memories-panel')).toBeInTheDocument(); - }); - }); - }); + // FE-PAGE-PLANNER-018: Removed — MemoriesPanel moved to Journey addon describe('FE-PAGE-PLANNER-019: Todo subtab in ListsContainer', () => { it('shows TodoListPanel after switching to the Todo subtab inside Lists', async () => {