From 0c421f555783ea983bddda61447abb3a1a3adcaa Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Mon, 2 Nov 2026 20:15:33 +0100 Subject: [PATCH] test: cover opening the shared inbox from a grouped notification #1499 --- .../mail/__tests__/mail-app-source-routing.test.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/components/mail/__tests__/mail-app-source-routing.test.tsx b/components/mail/__tests__/mail-app-source-routing.test.tsx index 329c8c0a1..add5d3d12 100644 --- a/components/mail/__tests__/mail-app-source-routing.test.tsx +++ b/components/mail/__tests__/mail-app-source-routing.test.tsx @@ -281,4 +281,16 @@ describe('shared message deep link from the personal Inbox (#1491)', () => { window.history.replaceState(null, '', '/'); } }); + + it('opens the shared Inbox for a grouped notification of the shared account', async () => { + window.history.replaceState(null, '', '/mail/folder/inbox?owner=ce'); + useEmailStore.setState({ emails: [], selectedEmail: null, selectedMailbox: 'a', selectedKeyword: null } as never); + const mounted = render(); + try { + await waitFor(() => expect(useEmailStore.getState().selectedMailbox).toBe('ce:a')); + } finally { + mounted.unmount(); + window.history.replaceState(null, '', '/'); + } + }); });