diff --git a/client/tests/unit/mobile/trip/MExportSheet.test.tsx b/client/tests/unit/mobile/trip/MExportSheet.test.tsx index c37bac5d4..19c5b21e5 100644 --- a/client/tests/unit/mobile/trip/MExportSheet.test.tsx +++ b/client/tests/unit/mobile/trip/MExportSheet.test.tsx @@ -60,9 +60,10 @@ describe('MExportSheet', () => { expect(screen.queryByRole('dialog')).not.toBeInTheDocument() }) - it('FE-MOB-EXPSH-002: lists the three export routes and names the ics after the trip', () => { + it('FE-MOB-EXPSH-002: lists the export routes and names the ics after the trip', () => { renderSheet() - expect(screen.getByRole('dialog', { name: 'Export Calendar' })).toBeInTheDocument() + // Renamed from "Export Calendar": the sheet carries the PDF and GPX exports too. + expect(screen.getByRole('dialog', { name: 'Export' })).toBeInTheDocument() expect(screen.getByText('PDF')).toBeInTheDocument() expect(screen.getByText('Export day plan as PDF')).toBeInTheDocument() expect(screen.getByText('Download .ics')).toBeInTheDocument() diff --git a/client/tests/unit/mobile/trip/MMehrSheet.test.tsx b/client/tests/unit/mobile/trip/MMehrSheet.test.tsx index c44bc37d5..2ec34d5bf 100644 --- a/client/tests/unit/mobile/trip/MMehrSheet.test.tsx +++ b/client/tests/unit/mobile/trip/MMehrSheet.test.tsx @@ -105,7 +105,7 @@ describe('MMehrSheet', () => { it('FE-MOB-MEHR-009: the action rows open the share, export and edit sheets', () => { const { shell } = renderSheet() fireEvent.click(screen.getByRole('button', { name: 'Share Trip' })) - fireEvent.click(screen.getByRole('button', { name: 'Export Calendar' })) + fireEvent.click(screen.getByRole('button', { name: 'Export' })) fireEvent.click(screen.getByRole('button', { name: 'Edit Trip' })) expect(shell.openSheet).toHaveBeenNthCalledWith(1, 'members') expect(shell.openSheet).toHaveBeenNthCalledWith(2, 'export')