forked from Silverfish/proton-bridge
29 lines
1.0 KiB
Gherkin
29 lines
1.0 KiB
Gherkin
Feature: IMAP get mailbox info
|
|
Background:
|
|
Given there exists an account with username "user" and password "password"
|
|
And the account "user" has the following custom mailboxes:
|
|
| name | type |
|
|
| f1 | folder |
|
|
| l1 | label |
|
|
And bridge starts
|
|
And the user logs in with username "user" and password "password"
|
|
And user "user" finishes syncing
|
|
And user "user" connects and authenticates IMAP client "1"
|
|
|
|
Scenario: Rename folder
|
|
When IMAP client "1" renames "Folders/f1" to "Folders/f2"
|
|
Then IMAP client "1" sees "Folders/f2"
|
|
And IMAP client "1" does not see "Folders/f1"
|
|
|
|
Scenario: Rename label
|
|
When IMAP client "1" renames "Labels/l1" to "Labels/l2"
|
|
Then IMAP client "1" sees "Labels/l2"
|
|
And IMAP client "1" does not see "Labels/l1"
|
|
|
|
Scenario: Renaming folder to label is not possible
|
|
When IMAP client "1" renames "Folders/f1" to "Labels/f2"
|
|
Then it fails
|
|
|
|
Scenario: Renaming system folder is not possible
|
|
When IMAP client "1" renames "Labels/l1" to "Folders/l2"
|
|
Then it fails |