summaryrefslogtreecommitdiffstats
path: root/tests/integration
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2024-01-15 16:47:01 +0100
committerGitHub <noreply@github.com>2024-01-15 16:47:01 +0100
commit904727eb6b5f4efaca34b7ebebdb12cb6722c251 (patch)
tree7d29fa6c93ef1da7e62de04cc415a7a352c8e1ab /tests/integration
parent7d63753492e7917b6387ef0cf23ce290c67d84d5 (diff)
parentae7bc0278f48a635ab29ad27047734f9aed03d5b (diff)
Merge pull request #11367 from nextcloud/bugfix/11206/edit-and-delete-with-202
fix(chat): Also send a 202 when editing and deleting and a bot is ena…
Diffstat (limited to 'tests/integration')
-rw-r--r--tests/integration/features/chat-1/bots.feature16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/integration/features/chat-1/bots.feature b/tests/integration/features/chat-1/bots.feature
index 4e16e6757..3489a0a95 100644
--- a/tests/integration/features/chat-1/bots.feature
+++ b/tests/integration/features/chat-1/bots.feature
@@ -320,3 +320,19 @@ Feature: chat/bots
| reaction | πŸ‘ |
Then user "participant1" retrieve reactions "πŸ‘" of message "Message 1" in room "room1" with 200
| actorType | actorId | actorDisplayName | reaction |
+
+ Scenario: Editing and deleting messages returns a 202 status code with a bot
+ When user "participant1" creates room "room" (v4)
+ | roomType | 2 |
+ | roomName | room |
+ And user "participant1" sends message "Message 1" to room "room" with 201
+ Then user "participant1" edits message "Message 1" in room "room" to "Message 1 - Edit 1" with 200
+ And user "participant1" deletes message "Message 1 - Edit 1" from room "room" with 200
+ Given invoking occ with "talk:bot:install Bot Secret1234567890123456789012345678901234567890 https://localhost/bot1 --feature=webhook"
+ And the command was successful
+ And read bot ids from OCC
+ And invoking occ with "talk:bot:setup BOT(Bot) ROOM(room)"
+ And the command was successful
+ When user "participant1" sends message "Message 2" to room "room" with 201
+ Then user "participant1" edits message "Message 2" in room "room" to "Message 2 - Edit 2" with 202
+ And user "participant1" deletes message "Message 2 - Edit 2" from room "room" with 202