proton-bridge/tests/features/imap/mailbox/list.feature

67 lines
2.8 KiB
Gherkin
Raw Normal View History

2022-08-26 15:00:21 +00:00
Feature: IMAP list mailboxes
Scenario: List mailboxes
Given there exists an account with username "[user:user]" and password "password"
And the account "[user:user]" has the following custom mailboxes:
2022-08-26 15:00:21 +00:00
| name | type |
| mbox1 | folder |
| mbox2 | label |
2023-05-22 11:16:56 +00:00
Then it succeeds
2022-08-26 15:00:21 +00:00
When bridge starts
And the user logs in with username "[user:user]" and password "password"
And user "[user:user]" finishes syncing
And user "[user:user]" connects and authenticates IMAP client "1"
2023-05-22 11:16:56 +00:00
Then it succeeds
And IMAP client "1" eventually sees the following mailbox info:
| name |
| INBOX |
| Drafts |
| Sent |
| Starred |
| Archive |
| Spam |
| Trash |
| All Mail |
| Folders |
| Folders/mbox1 |
| Labels |
| Labels/mbox2 |
2022-08-26 15:00:21 +00:00
Scenario: List multiple times in parallel without crash
Given there exists an account with username "[user:user]" and password "password"
And the account "[user:user]" has 20 custom folders
And the account "[user:user]" has 60 custom labels
2022-08-26 15:00:21 +00:00
When bridge starts
And the user logs in with username "[user:user]" and password "password"
And user "[user:user]" finishes syncing
When user "[user:user]" connects and authenticates IMAP client "1"
And user "[user:user]" connects and authenticates IMAP client "2"
2022-08-26 15:00:21 +00:00
Then IMAP client "1" counts 20 mailboxes under "Folders"
And IMAP client "1" counts 60 mailboxes under "Labels"
Then IMAP client "2" counts 20 mailboxes under "Folders"
And IMAP client "2" counts 60 mailboxes under "Labels"
# need to implement _schedule message_ test step for black
@skip-black
Scenario: List with scheduled mail
Given there exists an account with username "[user:user]" and password "password"
And the address "[user:user]@[domain]" of account "[user:user]" has the following messages in "Scheduled":
| from | to | subject | unread |
| john.doe@mail.com | [user:user]@[domain] | sch | false |
When bridge starts
And the user logs in with username "[user:user]" and password "password"
And user "[user:user]" finishes syncing
And user "[user:user]" connects and authenticates IMAP client "1"
Then IMAP client "1" eventually sees the following mailbox info:
| name | total |
| INBOX | 0 |
| Drafts | 0 |
| Sent | 0 |
| Starred | 0 |
| Archive | 0 |
| Spam | 0 |
| Trash | 0 |
| All Mail | 1 |
| Folders | 0 |
| Labels | 0 |
| Scheduled | 1 |