summaryrefslogtreecommitdiffstats
path: root/tests/integration/features/chat-1/edit-message.feature
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-04-29 17:32:21 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-05-02 11:44:29 +0000
commitf810292c470c4f13b51eb5608552d0bb00054722 (patch)
tree83a44a6dafbed404d29ff0477a785f40dc976c89 /tests/integration/features/chat-1/edit-message.feature
parentac0d5869c4a61b7308283715a7bd1f43765f36f2 (diff)
test(chat): Add a test that editing old messages is blocked
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/integration/features/chat-1/edit-message.feature')
-rw-r--r--tests/integration/features/chat-1/edit-message.feature5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/integration/features/chat-1/edit-message.feature b/tests/integration/features/chat-1/edit-message.feature
index 8d54e8a05..c6a1a7955 100644
--- a/tests/integration/features/chat-1/edit-message.feature
+++ b/tests/integration/features/chat-1/edit-message.feature
@@ -58,6 +58,11 @@ Feature: chat-1/edit-message
Then user "participant1" sees the following messages in room "room" with 200
| room | actorType | actorId | actorDisplayName | message | messageParameters | parentMessage | lastEditActorType | lastEditActorId | lastEditActorDisplayName |
| room | deleted_users | deleted_users | | Message 1 - Edit 2 | [] | | deleted_users | deleted_users | |
+ When aging messages 6 hours in room "room"
+ And user "participant1" edits message "Message 1 - Edit 1" in room "room" to "Message 1 - Edit 2" with 200
+ When aging messages 24 hours in room "room"
+ And user "participant1" edits message "Message 1 - Edit 2" in room "room" to "Message 1 - Edit Too old" with 400
+ | error | age |
Scenario: Editing a caption
Given user "participant1" creates room "room" (v4)