mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +00:00
GODT-2181(test): use [domain] for test server domain
This commit is contained in:
@ -1,81 +1,81 @@
|
||||
Feature: IMAP create messages
|
||||
Background:
|
||||
Given there exists an account with username "user@pm.me" and password "password"
|
||||
And the account "user@pm.me" has additional address "alias@pm.me"
|
||||
Given there exists an account with username "user" and password "password"
|
||||
And the account "user" has additional address "alias@[domain]"
|
||||
And bridge starts
|
||||
And the user logs in with username "user@pm.me" and password "password"
|
||||
And user "user@pm.me" finishes syncing
|
||||
And user "user@pm.me" connects and authenticates IMAP client "1"
|
||||
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: Creates message to user's primary address
|
||||
When IMAP client "1" appends the following messages to "INBOX":
|
||||
| from | to | subject | body |
|
||||
| john.doe@email.com | user@pm.me | foo | bar |
|
||||
| from | to | subject | body |
|
||||
| john.doe@email.com | user@[domain] | foo | bar |
|
||||
Then it succeeds
|
||||
And IMAP client "1" sees the following messages in "INBOX":
|
||||
| from | to | subject | body |
|
||||
| john.doe@email.com | user@pm.me | foo | bar |
|
||||
| from | to | subject | body |
|
||||
| john.doe@email.com | user@[domain] | foo | bar |
|
||||
And IMAP client "1" sees the following messages in "All Mail":
|
||||
| from | to | subject | body |
|
||||
| john.doe@email.com | user@pm.me | foo | bar |
|
||||
| from | to | subject | body |
|
||||
| john.doe@email.com | user@[domain] | foo | bar |
|
||||
|
||||
Scenario: Creates draft
|
||||
When IMAP client "1" appends the following messages to "Drafts":
|
||||
| from | to | subject | body |
|
||||
| user@pm.me | john.doe@email.com | foo | bar |
|
||||
| from | to | subject | body |
|
||||
| user@[domain] | john.doe@email.com | foo | bar |
|
||||
Then it succeeds
|
||||
And IMAP client "1" eventually sees the following messages in "Drafts":
|
||||
| from | to | subject | body |
|
||||
| user@pm.me | john.doe@email.com | foo | bar |
|
||||
| from | to | subject | body |
|
||||
| user@[domain] | john.doe@email.com | foo | bar |
|
||||
# This fails now
|
||||
And IMAP client "1" eventually sees the following messages in "All Mail":
|
||||
| from | to | subject | body |
|
||||
| user@pm.me | john.doe@email.com | foo | bar |
|
||||
| from | to | subject | body |
|
||||
| user@[domain] | john.doe@email.com | foo | bar |
|
||||
|
||||
Scenario: Creates message sent from user's primary address
|
||||
When IMAP client "1" appends the following messages to "Sent":
|
||||
| from | to | subject | body |
|
||||
| user@pm.me | john.doe@email.com | foo | bar |
|
||||
| from | to | subject | body |
|
||||
| user@[domain] | john.doe@email.com | foo | bar |
|
||||
Then it succeeds
|
||||
And IMAP client "1" sees the following messages in "Sent":
|
||||
| from | to | subject | body |
|
||||
| user@pm.me | john.doe@email.com | foo | bar |
|
||||
| from | to | subject | body |
|
||||
| user@[domain] | john.doe@email.com | foo | bar |
|
||||
And IMAP client "1" sees the following messages in "All Mail":
|
||||
| from | to | subject | body |
|
||||
| user@pm.me | john.doe@email.com | foo | bar |
|
||||
| from | to | subject | body |
|
||||
| user@[domain] | john.doe@email.com | foo | bar |
|
||||
|
||||
Scenario: Creates message sent from user's secondary address
|
||||
When IMAP client "1" appends the following messages to "Sent":
|
||||
| from | to | subject | body |
|
||||
| alias@pm.me | john.doe@email.com | foo | bar |
|
||||
| from | to | subject | body |
|
||||
| alias@[domain] | john.doe@email.com | foo | bar |
|
||||
Then it succeeds
|
||||
And IMAP client "1" sees the following messages in "Sent":
|
||||
| from | to | subject | body |
|
||||
| alias@pm.me | john.doe@email.com | foo | bar |
|
||||
| from | to | subject | body |
|
||||
| alias@[domain] | john.doe@email.com | foo | bar |
|
||||
And IMAP client "1" sees the following messages in "All Mail":
|
||||
| from | to | subject | body |
|
||||
| alias@pm.me | john.doe@email.com | foo | bar |
|
||||
| from | to | subject | body |
|
||||
| alias@[domain] | john.doe@email.com | foo | bar |
|
||||
|
||||
Scenario: Imports an unrelated message to inbox
|
||||
When IMAP client "1" appends the following messages to "INBOX":
|
||||
| from | to | subject | body |
|
||||
| john.doe@email.com | john.doe2@pm.me | foo | bar |
|
||||
| from | to | subject | body |
|
||||
| john.doe@email.com | john.doe2@[domain] | foo | bar |
|
||||
Then it succeeds
|
||||
And IMAP client "1" sees the following messages in "INBOX":
|
||||
| from | to | subject | body |
|
||||
| john.doe@email.com | john.doe2@pm.me | foo | bar |
|
||||
| from | to | subject | body |
|
||||
| john.doe@email.com | john.doe2@[domain] | foo | bar |
|
||||
And IMAP client "1" sees the following messages in "All Mail":
|
||||
| from | to | subject | body |
|
||||
| john.doe@email.com | john.doe2@pm.me | foo | bar |
|
||||
| from | to | subject | body |
|
||||
| john.doe@email.com | john.doe2@[domain] | foo | bar |
|
||||
|
||||
Scenario: Imports an unrelated message to sent
|
||||
When IMAP client "1" appends the following messages to "Sent":
|
||||
| from | to | subject | body |
|
||||
| john.doe@email.com | john.doe2@pm.me | foo | bar |
|
||||
| from | to | subject | body |
|
||||
| john.doe@email.com | john.doe2@[domain] | foo | bar |
|
||||
Then it succeeds
|
||||
And IMAP client "1" sees the following messages in "Sent":
|
||||
| from | to | subject | body |
|
||||
| john.doe@email.com | john.doe2@pm.me | foo | bar |
|
||||
| from | to | subject | body |
|
||||
| john.doe@email.com | john.doe2@[domain] | foo | bar |
|
||||
And IMAP client "1" sees the following messages in "All Mail":
|
||||
| from | to | subject | body |
|
||||
| john.doe@email.com | john.doe2@pm.me | foo | bar |
|
||||
| from | to | subject | body |
|
||||
| john.doe@email.com | john.doe2@[domain] | foo | bar |
|
||||
|
||||
Reference in New Issue
Block a user