summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-08-03 13:36:40 +0200
committerJulius Härtl <jus@bitgrid.net>2018-08-03 14:06:04 +0200
commit1b4d502bfdd3234a698533d482c8c80e1305aa82 (patch)
tree85b7dd3e5c6f5f5857a7ac6df8294401a0770634 /tests
parent16f6c071735577453ab8c4fb24451de28828195e (diff)
downloadnextcloud-server-1b4d502bfdd3234a698533d482c8c80e1305aa82.tar.gz
nextcloud-server-1b4d502bfdd3234a698533d482c8c80e1305aa82.zip
Adjust acceptance test to check if the correct sidebar view is shown
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/acceptance/features/app-files.feature14
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/acceptance/features/app-files.feature b/tests/acceptance/features/app-files.feature
index 956430c02ba..00f09900d3e 100644
--- a/tests/acceptance/features/app-files.feature
+++ b/tests/acceptance/features/app-files.feature
@@ -1,15 +1,23 @@
Feature: app-files
- Scenario: viewing a favorite file in its folder closes the details view
+ 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"
+ And I mark "other" as favorite
And I mark "welcome.txt" as favorite
+ And I see that "other" is marked 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 open the details view for "other"
And I see that the details view is open
+ And I see that the file name shown in the details view is "other"
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
+ And I see that the details view is open
+ And I see that the file name shown in the details view is "welcome.txt"
+ When I open the details view for "other"
+ And I see that the file name shown in the details view is "other"
+
Scenario: viewing a favorite file in its folder does not prevent opening the details view in "All files" section
Given I am logged in