From c9c80fd861746e88c2145c06fe32b947a61f04b2 Mon Sep 17 00:00:00 2001 From: James Houlahan Date: Thu, 19 Jan 2023 14:37:41 +0100 Subject: [PATCH] Other(test): Make All Mail copy test more robust --- tests/features/imap/message/copy.feature | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/features/imap/message/copy.feature b/tests/features/imap/message/copy.feature index 74acf442..3c97b3ef 100644 --- a/tests/features/imap/message/copy.feature +++ b/tests/features/imap/message/copy.feature @@ -66,20 +66,20 @@ Feature: IMAP copy messages And IMAP client "1" eventually sees 0 messages in "Sent" Scenario: Copy message from All mail moves from the original location - Then IMAP client "1" sees the following messages in "INBOX": + Given IMAP client "1" sees the following messages in "INBOX": | from | to | subject | unread | | john.doe@mail.com | [user:user]@[domain] | foo | false | | jane.doe@mail.com | name@[domain] | bar | true | When IMAP client "1" copies the message with subject "foo" from "All Mail" to "Folders/mbox" And it succeeds - Then IMAP client "1" sees the following messages in "INBOX": - | from | to | subject | unread | - | jane.doe@mail.com | name@[domain] | bar | true | - Then IMAP client "1" sees the following messages in "All Mail": + Then IMAP client "1" eventually sees the following messages in "INBOX": + | from | to | subject | unread | + | jane.doe@mail.com | name@[domain] | bar | true | + And IMAP client "1" eventually sees the following messages in "All Mail": | from | to | subject | unread | | john.doe@mail.com | [user:user]@[domain] | foo | false | | jane.doe@mail.com | name@[domain] | bar | true | - Then IMAP client "1" sees the following messages in "Folders/mbox": + And IMAP client "1" eventually sees the following messages in "Folders/mbox": | from | to | subject | unread | | john.doe@mail.com | [user:user]@[domain] | foo | false |