mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-15 14:56:42 +00:00
GODT-1817: Port over missing IMAP copy feature test
This commit is contained in:
@ -6,9 +6,9 @@ Feature: IMAP copy messages
|
||||
| mbox | folder |
|
||||
| label | label |
|
||||
And the address "[user:user]@[domain]" of account "[user:user]" has the following messages in "Inbox":
|
||||
| from | to | subject | unread |
|
||||
| john.doe@mail.com | [user:user]@[domain] | foo | false |
|
||||
| jane.doe@mail.com | name@[domain] | bar | true |
|
||||
| from | to | subject | unread | deleted |
|
||||
| john.doe@mail.com | [user:user]@[domain] | foo | false | false |
|
||||
| jane.doe@mail.com | name@[domain] | bar | true | true |
|
||||
And bridge starts
|
||||
And the user logs in with username "[user:user]" and password "password"
|
||||
And user "[user:user]" finishes syncing
|
||||
@ -16,36 +16,40 @@ Feature: IMAP copy messages
|
||||
|
||||
Scenario: Copy message to label
|
||||
When IMAP client "1" copies the message with subject "foo" from "INBOX" to "Labels/label"
|
||||
And it succeeds
|
||||
Then IMAP client "1" sees the following messages in "INBOX":
|
||||
| from | to | subject | unread |
|
||||
| john.doe@mail.com | [user:user]@[domain] | foo | false |
|
||||
| jane.doe@mail.com | name@[domain] | bar | true |
|
||||
| from | to | subject | unread | deleted |
|
||||
| john.doe@mail.com | [user:user]@[domain] | foo | false | false |
|
||||
| jane.doe@mail.com | name@[domain] | bar | true | true |
|
||||
And IMAP client "1" sees the following messages in "Labels/label":
|
||||
| from | to | subject | unread |
|
||||
| john.doe@mail.com | [user:user]@[domain] | foo | false |
|
||||
| from | to | subject | unread | deleted |
|
||||
| john.doe@mail.com | [user:user]@[domain] | foo | false | false |
|
||||
|
||||
Scenario: Copy all messages to label
|
||||
When IMAP client "1" copies all messages from "INBOX" to "Labels/label"
|
||||
And it succeeds
|
||||
Then IMAP client "1" sees the following messages in "INBOX":
|
||||
| from | to | subject | unread |
|
||||
| john.doe@mail.com | [user:user]@[domain] | foo | false |
|
||||
| jane.doe@mail.com | name@[domain] | bar | true |
|
||||
| from | to | subject | unread | deleted |
|
||||
| john.doe@mail.com | [user:user]@[domain] | foo | false | false |
|
||||
| jane.doe@mail.com | name@[domain] | bar | true | true |
|
||||
And IMAP client "1" sees the following messages in "Labels/label":
|
||||
| from | to | subject | unread |
|
||||
| john.doe@mail.com | [user:user]@[domain] | foo | false |
|
||||
| jane.doe@mail.com | name@[domain] | bar | true |
|
||||
| from | to | subject | unread | deleted |
|
||||
| john.doe@mail.com | [user:user]@[domain] | foo | false | false |
|
||||
| jane.doe@mail.com | name@[domain] | bar | true | true |
|
||||
|
||||
Scenario: Copy message to folder does move
|
||||
When IMAP client "1" copies the message with subject "foo" from "INBOX" to "Folders/mbox"
|
||||
And it succeeds
|
||||
Then IMAP client "1" eventually sees the following messages in "INBOX":
|
||||
| from | to | subject | unread |
|
||||
| jane.doe@mail.com | name@[domain] | bar | true |
|
||||
| from | to | subject | unread | deleted |
|
||||
| jane.doe@mail.com | name@[domain] | bar | true | true |
|
||||
And IMAP client "1" sees the following messages in "Folders/mbox":
|
||||
| from | to | subject | unread |
|
||||
| john.doe@mail.com | [user:user]@[domain] | foo | false |
|
||||
| from | to | subject | unread | deleted |
|
||||
| john.doe@mail.com | [user:user]@[domain] | foo | false | true |
|
||||
|
||||
Scenario: Copy all messages to folder does move
|
||||
When IMAP client "1" copies all messages from "INBOX" to "Folders/mbox"
|
||||
And it succeeds
|
||||
Then IMAP client "1" sees the following messages in "Folders/mbox":
|
||||
| from | to | subject | unread |
|
||||
| john.doe@mail.com | [user:user]@[domain] | foo | false |
|
||||
@ -54,8 +58,28 @@ Feature: IMAP copy messages
|
||||
|
||||
Scenario: Copy message from Inbox to Sent is not possible
|
||||
When IMAP client "1" copies the message with subject "foo" from "INBOX" to "Sent"
|
||||
And it succeeds
|
||||
Then IMAP client "1" eventually sees the following messages in "INBOX":
|
||||
| from | to | subject | unread |
|
||||
| john.doe@mail.com | [user:user]@[domain] | foo | false |
|
||||
| jane.doe@mail.com | name@[domain] | bar | true |
|
||||
And IMAP client "1" eventually sees 0 messages in "Sent"
|
||||
And IMAP client "1" eventually sees 0 messages in "Sent"
|
||||
|
||||
Scenario: Copy message from All mail moves from the original location
|
||||
Then IMAP client "1" sees the following messages in "INBOX":
|
||||
| from | to | subject | unread | deleted |
|
||||
| john.doe@mail.com | [user:user]@[domain] | foo | false | false |
|
||||
| jane.doe@mail.com | name@[domain] | bar | true | true |
|
||||
When IMAP client "1" copies the message with subject "foo" from "All Mail" to "Folders/mbox"
|
||||
And it succeeds
|
||||
Then IMAP client "1" sees the following messages in "INBOX":
|
||||
| from | to | subject | unread | deleted |
|
||||
| jane.doe@mail.com | name@[domain] | bar | true | true |
|
||||
Then IMAP client "1" sees the following messages in "All Mail":
|
||||
| from | to | subject | unread | deleted |
|
||||
| john.doe@mail.com | [user:user]@[domain] | foo | false | false |
|
||||
| jane.doe@mail.com | name@[domain] | bar | true | false |
|
||||
Then IMAP client "1" sees the following messages in "Folders/mbox":
|
||||
| from | to | subject | unread | deleted |
|
||||
| john.doe@mail.com | [user:user]@[domain] | foo | false | true |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user