diff options
author | Vitor Mattos <vitor@php.rio> | 2022-07-22 09:24:08 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2022-07-22 09:24:08 -0300 |
commit | 19d57f5ab6b6338b2e19374e036926a546181c2d (patch) | |
tree | 9beeb90a48724c9e8baaed6c21ee629a9a6b2758 /tests | |
parent | c36cab3f5540ae6550480fb5d587c12e1e7a1bb6 (diff) |
Expire shared link when expire message
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/features/chat/message-expiration.feature | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/integration/features/chat/message-expiration.feature b/tests/integration/features/chat/message-expiration.feature index 00fbbf8c5..93f56933c 100644 --- a/tests/integration/features/chat/message-expiration.feature +++ b/tests/integration/features/chat/message-expiration.feature @@ -23,3 +23,19 @@ Feature: room/message-expiration 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 | [] | | + + Scenario: Expire shared file + Given user "participant1" creates room "room2" (v4) + | roomType | 3 | + | roomName | room2 | + And user "participant1" set the message expiration to 3 of room "room2" with 200 (v4) + When user "participant1" shares "welcome.txt" with room "room2" + And user "participant1" sees the following messages in room "room2" with 200 + | room | actorType | actorId | actorDisplayName | message | messageParameters | + | room2 | users | participant1 | participant1-displayname | {file} | "IGNORE" | + And wait for 3 seconds + And apply message expiration job manually + Then user "participant1" sees the following messages in room "room2" with 200 + | room | actorType | actorId | actorDisplayName | message | messageParameters | parentMessage | + And user "participant1" gets last share + And the OCS status code should be 404 |