mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-10-31 00:12:39 +00:00
test: cover the From pick when replying to another connected account
This commit is contained in:
@@ -489,6 +489,24 @@ describe('composer reply addressing', () => {
|
||||
render(<EmailComposer mode="reply" replyTo={{ ...TO_ALIAS, to: [{ email: 'info@example.com' }], accountId: 'owner-jmap-id' }} />);
|
||||
expect(identitySelect().value).toBe('local-1::id-info');
|
||||
});
|
||||
|
||||
// Mail one connected account sent to another was received by the second:
|
||||
// the reply goes back to the sender, from the address that received it.
|
||||
it('answers mail another connected account sent here like received mail', () => {
|
||||
render(
|
||||
<EmailComposer
|
||||
mode="reply"
|
||||
replyTo={{
|
||||
from: [{ email: 'login@elsewhere.net', name: 'Login' }],
|
||||
to: [{ email: 'info@example.com', name: 'Info' }],
|
||||
subject: 'Booking',
|
||||
accountId: 'local-1',
|
||||
}}
|
||||
/>,
|
||||
);
|
||||
expect(toChips()).toEqual(['Login (login@elsewhere.net)']);
|
||||
expect(identitySelect().value).toBe('local-1::id-info');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user