diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2019-08-16 21:42:02 +0300 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2019-09-26 11:54:28 +0300 |
commit | cd17e48f0812e3ae41650aad1282cd55e1d7c630 (patch) | |
tree | a7aec81161f44bbaf5fdcf7cb1ce0a70af722310 /tests | |
parent | aaa8b84c318843eb0263e96d4dba5fa8af9df045 (diff) |
Add acceptance tests for mentioning users in the Files app
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/acceptance/features/app-files.feature | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/acceptance/features/app-files.feature b/tests/acceptance/features/app-files.feature index 702d1b235..894e18590 100644 --- a/tests/acceptance/features/app-files.feature +++ b/tests/acceptance/features/app-files.feature @@ -84,6 +84,51 @@ Feature: app-files + Scenario: mention a user that has not joined yet but has access to a file room + Given I act as John + And I am logged in as the admin + And I share "welcome.txt" with "user0" + And I see that the file is shared with "user0" + And I open the Chat tab in the details view of the Files app + And I see that the chat is shown in the Chat tab + And I act as Jane + And I am logged in + And I have opened the Talk app + # Wait until the "Talk updates" conversation is shown to ensure that the + # list is loaded before checking that there is no "welcome.txt" conversation + And I see that the "Talk updates ✅" conversation is shown in the list + And I see that the "welcome.txt" conversation is not shown in the list + When I act as John + And I type a new chat message with the text "Hello @" + And I choose the candidate mention for "user0" + And I send the current chat message + Then I see that the message 1 was sent by "admin" with the text "Hello user0" + And I see that the message 1 contains a formatted mention of "user0" + And I act as Jane + And I see that the "welcome.txt" conversation is shown in the list + + Scenario: mention all users when a user has not joined yet the file room + Given I act as John + And I am logged in as the admin + And I share "welcome.txt" with "user0" + And I see that the file is shared with "user0" + And I open the Chat tab in the details view of the Files app + And I see that the chat is shown in the Chat tab + When I type a new chat message with the text "Hello @" + And I choose the candidate mention for "welcome.txt" + And I send the current chat message + Then I see that the message 1 was sent by "admin" with the text "Hello welcome.txt" + And I see that the message 1 contains a formatted mention of all participants of "welcome.txt" + And I act as Jane + And I am logged in + And I have opened the Talk app + # Wait until the "Talk updates" conversation is shown to ensure that the + # list is loaded before checking that there is no "welcome.txt" conversation + And I see that the "Talk updates ✅" conversation is shown in the list + And I see that the "welcome.txt" conversation is not shown in the list + + + Scenario: chat in a shared file Given I act as John And I am logged in as the admin |