diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-12-21 13:44:41 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2019-01-22 12:27:06 +0100 |
commit | 4fcabf167e121497bfae4dcdec0b8eb7e8f9d483 (patch) | |
tree | fc10001b6e503f1933b7ee30fbe4a6daa4fa381d /tests/acceptance/features/app-files.feature | |
parent | dbc184c85980b90f30881d249010f69b6f60800c (diff) | |
download | nextcloud-server-4fcabf167e121497bfae4dcdec0b8eb7e8f9d483.tar.gz nextcloud-server-4fcabf167e121497bfae4dcdec0b8eb7e8f9d483.zip |
Add acceptance tests for moving and copying files to another folder
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.feature | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/acceptance/features/app-files.feature b/tests/acceptance/features/app-files.feature index 7d216ffc1f4..dc2b52f39d7 100644 --- a/tests/acceptance/features/app-files.feature +++ b/tests/acceptance/features/app-files.feature @@ -140,6 +140,29 @@ Feature: app-files Then I see that the current section is "Deleted files" Then I see that the file list contains a file named "welcome.txt" + Scenario: move a file to another folder + Given I am logged in + And I create a new folder named "Destination" + When I start the move or copy operation for "welcome.txt" + And I select "Destination" in the file picker + And I move to the last selected folder in the file picker + Then I see that the file list does not contain a file named "welcome.txt" + And I enter in the folder named "Destination" + And I see that the file list contains a file named "welcome.txt" + + Scenario: copy a file to another folder + Given I am logged in + And I create a new folder named "Destination" + When I start the move or copy operation for "welcome.txt" + And I select "Destination" in the file picker + And I copy to the last selected folder in the file picker + Then I enter in the folder named "Destination" + # The file will appear in the destination once the copy operation finishes + And I see that the file list contains a file named "welcome.txt" + # The Files app is open again to reload the file list in the root folder + And I open the Files app + And 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" |