123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202 |
- 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"
- 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 "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 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
- 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 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 is open
- Scenario: show recent files
- Given I am logged in
- And I create a new folder named "Folder just created"
- When I open the "Recent" section
- Then I see that the current section is "Recent"
- Then I see that the file list contains a file named "Folder just created"
- Scenario: show recent files for a second time
- Given I am logged in
- And I open the "Recent" section
- And I see that the current section is "Recent"
- And I open the "All files" section
- And I see that the current section is "All files"
- And I create a new folder named "Folder just created"
- When I open the "Recent" section
- Then I see that the current section is "Recent"
- Then I see that the file list contains a file named "Folder just created"
- Scenario: show favorites
- Given I am logged in
- And I mark "welcome.txt" as favorite
- When I open the "Favorites" section
- Then I see that the current section is "Favorites"
- Then I see that the file list contains a file named "welcome.txt"
- Scenario: show favorites for a second time
- Given I am logged in
- And I open the "Favorites" section
- And I see that the current section is "Favorites"
- And I open the "All files" section
- And I see that the current section is "All files"
- And I mark "welcome.txt" as favorite
- When I open the "Favorites" section
- Then I see that the current section is "Favorites"
- Then I see that the file list contains a file named "welcome.txt"
- Scenario: show shares
- Given I am logged in
- And I share the link for "welcome.txt"
- When I open the "Shares" section
- Then I see that the current section is "Shares"
- Then I see that the file list contains a file named "welcome.txt"
- Scenario: show shares for a second time
- Given I am logged in
- And I open the "Shares" section
- And I see that the current section is "Shares"
- And I open the "All files" section
- And I see that the current section is "All files"
- And I share the link for "welcome.txt"
- When I open the "Shares" section
- Then I see that the current section is "Shares"
- Then I see that the file list contains a file named "welcome.txt"
- Scenario: show deleted files
- Given I am logged in
- And I delete "welcome.txt"
- When I open the "Deleted files" section
- Then I see that the current section is "Deleted files"
- Then I see that the file list contains a file named "welcome.txt"
- Scenario: show deleted files for a second time
- Given I am logged in
- And I open the "Deleted files" section
- And I see that the current section is "Deleted files"
- And I open the "All files" section
- And I see that the current section is "All files"
- And I delete "welcome.txt"
- When I open the "Deleted files" section
- Then I see that the current section is "Deleted files"
- Then I see that the file list contains a file named "welcome.txt"
- Scenario: rename a file with the details view open
- Given I am logged in
- And I open the details view for "welcome.txt"
- When I rename "welcome.txt" to "farewell.txt"
- Then I see that the file list contains a file named "farewell.txt"
- And I see that the file name shown in the details view is "farewell.txt"
- Scenario: marking a file as favorite causes the file list to be sorted again
- Given I am logged in
- And I create a new folder named "A name alphabetically lower than welcome.txt"
- And I see that "A name alphabetically lower than welcome.txt" precedes "welcome.txt" in the file list
- # To mark the file as favorite the file actions menu has to be shown but, as
- # the details view is opened automatically when the folder is created,
- # clicking on the menu trigger could fail if it is covered by the details
- # view due to its opening animation. Instead of ensuring that the animations
- # of the contents and the details view have both finished it is easier to
- # close the details view and wait until it is closed before continuing.
- And I close the details view
- And I see that the details view is closed
- When I mark "welcome.txt" as favorite
- Then I see that "welcome.txt" is marked as favorite
- And I see that "welcome.txt" precedes "A name alphabetically lower than welcome.txt" in the file list
- Scenario: unmarking a file as favorite causes the file list to be sorted again
- Given I am logged in
- And I create a new folder named "A name alphabetically lower than welcome.txt"
- And I see that "A name alphabetically lower than welcome.txt" precedes "welcome.txt" in the file list
- # To mark the file as favorite the file actions menu has to be shown but, as
- # the details view is opened automatically when the folder is created,
- # clicking on the menu trigger could fail if it is covered by the details
- # view due to its opening animation. Instead of ensuring that the animations
- # of the contents and the details view have both finished it is easier to
- # close the details view and wait until it is closed before continuing.
- And I close the details view
- And I see that the details view is closed
- And I mark "welcome.txt" as favorite
- And I see that "welcome.txt" is marked as favorite
- And I see that "welcome.txt" precedes "A name alphabetically lower than welcome.txt" in the file list
- When I unmark "welcome.txt" as favorite
- Then I see that "welcome.txt" is not marked as favorite
- And I see that "A name alphabetically lower than welcome.txt" precedes "welcome.txt" in the file list
- Scenario: mark a file as favorite in the details view
- Given I am logged in
- And I open the details view for "welcome.txt"
- And I see that the details view is open
- When I mark the file as favorite in the details view
- Then I see that "welcome.txt" is marked as favorite
- And I see that the file is marked as favorite in the details view
- Scenario: unmark a file as favorite in the details view
- 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 mark the file as favorite in the details view
- And I see that "welcome.txt" is marked as favorite
- And I see that the file is marked as favorite in the details view
- When I unmark the file as favorite in the details view
- Then I see that "welcome.txt" is not marked as favorite
- And I see that the file is not marked as favorite in the details view
|