diff options
Diffstat (limited to 'tests/integration/features/chat/expire-date.feature')
-rw-r--r-- | tests/integration/features/chat/expire-date.feature | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/integration/features/chat/expire-date.feature b/tests/integration/features/chat/expire-date.feature index 24ceb297f..ae4fb0acf 100644 --- a/tests/integration/features/chat/expire-date.feature +++ b/tests/integration/features/chat/expire-date.feature @@ -4,20 +4,22 @@ Feature: room/expire-date Given user "participant2" exists Given user "participant3" exists - Scenario: Enable expire date and check after expire + Scenario: Enable message expiration and check after expire Given user "participant1" creates room "room" (v4) | roomType | 3 | | roomName | room | And user "participant1" adds user "participant2" to room "room" with 200 (v4) And user "participant1" sends message "Message 1" to room "room" with 201 - And user "participant1" set the expire interval to -1 of room "room" with 400 (v4) - And user "participant2" set the expire interval to 3 of room "room" with 403 (v4) - And user "participant3" set the expire interval to 3 of room "room" with 404 (v4) - And user "participant1" set the expire interval to 3 of room "room" with 200 (v4) + And user "participant1" set the message expiration to -1 of room "room" with 400 (v4) + And user "participant2" set the message expiration to 3 of room "room" with 403 (v4) + And user "participant3" set the message expiration to 3 of room "room" with 404 (v4) + And user "participant1" set the message expiration to 3 of room "room" with 200 (v4) And user "participant1" sends message "Message 2" to room "room" with 201 - And user "participant1" check if expire interval of room "room" is 3 (v4) + Then user "participant1" is participant of the following rooms (v4) + | id | type | messageExpiration | + | room | 3 | 3 | And wait for 3 seconds - And apply expire date job to room "room" + And apply message expiration job to room "room" Then user "participant1" sees the following messages in room "room" with 200 | room | actorType | actorId | actorDisplayName | message | messageParameters | parentMessage | | room | users | participant1 | participant1-displayname | Message 1 | [] | | |