mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user