summaryrefslogtreecommitdiffstats
path: root/tests/acceptance/features/app-files.feature
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2017-04-22 18:20:32 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2017-04-25 17:45:37 +0200
commit16b4eecb05c354b051b9aaa3e4c3ebb988140ed2 (patch)
treedb1cb08694e1ff4e2928063f80c48bc2d30d006b /tests/acceptance/features/app-files.feature
parent8ef25a7628d44465d4777686227407f9a2067700 (diff)
downloadnextcloud-server-16b4eecb05c354b051b9aaa3e4c3ebb988140ed2.tar.gz
nextcloud-server-16b4eecb05c354b051b9aaa3e4c3ebb988140ed2.zip
Add acceptance tests for closing details view in Files app
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests/acceptance/features/app-files.feature')
-rw-r--r--tests/acceptance/features/app-files.feature23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/acceptance/features/app-files.feature b/tests/acceptance/features/app-files.feature
index 7adc618e02e..6779b37e145 100644
--- a/tests/acceptance/features/app-files.feature
+++ b/tests/acceptance/features/app-files.feature
@@ -1,5 +1,28 @@
Feature: app-files
+ Scenario: viewing a favorite file in its folder closes the details view
+ Given I am logged in
+ And I mark "welcome.txt" as favorite
+ And I see that "welcome.txt" is marked as favorite
+ And I open the "Favorites" section
+ And I open the details view for "welcome.txt"
+ And I see that the details view for "Favorites" section is open
+ When I view "welcome.txt" in folder
+ Then I see that the current section is "All files"
+ And I see that the details view is closed
+
+ Scenario: viewing a favorite file in its folder does not prevent opening the details view in "All files" section
+ Given I am logged in
+ And I mark "welcome.txt" as favorite
+ And I see that "welcome.txt" is marked as favorite
+ And I open the "Favorites" section
+ And I open the details view for "welcome.txt"
+ And I see that the details view for "Favorites" section is open
+ And I view "welcome.txt" in folder
+ And I see that the current section is "All files"
+ When I open the details view for "welcome.txt"
+ Then I see that the details view for "All files" section is open
+
Scenario: set a password to a shared link
Given I am logged in
And I share the link for "welcome.txt"