test: expect the full send options in the Pro compose draft account test #523

This commit is contained in:
Linus Rath
2026-11-01 17:40:53 +01:00
parent 52350876fd
commit aaafe428fe
@@ -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 });
});
});