|
|
|
@ -15,7 +15,7 @@ Feature: chat-2/poll |
|
|
|
| maxVotes | unlimited | |
|
|
|
Then user "participant1" sees the following messages in room "room" with 200 |
|
|
|
| room | actorType | actorId | actorDisplayName | message | messageParameters | |
|
|
|
| room | users | participant1 | participant1-displayname | {object} | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"object":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | users | participant1 | participant1-displayname | {object} | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"},"object":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
Then user "participant1" sees poll "What is the question?" in room "room" with 200 |
|
|
|
| id | POLL_ID(What is the question?) | |
|
|
|
| question | What is the question? | |
|
|
|
@ -98,10 +98,10 @@ Feature: chat-2/poll |
|
|
|
| details | [{"actorType":"users","actorId":"participant1","actorDisplayName":"participant1-displayname","optionId":1}] | |
|
|
|
Then user "participant1" sees the following system messages in room "room" with 200 (v1) |
|
|
|
| room | actorType | actorId | systemMessage | message | silent | messageParameters | |
|
|
|
| room | users | participant1 | poll_closed | You ended the poll {poll} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | users | participant1 | poll_closed | You ended the poll {poll} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"},"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | guests | system | poll_voted | Someone voted on the poll {poll} | !ISSET | {"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | users | participant1 | user_added | You added {user} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"user":{"type":"user","id":"participant2","name":"participant2-displayname"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
| room | users | participant1 | user_added | You added {user} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"},"user":{"type":"user","id":"participant2","name":"participant2-displayname","mention-id":"participant2"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} | |
|
|
|
|
|
|
|
Scenario: Participants can update their votes but only while open |
|
|
|
Given user "participant1" creates room "room" (v4) |
|
|
|
@ -155,10 +155,10 @@ Feature: chat-2/poll |
|
|
|
Then user "participant1" votes for options "[0]" on poll "What is the question?" in room "room" with 400 |
|
|
|
Then user "participant1" sees the following system messages in room "room" with 200 (v1) |
|
|
|
| room | actorType | actorId | systemMessage | message | silent | messageParameters | |
|
|
|
| room | users | participant1 | poll_closed | You ended the poll {poll} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | users | participant1 | poll_closed | You ended the poll {poll} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"},"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | guests | system | poll_voted | Someone voted on the poll {poll} | !ISSET | {"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | guests | system | poll_voted | Someone voted on the poll {poll} | !ISSET | {"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} | |
|
|
|
|
|
|
|
Scenario: Participants can only vote for valid options |
|
|
|
Given user "participant1" creates room "room" (v4) |
|
|
|
@ -173,7 +173,7 @@ Feature: chat-2/poll |
|
|
|
Then user "participant1" votes for options "[2]" on poll "What is the question?" in room "room" with 400 |
|
|
|
Then user "participant1" sees the following system messages in room "room" with 200 (v1) |
|
|
|
| room | actorType | actorId | systemMessage | message | silent | messageParameters | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} | |
|
|
|
|
|
|
|
Scenario: Participants can not exceed the maxVotes |
|
|
|
Given user "participant1" creates room "room" (v4) |
|
|
|
@ -187,7 +187,7 @@ Feature: chat-2/poll |
|
|
|
Then user "participant1" votes for options "[0,1]" on poll "What is the question?" in room "room" with 400 |
|
|
|
Then user "participant1" sees the following system messages in room "room" with 200 (v1) |
|
|
|
| room | actorType | actorId | systemMessage | message | silent | messageParameters | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} | |
|
|
|
|
|
|
|
Scenario: Participants can vote for multiple options |
|
|
|
Given user "participant1" creates room "room" (v4) |
|
|
|
@ -214,7 +214,7 @@ Feature: chat-2/poll |
|
|
|
Then user "participant1" sees the following system messages in room "room" with 200 (v1) |
|
|
|
| room | actorType | actorId | systemMessage | message | silent | messageParameters | |
|
|
|
| room | guests | system | poll_voted | Someone voted on the poll {poll} | !ISSET | {"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} | |
|
|
|
|
|
|
|
Scenario: Participants can not vote for the same option multiple times |
|
|
|
Given user "participant1" creates room "room" (v4) |
|
|
|
@ -228,7 +228,7 @@ Feature: chat-2/poll |
|
|
|
Then user "participant1" votes for options "[1,1]" on poll "What is the question?" in room "room" with 400 |
|
|
|
Then user "participant1" sees the following system messages in room "room" with 200 (v1) |
|
|
|
| room | actorType | actorId | systemMessage | message | silent | messageParameters | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} | |
|
|
|
|
|
|
|
Scenario: Non-moderators can also create polls and close it themselves |
|
|
|
Given user "participant1" creates room "room" (v4) |
|
|
|
@ -242,7 +242,7 @@ Feature: chat-2/poll |
|
|
|
| maxVotes | unlimited | |
|
|
|
Then user "participant1" sees the following messages in room "room" with 200 |
|
|
|
| room | actorType | actorId | actorDisplayName | message | messageParameters | |
|
|
|
| room | users | participant2 | participant2-displayname | {object} | {"actor":{"type":"user","id":"participant2","name":"participant2-displayname"},"object":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | users | participant2 | participant2-displayname | {object} | {"actor":{"type":"user","id":"participant2","name":"participant2-displayname","mention-id":"participant2"},"object":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
Then user "participant2" closes poll "What is the question?" in room "room" with 200 |
|
|
|
| id | POLL_ID(What is the question?) | |
|
|
|
| question | What is the question? | |
|
|
|
@ -259,9 +259,9 @@ Feature: chat-2/poll |
|
|
|
| details | {} | |
|
|
|
Then user "participant1" sees the following system messages in room "room" with 200 (v1) |
|
|
|
| room | actorType | actorId | systemMessage | message | silent | messageParameters | |
|
|
|
| room | users | participant2 | poll_closed | {actor} ended the poll {poll} | !ISSET | {"actor":{"type":"user","id":"participant2","name":"participant2-displayname"},"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | users | participant1 | user_added | You added {user} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"user":{"type":"user","id":"participant2","name":"participant2-displayname"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
| room | users | participant2 | poll_closed | {actor} ended the poll {poll} | !ISSET | {"actor":{"type":"user","id":"participant2","name":"participant2-displayname","mention-id":"participant2"},"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | users | participant1 | user_added | You added {user} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"},"user":{"type":"user","id":"participant2","name":"participant2-displayname","mention-id":"participant2"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} | |
|
|
|
|
|
|
|
Scenario: Non-moderators can not create polls without chat permission |
|
|
|
Given user "participant1" creates room "room" (v4) |
|
|
|
@ -302,9 +302,9 @@ Feature: chat-2/poll |
|
|
|
| details | {} | |
|
|
|
Then user "participant1" sees the following system messages in room "room" with 200 (v1) |
|
|
|
| room | actorType | actorId | systemMessage | message | silent | messageParameters | |
|
|
|
| room | users | participant1 | poll_closed | You ended the poll {poll} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | users | participant1 | user_added | You added {user} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"user":{"type":"user","id":"participant2","name":"participant2-displayname"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
| room | users | participant1 | poll_closed | You ended the poll {poll} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"},"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | users | participant1 | user_added | You added {user} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"},"user":{"type":"user","id":"participant2","name":"participant2-displayname","mention-id":"participant2"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} | |
|
|
|
|
|
|
|
Scenario: There are system messages for opening, voting and closing on public polls |
|
|
|
Given user "participant1" creates room "room" (v4) |
|
|
|
@ -358,14 +358,14 @@ Feature: chat-2/poll |
|
|
|
| details | [{"actorType":"users","actorId":"participant1","actorDisplayName":"participant1-displayname","optionId":0},{"actorType":"users","actorId":"participant2","actorDisplayName":"participant2-displayname","optionId":1}] | |
|
|
|
Then user "participant1" sees the following system messages in room "room" with 200 (v1) |
|
|
|
| room | actorType | actorId | systemMessage | message | silent | messageParameters | |
|
|
|
| room | users | participant1 | poll_closed | You ended the poll {poll} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | users | participant1 | poll_closed | You ended the poll {poll} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"},"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | guests | system | poll_voted | Someone voted on the poll {poll} | !ISSET | {"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | guests | system | poll_voted | Someone voted on the poll {poll} | !ISSET | {"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | users | participant1 | user_added | You added {user} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"user":{"type":"user","id":"participant2","name":"participant2-displayname"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
| room | users | participant1 | user_added | You added {user} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"},"user":{"type":"user","id":"participant2","name":"participant2-displayname","mention-id":"participant2"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} | |
|
|
|
Then user "participant1" sees the following messages in room "room" with 200 (v1) |
|
|
|
| room | actorType | actorId | actorDisplayName | message | messageParameters | |
|
|
|
| room | users | participant1 | participant1-displayname | {object} | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"object":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | users | participant1 | participant1-displayname | {object} | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"},"object":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
|
|
|
|
Scenario: There are only system messages for opening and closing on hidden polls |
|
|
|
Given user "participant1" creates room "room" (v4) |
|
|
|
@ -424,7 +424,7 @@ Feature: chat-2/poll |
|
|
|
| room | users | participant1 | participant1-displayname | conversation_created | |
|
|
|
Then user "participant1" sees the following messages in room "room" with 200 (v1) |
|
|
|
| room | actorType | actorId | actorDisplayName | message | messageParameters | |
|
|
|
| room | users | participant1 | participant1-displayname | {object} | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"object":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | users | participant1 | participant1-displayname | {object} | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"},"object":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
|
|
|
|
Scenario: Non-moderators can not close polls of others |
|
|
|
Given user "participant1" creates room "room" (v4) |
|
|
|
@ -450,7 +450,7 @@ Feature: chat-2/poll |
|
|
|
| maxVotes | unlimited | |
|
|
|
Then user "participant1" sees the following messages in room "room" with 200 |
|
|
|
| room | actorType | actorId | actorDisplayName | message | messageParameters | |
|
|
|
| room | users | participant1 | participant1-displayname | {object} | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"object":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | users | participant1 | participant1-displayname | {object} | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"},"object":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
Then user "participant2" votes for options "[1]" on poll "What is the question?" in room "room" with 200 |
|
|
|
| id | POLL_ID(What is the question?) | |
|
|
|
| question | What is the question? | |
|
|
|
@ -505,9 +505,9 @@ Feature: chat-2/poll |
|
|
|
| votedSelf | not voted | |
|
|
|
Then user "participant1" sees the following system messages in room "room" with 200 |
|
|
|
| room | actorType | actorId | systemMessage | message | silent | messageParameters | |
|
|
|
| room | users | participant1 | poll_closed | You ended the poll {poll} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | users | participant1 | user_added | You added {user} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"user":{"type":"user","id":"participant2","name":"participant2-displayname"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
| room | users | participant1 | poll_closed | You ended the poll {poll} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"},"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | users | participant1 | user_added | You added {user} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"},"user":{"type":"user","id":"participant2","name":"participant2-displayname","mention-id":"participant2"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} | |
|
|
|
|
|
|
|
Scenario: Number of voters and votes are restricted to the very same poll |
|
|
|
Given user "participant1" creates room "room" (v4) |
|
|
|
@ -567,8 +567,8 @@ Feature: chat-2/poll |
|
|
|
| room | actorType | actorId | systemMessage | message | silent | messageParameters | |
|
|
|
| room | guests | system | poll_voted | Someone voted on the poll {poll} | !ISSET | {"poll":{"type":"talk-poll","id":POLL_ID(Another one ...),"name":"Another one ..."}} | |
|
|
|
| room | guests | system | poll_voted | Someone voted on the poll {poll} | !ISSET | {"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | users | participant1 | user_added | You added {user} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"user":{"type":"user","id":"participant2","name":"participant2-displayname"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
| room | users | participant1 | user_added | You added {user} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"},"user":{"type":"user","id":"participant2","name":"participant2-displayname","mention-id":"participant2"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} | |
|
|
|
|
|
|
|
Scenario: Remove all votes |
|
|
|
Given user "participant1" creates room "room" (v4) |
|
|
|
@ -623,8 +623,8 @@ Feature: chat-2/poll |
|
|
|
| room | actorType | actorId | systemMessage | message | silent | messageParameters | |
|
|
|
| room | guests | system | poll_voted | Someone voted on the poll {poll} | !ISSET | {"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | guests | system | poll_voted | Someone voted on the poll {poll} | !ISSET | {"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | users | participant1 | user_added | You added {user} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"user":{"type":"user","id":"participant2","name":"participant2-displayname"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
| room | users | participant1 | user_added | You added {user} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"},"user":{"type":"user","id":"participant2","name":"participant2-displayname","mention-id":"participant2"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} | |
|
|
|
|
|
|
|
Scenario: Empty question and options |
|
|
|
Given user "participant1" creates room "room" (v4) |
|
|
|
@ -708,8 +708,8 @@ Feature: chat-2/poll |
|
|
|
| room | users | admin | user_removed | {actor} removed {user} | !ISSET | "IGNORE" | |
|
|
|
| room | deleted_users | deleted_users | poll_closed | {actor} ended the poll {poll} | !ISSET | {"actor":{"type":"highlight","id":"deleted_users","name":"Deleted user"},"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | guests | system | poll_voted | Someone voted on the poll {poll} | !ISSET | {"poll":{"type":"talk-poll","id":POLL_ID(What is the question?),"name":"What is the question?"}} | |
|
|
|
| room | users | participant1 | user_added | You added {user} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"user":{"type":"highlight","id":"deleted_users","name":"Deleted user"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
| room | users | participant1 | user_added | You added {user} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"},"user":{"type":"highlight","id":"deleted_users","name":"Deleted user"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} | |
|
|
|
|
|
|
|
Scenario: Deleting the poll message removes all details |
|
|
|
Given user "participant1" creates room "room" (v4) |
|
|
|
@ -736,9 +736,9 @@ Feature: chat-2/poll |
|
|
|
| room | users | participant2 | participant2-displayname | Message deleted by you | "IGNORE" | |
|
|
|
Then user "participant1" sees the following system messages in room "room" with 200 (v1) |
|
|
|
| room | actorType | actorId | systemMessage | message | silent | messageParameters | |
|
|
|
| room | users | participant1 | message_deleted | You deleted a message | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
| room | users | participant1 | user_added | You added {user} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"user":{"type":"user","id":"participant2","name":"participant2-displayname"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
| room | users | participant1 | message_deleted | You deleted a message | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} | |
|
|
|
| room | users | participant1 | user_added | You added {user} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"},"user":{"type":"user","id":"participant2","name":"participant2-displayname","mention-id":"participant2"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} | |
|
|
|
|
|
|
|
Scenario: Deleting a closed poll message removes also the close message |
|
|
|
Given user "participant1" creates room "room" (v4) |
|
|
|
@ -780,10 +780,10 @@ Feature: chat-2/poll |
|
|
|
| room | users | participant2 | participant2-displayname | Message deleted by you | "IGNORE" | |
|
|
|
Then user "participant1" sees the following system messages in room "room" with 200 (v1) |
|
|
|
| room | actorType | actorId | systemMessage | message | silent | messageParameters | |
|
|
|
| room | users | participant1 | message_deleted | You deleted a message | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
| room | users | participant1 | message_deleted | You deleted a message | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
| room | users | participant1 | user_added | You added {user} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"user":{"type":"user","id":"participant2","name":"participant2-displayname"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
| room | users | participant1 | message_deleted | You deleted a message | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} | |
|
|
|
| room | users | participant1 | message_deleted | You deleted a message | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} | |
|
|
|
| room | users | participant1 | user_added | You added {user} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"},"user":{"type":"user","id":"participant2","name":"participant2-displayname","mention-id":"participant2"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} | |
|
|
|
|
|
|
|
Scenario: Deleting the chat history also deletes polls |
|
|
|
Given user "participant1" creates room "room" (v4) |
|
|
|
@ -804,7 +804,7 @@ Feature: chat-2/poll |
|
|
|
And user "participant1" sees the following messages in room "room" with 200 (v1) |
|
|
|
Then user "participant1" sees the following system messages in room "room" with 200 (v1) |
|
|
|
| room | actorType | actorId | systemMessage | message | silent | messageParameters | |
|
|
|
| room | users | participant1 | history_cleared | You cleared the history of the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
| room | users | participant1 | history_cleared | You cleared the history of the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} | |
|
|
|
|
|
|
|
Scenario: Drafts |
|
|
|
Given user "participant1" creates room "room" (v4) |
|
|
|
@ -835,7 +835,7 @@ Feature: chat-2/poll |
|
|
|
| POLL_ID(Shall we draft 2 questions?) | Shall we draft 2 questions? | ["Yes","No"] | users | participant1 | participant1-displayname | draft | hidden | 1 | |
|
|
|
Then user "participant1" sees the following messages in room "room" with 200 |
|
|
|
| room | actorType | actorId | actorDisplayName | message | messageParameters | |
|
|
|
| room | users | participant1 | participant1-displayname | {object} | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"object":{"type":"talk-poll","id":POLL_ID(This is not a draft!),"name":"This is not a draft!"}} | |
|
|
|
| room | users | participant1 | participant1-displayname | {object} | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"},"object":{"type":"talk-poll","id":POLL_ID(This is not a draft!),"name":"This is not a draft!"}} | |
|
|
|
Then user "participant1" sees poll "What is the question?" in room "room" with 200 |
|
|
|
| id | POLL_ID(What is the question?) | |
|
|
|
| question | What is the question? | |
|
|
|
@ -857,12 +857,12 @@ Feature: chat-2/poll |
|
|
|
Then user "participant2" sees poll "What is the question?" in room "room" with 404 |
|
|
|
Then user "participant1" sees the following system messages in room "room" with 200 (v1) |
|
|
|
| room | actorType | actorId | systemMessage | message | silent | messageParameters | |
|
|
|
| room | users | participant1 | user_added | You added {user} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"user":{"type":"user","id":"participant2","name":"participant2-displayname"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
| room | users | participant1 | user_added | You added {user} | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"},"user":{"type":"user","id":"participant2","name":"participant2-displayname","mention-id":"participant2"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} | |
|
|
|
Then user "participant2" sees the following system messages in room "room" with 200 (v1) |
|
|
|
| room | actorType | actorId | systemMessage | message | silent | messageParameters | |
|
|
|
| room | users | participant1 | user_added | {actor} added you | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"user":{"type":"user","id":"participant2","name":"participant2-displayname"}} | |
|
|
|
| room | users | participant1 | conversation_created | {actor} created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
| room | users | participant1 | user_added | {actor} added you | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"},"user":{"type":"user","id":"participant2","name":"participant2-displayname","mention-id":"participant2"}} | |
|
|
|
| room | users | participant1 | conversation_created | {actor} created the conversation | !ISSET | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} | |
|
|
|
|
|
|
|
Scenario: Update a Draft Poll |
|
|
|
Given user "participant1" creates room "room" (v4) |
|
|
|
|