summaryrefslogtreecommitdiffstats
path: root/tests/acceptance
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2019-08-27 19:15:33 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2019-08-28 09:19:28 +0200
commitbff5d29326aa858f056b66934c50430cce74e923 (patch)
treef276aeb2b3379aa22d955544b2eaef44999a0f76 /tests/acceptance
parent5a178aa461fa058130f424f151e8e7c5e17ffbb3 (diff)
Add acceptance tests for joining again a password protected room
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests/acceptance')
-rw-r--r--tests/acceptance/features/conversation-public.feature41
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/acceptance/features/conversation-public.feature b/tests/acceptance/features/conversation-public.feature
index 9a7a5b24e..9e9f38453 100644
--- a/tests/acceptance/features/conversation-public.feature
+++ b/tests/acceptance/features/conversation-public.feature
@@ -50,6 +50,25 @@ Feature: conversation
And I authenticate with password "fedcba" in public conversation
Then I see that the current page is the Wrong password page for the public conversation link I wrote down
+ Scenario: join again a public conversation protected by password
+ Given I act as John
+ And I am logged in
+ And I have opened the Talk app
+ And I create a public conversation named "Public"
+ And I protect the conversation with the password "abcdef"
+ And I see that the conversation is password protected
+ And I write down the public conversation link
+ And I act as Jane
+ And I visit the public conversation link I wrote down
+ And I see that the current page is the Authenticate page for the public conversation link I wrote down
+ And I authenticate with password "abcdef" in public conversation
+ And I see that the current page is the public conversation link I wrote down
+ And I see that the chat is shown in the main view
+ And I see that the sidebar is open
+ When I visit the Home page
+ And I visit the public conversation link I wrote down
+ Then I see that the current page is the Authenticate page for the public conversation link I wrote down
+
Scenario: join a public conversation protected by password with a valid password as a user
Given I act as John
And I am logged in
@@ -83,3 +102,25 @@ Feature: conversation
And I see that the current page is the Authenticate page for the public conversation link I wrote down
And I authenticate with password "fedcba" in public conversation
Then I see that the current page is the Wrong password page for the public conversation link I wrote down
+
+ Scenario: join again a public conversation protected by password as a user
+ Given I act as John
+ And I am logged in
+ And I have opened the Talk app
+ And I create a public conversation named "Public"
+ And I protect the conversation with the password "abcdef"
+ And I see that the conversation is password protected
+ And I write down the public conversation link
+ And I act as Jane
+ And I am logged in as the admin
+ And I visit the public conversation link I wrote down
+ And I see that the current page is the Authenticate page for the public conversation link I wrote down
+ And I authenticate with password "abcdef" in public conversation
+ And I see that the current page is the public conversation link I wrote down
+ And I see that the "Public" conversation is active
+ And I see that the chat is shown in the main view
+ And I see that the sidebar is open
+ And I see that the number of participants shown in the list is "2"
+ When I visit the Home page
+ And I visit the public conversation link I wrote down
+ Then I see that the current page is the Authenticate page for the public conversation link I wrote down