From aaafe428fe039d089871b8b74e400b762de86368 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Sun, 1 Nov 2026 17:40:53 +0100 Subject: [PATCH] test: expect the full send options in the Pro compose draft account test #523 --- components/pro/__tests__/pro-compose-from-account.test.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/pro/__tests__/pro-compose-from-account.test.tsx b/components/pro/__tests__/pro-compose-from-account.test.tsx index 773fd3b68..7c698dfff 100644 --- a/components/pro/__tests__/pro-compose-from-account.test.tsx +++ b/components/pro/__tests__/pro-compose-from-account.test.tsx @@ -169,7 +169,9 @@ describe('Pro compose tab - a draft that lives in a group account', () => { // (client, to, subject, body, cc, bcc, identityId, fromEmail, draftId, ..., options) expect(sendEmail.mock.calls[0][8]).toBe('eaaaaab'); - expect(sendEmail.mock.calls[0][16]).toEqual({ localAccountId: undefined, draftAccountId: 'c' }); + // The options are composerSendOptions, the same object the mail page sends + // (read receipt, DSN, priority, headers, outbox for offline mode #523). + expect(sendEmail.mock.calls[0][16]).toMatchObject({ localAccountId: undefined, draftAccountId: 'c', outbox: true }); }); });