diff --git a/client/src/components/Trips/TripMembersModal.test.tsx b/client/src/components/Trips/TripMembersModal.test.tsx index bda4467cc..89e338b88 100644 --- a/client/src/components/Trips/TripMembersModal.test.tsx +++ b/client/src/components/Trips/TripMembersModal.test.tsx @@ -291,6 +291,7 @@ describe('TripMembersModal', () => { ); render(); + await user.click(await screen.findByRole('button', { name: 'Sharing' })); const createBtn = await screen.findByText('Create link'); await user.click(createBtn); @@ -689,6 +690,7 @@ describe('TripMembersModal', () => { http.delete('/api/trips/1/invite-link', () => HttpResponse.json({ success: true })), ); const view = render(); + await user.click(await screen.findByRole('button', { name: 'Sharing' })); const createBtn = await screen.findByRole('button', { name: /Create invite link/i }); fireEvent.click(createBtn); @@ -719,6 +721,7 @@ describe('TripMembersModal', () => { asShareOwner(); server.use(http.post('/api/trips/1/invite-link', () => HttpResponse.json({}, { status: 500 }))); render(); + await user.click(await screen.findByRole('button', { name: 'Sharing' })); await user.click(await screen.findByRole('button', { name: /Create invite link/i })); @@ -734,6 +737,7 @@ describe('TripMembersModal', () => { http.delete('/api/trips/1/invite-link', () => HttpResponse.json({}, { status: 500 })), ); render(); + await user.click(await screen.findByRole('button', { name: 'Sharing' })); await user.click(await screen.findByRole('button', { name: /Disable/i })); diff --git a/client/src/components/Trips/TripShareDialog.tsx b/client/src/components/Trips/TripShareDialog.tsx index 6562a7e07..0e5d7053e 100644 --- a/client/src/components/Trips/TripShareDialog.tsx +++ b/client/src/components/Trips/TripShareDialog.tsx @@ -133,7 +133,7 @@ function AreaNav({ areas, current, onPick }: { areas: typeof AREAS; current: Are {areas.map(a => { const on = a.id === current return ( -