summaryrefslogtreecommitdiffstats
path: root/tests/acceptance/features/app-files.feature
diff options
context:
space:
mode:
Diffstat (limited to 'tests/acceptance/features/app-files.feature')
-rw-r--r--tests/acceptance/features/app-files.feature31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/acceptance/features/app-files.feature b/tests/acceptance/features/app-files.feature
new file mode 100644
index 00000000000..7adc618e02e
--- /dev/null
+++ b/tests/acceptance/features/app-files.feature
@@ -0,0 +1,31 @@
+Feature: app-files
+
+ Scenario: set a password to a shared link
+ Given I am logged in
+ And I share the link for "welcome.txt"
+ When I protect the shared link with the password "abcdef"
+ Then I see that the working icon for password protect is shown
+ And I see that the working icon for password protect is eventually not shown
+
+ Scenario: access a shared link protected by password with a valid 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
+ When 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"
+ Then I see that the current page is the shared link I wrote down
+ And I see that the shared file preview shows the text "Welcome to your Nextcloud account!"
+
+ Scenario: access a shared link protected by password with an invalid 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
+ When I act as Jane
+ And I visit the shared link I wrote down
+ And I authenticate with password "fedcba"
+ Then I see that the current page is the Authenticate page for the shared link I wrote down
+ And I see that a wrong password for the shared file message is shown