fix(notifications): drop a tab the planner lacks from the URL, link booking mails to the reservations tab, open the chat on the phone

This commit is contained in:
Maurice
2026-11-14 16:49:18 +01:00
parent bfdbf4d811
commit a76a96ccca
9 changed files with 61 additions and 16 deletions
@@ -593,6 +593,15 @@ describe('MTripShell', () => {
expect(shellApi.collabTab).toBe('notes')
})
it('FE-MOB-SHELL-036b: a message notification opens the chat, not the collab part last open', () => {
const { planner, rerenderShell } = renderShell({ activeTab: 'collab' } as Partial<TripPlanner>)
fireEvent.click(screen.getByRole('button', { name: 'collab.tabs.notes' }))
expect(shellApi.collabTab).toBe('notes')
planner.tabLink = { tab: 'collab', seq: 1 }
rerenderShell()
expect(shellApi.collabTab).toBe('chat')
})
it('FE-MOB-SHELL-037: setTrTab from a slot routes through the planner and resets browse', () => {
const { planner } = renderShell()
fireEvent.click(screen.getByRole('button', { name: 'trip.mobilePlaces' }))