-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3749 from owncloud/feature/copy
- Loading branch information
Showing
11 changed files
with
255 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
apps/files/src/components/LocationPicker/CopySidebarMainContent.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<template functional> | ||
<oc-grid gutter="small" child-width="1-1"> | ||
<translate translate-comment="Location picker guide on how to execute copy." | ||
>Navigate into the desired folder and copy selected resources into it.</translate | ||
> | ||
<translate translate-comment="Location picker guide on how to navigate into a folder." | ||
>You can navigate into a folder by clicking on its name.</translate | ||
> | ||
<translate translate-comment="Location picker guide on how to navigate to previous folders." | ||
>To navigate back, you can click on the breadcrumbs.</translate | ||
> | ||
<translate translate-comment="Location picker guide on where the resources will be copied." | ||
>Resources will be copied into the folder where you are currently located.</translate | ||
> | ||
</oc-grid> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'CopySidebarMainContent' | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Enhancement: Add ability to copy files and folders into a different location | ||
|
||
We've added copy action to the files list. The copy action is executed via a new page called location picker. | ||
|
||
https://github.com/owncloud/product/issues/102 | ||
https://github.com/owncloud/product/issues/108 | ||
https://github.com/owncloud/phoenix/pull/3749 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
Feature: copy files and folders | ||
As a user | ||
I want to copy files and folders | ||
So that I can work safely on a copy without changing the original | ||
|
||
Background: | ||
Given user "user1" has been created with default attributes | ||
|
||
@smokeTest | ||
Scenario: copy a file and a folder into a folder | ||
Given user "user1" has logged in using the webUI | ||
And the user has browsed to the files page | ||
When the user copies file "data.zip" into folder "simple-empty-folder" using the webUI | ||
Then breadcrumb for folder "simple-empty-folder" should be displayed on the webUI | ||
And file "data.zip" should be listed on the webUI | ||
When the user browses to the files page | ||
And the user copies folder "simple-folder" into folder "strängé नेपाली folder empty" using the webUI | ||
Then breadcrumb for folder "strängé नेपाली folder empty" should be displayed on the webUI | ||
And folder "simple-folder" should be listed on the webUI | ||
|
||
Scenario: copy a file into a folder where a file with the same name already exists | ||
Given user "user1" has logged in using the webUI | ||
And the user has browsed to the files page | ||
When the user copies file "strängé filename (duplicate #2 &).txt" into folder "strängé नेपाली folder" using the webUI | ||
Then the error message with header 'An error occurred while copying strängé filename (duplicate #2 &).txt' should be displayed on the webUI | ||
|
||
@smokeTest | ||
Scenario: Copy multiple files at once | ||
Given user "user1" has logged in using the webUI | ||
And the user has browsed to the files page | ||
When the user batch copies these files into folder "simple-empty-folder" using the webUI | ||
| name | | ||
| data.zip | | ||
| lorem.txt | | ||
| testapp.zip | | ||
Then breadcrumb for folder "simple-empty-folder" should be displayed on the webUI | ||
And the following file should be listed on the webUI | ||
| name-parts | | ||
| data.zip | | ||
| lorem.txt | | ||
| testapp.zip | | ||
|
||
Scenario Outline: copy a file into a folder (problematic characters) | ||
Given user "user1" has logged in using the webUI | ||
And the user has browsed to the files page | ||
When the user renames file "lorem.txt" to <file_name> using the webUI | ||
And the user renames folder "simple-empty-folder" to <folder_name> using the webUI | ||
And the user copies file <file_name> into folder <folder_name> using the webUI | ||
Then breadcrumb for folder <folder_name> should be displayed on the webUI | ||
And file <file_name> should be listed on the webUI | ||
Examples: | ||
| file_name | folder_name | | ||
| "'single'" | "folder-with-'single'" | | ||
# | "\"double\" quotes" | "folder-with\"double\" quotes" | FIXME: Needs a way to access breadcrumbs with double quotes issue-3734 | ||
| "question?" | "folder-with-question?" | | ||
| "&and#hash" | "folder-with-&and#hash" | | ||
|
||
@skipOnOCIS @issue-3755 | ||
Scenario: copy files on a public share | ||
Given user "user1" has shared folder "simple-folder" with link with "read, update, create, delete" permissions | ||
And the public uses the webUI to access the last public link created by user "user1" | ||
And the user copies file "data.zip" into folder "simple-empty-folder" using the webUI | ||
Then breadcrumb for folder "simple-empty-folder" should be displayed on the webUI | ||
And file "data.zip" should be listed on the webUI | ||
And as "user1" file "simple-folder/simple-empty-folder/data.zip" should exist | ||
And as "user1" file "simple-folder/data.zip" should exist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.