mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-21 17:46:48 +00:00
GODT-1433 Adding first integration test for drafts.
This commit is contained in:
@ -1,25 +1,18 @@
|
||||
Feature: IMAP operations with Drafts
|
||||
Background:
|
||||
Given there is connected user "user"
|
||||
And there are messages in mailbox "Drafts" for "user"
|
||||
| id | from | subject | body |
|
||||
| msg1 | Lionel Richie <lionel@richie.com> | RE: Hello, is it me you looking for? | Nope |
|
||||
And there is IMAP client logged in as "user"
|
||||
And there is IMAP client selected in "Drafts"
|
||||
And IMAP client imports message to "Drafts"
|
||||
"""
|
||||
To: Lionel Richie <lionel@richie.com>
|
||||
Subject: RE: Hello, is it me you looking for?
|
||||
|
||||
Nope.
|
||||
|
||||
"""
|
||||
And IMAP response is "OK"
|
||||
And API mailbox "<mailbox>" for "user" has 1 message
|
||||
|
||||
|
||||
Scenario: Draft subject updated on locally
|
||||
Scenario: Draft subject updated locally
|
||||
|
||||
Scenario: Draft recipient updated on locally
|
||||
Scenario: Draft recipient updated locally
|
||||
|
||||
Scenario: Draft body updated on locally
|
||||
Scenario: Draft body updated locally
|
||||
|
||||
@ignore-live
|
||||
Scenario: Draft subject updated on server side
|
||||
@ -29,4 +22,14 @@ Feature: IMAP operations with Drafts
|
||||
|
||||
@ignore-live
|
||||
Scenario: Draft body and size updated on server side
|
||||
When IMAP client fetches body of UID "1"
|
||||
Then IMAP response is "OK"
|
||||
Then IMAP response contains "Nope"
|
||||
Given the body of draft "msg1" for "user" has changed to "Yes I am"
|
||||
And the event loop of "user" loops once
|
||||
And mailbox "Drafts" for "user" has 1 messages
|
||||
When IMAP client fetches body of UID "2"
|
||||
Then IMAP response is "OK"
|
||||
Then IMAP response contains "Yes I am"
|
||||
Then IMAP response does not contain "Nope"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user