summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-11-22 05:26:01 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-11-22 05:26:01 +0100
commit57ffa9ea73f6be9b2b72dcac6bfa6d4c208e80e4 (patch)
tree5291b164065a09f1eaa58bc2cffb4f422ff3fa83 /tests
parent94645ed75446ad4437eecf5aa342675fd0aa287b (diff)
downloadnextcloud-server-57ffa9ea73f6be9b2b72dcac6bfa6d4c208e80e4.tar.gz
nextcloud-server-57ffa9ea73f6be9b2b72dcac6bfa6d4c208e80e4.zip
Add acceptance tests for opening and closing again the details view
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/acceptance/features/app-files.feature37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/acceptance/features/app-files.feature b/tests/acceptance/features/app-files.feature
index c85cdc32b94..61b7678e843 100644
--- a/tests/acceptance/features/app-files.feature
+++ b/tests/acceptance/features/app-files.feature
@@ -1,5 +1,42 @@
Feature: app-files
+ Scenario: open and close the details view
+ Given I am logged in
+ When I open the details view for "welcome.txt"
+ And I see that the details view is open
+ And I close the details view
+ Then I see that the details view is closed
+
+ Scenario: open and close the details view twice
+ Given I am logged in
+ And I open the details view for "welcome.txt"
+ And I see that the details view is open
+ And I close the details view
+ And I see that the details view is closed
+ When I open the details view for "welcome.txt"
+ And I see that the details view is open
+ And I close the details view
+ Then I see that the details view is closed
+
+ Scenario: open and close the details view again after coming back from a different section
+ Given I am logged in
+ And I open the details view for "welcome.txt"
+ And I see that the details view is open
+ And I close the details view
+ And I see that the details view is closed
+ And I open the "Recent" section
+ And I see that the current section is "Recent"
+ And I open the details view for "welcome.txt"
+ And I see that the details view is open
+ And I close the details view
+ And I see that the details view is closed
+ When I open the "All files" section
+ And I see that the current section is "All files"
+ And I open the details view for "welcome.txt"
+ And I see that the details view is open
+ And I close the details view
+ Then I see that the details view is closed
+
Scenario: viewing a favorite file in its folder shows the correct sidebar view
Given I am logged in
And I create a new folder named "other"