Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2019-08-16 22:01:06 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2019-09-26 11:54:28 +0300
commit7f731bda5489e95b3d499bccfa3f025ba3d403ba (patch)
tree3079370bdd3c1a6d3a2d3c3ac64aa3ac63ea36f8 /tests
parentc03ab408822095a7c358a08bbc3686a86f0bfad2 (diff)
Add acceptance tests for chats in a file shared by link
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/acceptance/features/app-files.feature20
-rw-r--r--tests/acceptance/features/public-share.feature37
2 files changed, 57 insertions, 0 deletions
diff --git a/tests/acceptance/features/app-files.feature b/tests/acceptance/features/app-files.feature
index 894e18590..73d56f234 100644
--- a/tests/acceptance/features/app-files.feature
+++ b/tests/acceptance/features/app-files.feature
@@ -201,3 +201,23 @@ Feature: app-files
# And I see that the message 1 was sent by "admin" with the text "Hello"
# And I see that the message 2 was sent by "user0" with the text "Hi!"
# And I see that the message 3 was sent by "user1" with the text "Hey!"
+
+ Scenario: chat in a file shared by link
+ Given I act as John
+ And I am logged in
+ And I share the link for "welcome.txt"
+ And I write down the shared link
+ And I open the Chat tab in the details view of the Files app
+ And I act as Jane
+ And I visit the shared link I wrote down
+ And I see that the current page is the shared link I wrote down
+ When I act as John
+ And I send a new chat message with the text "Hello"
+ And I act as Jane
+ And I see that the message 1 was sent by "user0" with the text "Hello"
+ And I send a new chat message with the text "Hi!"
+ Then I see that the message 1 was sent by "user0" with the text "Hello"
+ And I see that the message 2 was sent by "Guest" with the text "Hi!"
+ And I act as John
+ And I see that the message 1 was sent by "user0" with the text "Hello"
+ And I see that the message 2 was sent by "Guest" with the text "Hi!"
diff --git a/tests/acceptance/features/public-share.feature b/tests/acceptance/features/public-share.feature
index a88dbf70d..1b51b4162 100644
--- a/tests/acceptance/features/public-share.feature
+++ b/tests/acceptance/features/public-share.feature
@@ -207,3 +207,40 @@ Feature: public share
# 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 the public share page of a link share
+ Given I act as John
+ And I am logged in
+ And I share the link for "welcome.txt"
+ And I write down the shared link
+ And I visit the shared link I wrote down
+ And I see that the current page is the shared link I wrote down
+ And I act as Jane
+ And I am logged in as the admin
+ And I visit the shared link I wrote down
+ And I see that the current page is the shared link I wrote down
+ And I act as Jim
+ And I visit the shared link I wrote down
+ And I see that the current page is the shared link I wrote down
+ And I set my guest name to "Rob"
+ When I act as John
+ And I send a new chat message with the text "Hello"
+ And I act as Jane
+ And I see that the message 1 was sent by "user0" with the text "Hello"
+ And I send a new chat message with the text "Hi!"
+ And I act as Jim
+ And I see that the message 2 was sent by "admin" with the text "Hi!"
+ And I send a new chat message with the text "Hey!"
+ Then I see that the message 1 was sent by "user0" with the text "Hello"
+ And I see that the message 2 was sent by "admin" with the text "Hi!"
+ And I see that the message 3 was sent by "Rob" with the text "Hey!"
+ And I act as Jane
+ And I see that the message 1 was sent by "user0" with the text "Hello"
+ And I see that the message 2 was sent by "admin" with the text "Hi!"
+ And I see that the message 3 was sent by "Rob" with the text "Hey!"
+ And I act as John
+ And I see that the message 1 was sent by "user0" with the text "Hello"
+ And I see that the message 2 was sent by "admin" with the text "Hi!"
+ And I see that the message 3 was sent by "Rob" with the text "Hey!"