diff options
author | Joas Schilling <coding@schilljs.com> | 2023-02-27 06:42:47 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-02-27 07:28:15 +0100 |
commit | 3001507dc609c76db685689e890fda71c4eb2e61 (patch) | |
tree | 3492bc574bbb6c2a107d513359a94ec7a0794e68 /tests | |
parent | d30393d03263dbc890fe33e8600cb3fb185cf420 (diff) |
Fix message type of files shared from mobile clients
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/features/chat/file-share.feature | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/integration/features/chat/file-share.feature b/tests/integration/features/chat/file-share.feature index 86b5bf12b..d5eec25c3 100644 --- a/tests/integration/features/chat/file-share.feature +++ b/tests/integration/features/chat/file-share.feature @@ -12,6 +12,16 @@ Feature: chat/file-share | room | actorType | actorId | actorDisplayName | message | messageParameters | | public room | users | participant1 | participant1-displayname | {file} | "IGNORE" | + Scenario: Share a file with meta data to a chat (like the mobile clients do) + Given user "participant1" creates room "public room" (v4) + | roomType | 3 | + | roomName | room | + When user "participant1" shares "welcome.txt" with room "public room" + | talkMetaData | {"mimetype":"text/plain","messageType":""} | + Then user "participant1" sees the following messages in room "public room" with 200 + | room | actorType | actorId | actorDisplayName | message | messageParameters | + | public room | users | participant1 | participant1-displayname | {file} | "IGNORE" | + Scenario: Can not share a file without chat permission Given user "participant1" creates room "public room" (v4) | roomType | 3 | |