summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-08-02 09:39:18 +0200
committerJoas Schilling <coding@schilljs.com>2022-08-02 09:39:18 +0200
commitd193329f513765a025d75c0bf12fc4da4d98acb8 (patch)
tree3e9155b70f7a7e0f5e266afa21429e75818f6498 /tests
parentc493a59e8973593277146254a597860fc94e6e70 (diff)
Return 400 on empty questions and options
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/features/chat/poll.feature15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/integration/features/chat/poll.feature b/tests/integration/features/chat/poll.feature
index 2b64180ce..46a90eb3a 100644
--- a/tests/integration/features/chat/poll.feature
+++ b/tests/integration/features/chat/poll.feature
@@ -573,3 +573,18 @@ Feature: chat/poll
| actorDisplayName | participant1-displayname |
| status | open |
| votedSelf | [] |
+
+ Scenario: Empty question and options
+ Given user "participant1" creates room "room" (v4)
+ | roomType | 2 |
+ | roomName | room |
+ When user "participant1" creates a poll in room "room" with 400
+ | question | Also we need at least 2 non empty options |
+ | options | ["\t"," ","a"] |
+ | resultMode | public |
+ | maxVotes | unlimited |
+ When user "participant1" creates a poll in room "room" with 400
+ | question | |
+ | options | ["Empty question is not","allowed either"] |
+ | resultMode | public |
+ | maxVotes | unlimited |