From 6e10ffa75de3234e634e6a53801f16242081f722 Mon Sep 17 00:00:00 2001 From: Maurice <61554723+mauriceboe@users.noreply.github.com> Date: Wed, 12 Aug 2026 14:02:39 +0200 Subject: [PATCH] test(mobile): follow the export sheet's rename (#1909) Two suites under client/tests/ still looked for "Export Calendar" by accessible name. They live outside src/, which is why the targeted runs while building this missed them and only CI caught it. --- client/tests/unit/mobile/trip/MExportSheet.test.tsx | 5 +++-- client/tests/unit/mobile/trip/MMehrSheet.test.tsx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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')