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.
This commit is contained in:
Maurice
2026-08-12 14:02:39 +02:00
committed by GitHub
parent 9ce6eed9ad
commit 6e10ffa75d
2 changed files with 4 additions and 3 deletions
@@ -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()
@@ -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')