mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +00:00
GODT-2181(test): Use [user:NAME] for more test user names
This commit is contained in:
@ -1,20 +1,20 @@
|
||||
Feature: IMAP remove messages from Trash
|
||||
Background:
|
||||
Given there exists an account with username "user" and password "password"
|
||||
And the account "user" has the following custom mailboxes:
|
||||
Given there exists an account with username "[user:user]" and password "password"
|
||||
And the account "[user:user]" has the following custom mailboxes:
|
||||
| name | type |
|
||||
| mbox | folder |
|
||||
| label | label |
|
||||
|
||||
Scenario Outline: Message in Trash and some other label is not permanently deleted
|
||||
Given the address "user@[domain]" of account "user" has the following messages in "Trash":
|
||||
| from | to | subject | body |
|
||||
| john.doe@mail.com | user@[domain] | foo | hello |
|
||||
| jane.doe@mail.com | name@[domain] | bar | world |
|
||||
Given the address "[user:user]@[domain]" of account "[user:user]" has the following messages in "Trash":
|
||||
| from | to | subject | body |
|
||||
| john.doe@mail.com | [user:user]@[domain] | foo | hello |
|
||||
| jane.doe@mail.com | name@[domain] | bar | world |
|
||||
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"
|
||||
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"
|
||||
And IMAP client "1" selects "Trash"
|
||||
When IMAP client "1" copies the message with subject "foo" from "Trash" to "Labels/label"
|
||||
Then it succeeds
|
||||
@ -30,14 +30,14 @@ Feature: IMAP remove messages from Trash
|
||||
And IMAP client "1" sees 1 messages in "Labels/label"
|
||||
|
||||
Scenario Outline: Message in Trash only is permanently deleted
|
||||
Given the address "user@[domain]" of account "user" has the following messages in "Trash":
|
||||
| from | to | subject | body |
|
||||
| john.doe@mail.com | user@[domain] | foo | hello |
|
||||
| jane.doe@mail.com | name@[domain] | bar | world |
|
||||
Given the address "[user:user]@[domain]" of account "[user:user]" has the following messages in "Trash":
|
||||
| from | to | subject | body |
|
||||
| john.doe@mail.com | [user:user]@[domain] | foo | hello |
|
||||
| jane.doe@mail.com | name@[domain] | bar | world |
|
||||
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"
|
||||
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"
|
||||
And IMAP client "1" selects "Trash"
|
||||
When IMAP client "1" marks the message with subject "foo" as deleted
|
||||
Then it succeeds
|
||||
|
||||
Reference in New Issue
Block a user