Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
1e37164
Add support for public shares to file rooms
danxuliu Jul 18, 2018
37f2f71
Add integration tests for files shared by link
danxuliu Aug 14, 2019
d1a3e69
Add integration tests for self-joined users in files shared by link
danxuliu Aug 14, 2019
f2e7806
Add self-joined users and guests to the candidate mentions in file rooms
danxuliu Aug 14, 2019
fc6d2a4
Add integration tests for mentions in a file shared by link
danxuliu Aug 14, 2019
6b04fb7
Fix avatar container height during calls
danxuliu Sep 16, 2019
094b9b3
Add support for Talk sidebar in public share pages
danxuliu Aug 15, 2019
18a1037
Add basic acceptance tests for the Talk sidebar in the public share page
danxuliu Aug 16, 2019
465059d
Add acceptance tests for Talk sidebar in public share page to Drone
danxuliu Aug 16, 2019
1521c5f
Add acceptance tests for registered users in the public share page
danxuliu Aug 16, 2019
f6ac589
Add acceptance tests for mentioning users in the Files app
danxuliu Aug 16, 2019
b8be6a7
Add acceptance tests for mentions in the public share page
danxuliu Aug 16, 2019
3361774
Add acceptance tests for chats in a file shared by link
danxuliu Aug 16, 2019
bab3557
Add acceptance tests for chats in a file shared by link with a password
danxuliu Aug 16, 2019
744de08
Correctly check if the share has a password and if it was entered cor…
nickvergessen Aug 16, 2019
2f58186
Add integration tests for getting the room for link share with password
danxuliu Aug 17, 2019
6b0a0dc
Do not add system message for self joined users to file rooms
danxuliu Aug 19, 2019
ad37a86
Add integration tests for the "user_added" system message
danxuliu Aug 19, 2019
2f12dc9
Add wrapper around "OC.getCurrentUser()" to be able to override the user
danxuliu Sep 25, 2019
4b9a47a
Override the current user when getting the room for a public share page
danxuliu Sep 25, 2019
68797f3
Fix guest avatars in public share page
danxuliu Sep 25, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add acceptance tests for chats in a file shared by link with a password
Signed-off-by: Daniel Calviño Sánchez <[email protected]>
  • Loading branch information
danxuliu committed Sep 27, 2019
commit bab35572d9aeed84243d074f5df64ce0125df9b9
24 changes: 24 additions & 0 deletions tests/acceptance/features/app-files.feature
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,27 @@ Feature: app-files
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!"



Scenario: chat in a file shared by link with a password
Given I act as John
And I am logged in
And I share the link for "welcome.txt" protected by the password "abcdef"
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 Authenticate page for the shared link I wrote down
And I authenticate with password "abcdef"
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!"
43 changes: 43 additions & 0 deletions tests/acceptance/features/public-share.feature
Original file line number Diff line number Diff line change
Expand Up @@ -244,3 +244,46 @@ Feature: public share
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!"



Scenario: chat in the public share page of a link share with a password
Given I act as John
And I am logged in
And I share the link for "welcome.txt" protected by the password "abcdef"
And I write down the shared link
And I visit the shared link I wrote down
# Even the owner needs to authenticate when accessing the shared link
And I see that the current page is the Authenticate page for the shared link I wrote down
And I authenticate with password "abcdef"
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 Authenticate page for the shared link I wrote down
And I authenticate with password "abcdef"
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 Authenticate page for the shared link I wrote down
And I authenticate with password "abcdef"
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!"
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 "Guest" 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 "Guest" 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 "Guest" with the text "Hey!"