diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2019-08-27 01:29:41 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2019-08-28 09:19:28 +0200 |
commit | 5a178aa461fa058130f424f151e8e7c5e17ffbb3 (patch) | |
tree | 9015b3458f517fa473e165af119aab6762c985a3 /tests/acceptance | |
parent | ee0e77f48f533f8ab9f0faa8eb181dd45124e3f5 (diff) |
Add acceptance tests for joining a password protected room as a user
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests/acceptance')
-rw-r--r-- | tests/acceptance/features/conversation-public.feature | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/acceptance/features/conversation-public.feature b/tests/acceptance/features/conversation-public.feature index 04fa07f7f..9a7a5b24e 100644 --- a/tests/acceptance/features/conversation-public.feature +++ b/tests/acceptance/features/conversation-public.feature @@ -33,6 +33,8 @@ 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 "abcdef" in public conversation Then 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 Scenario: join a public conversation protected by password with an invalid password Given I act as John @@ -47,3 +49,37 @@ 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 a public conversation protected by password with a valid 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 + When 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 + Then 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" + + Scenario: join a public conversation protected by password with an invalid 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 + When 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 "fedcba" in public conversation + Then I see that the current page is the Wrong password page for the public conversation link I wrote down |