Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI tests, testing renaming a file/folder into .htaccess #28738

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/ui/features/files/renameFiles.feature
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ Feature: renameFiles
|Could not rename "data.zip"|
And the file "data.zip" should be listed

Scenario: Rename a file to a forbidden name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this the same as the .htaccess case of the scenario at line 37?

When I rename the file "data.zip" to one of these names
|.htaccess |
Then notifications should be displayed with the text
|Could not rename "data.zip"|
And the file "data.zip" should be listed

Scenario: Rename a file putting a name of a file which already exists
When I rename the file "data.zip" to "lorem.txt"
Then near the file "data.zip" a tooltip with the text 'lorem.txt already exists' should be displayed
Expand Down
7 changes: 7 additions & 0 deletions tests/ui/features/files/renameFolders.feature
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ Feature: renameFolders
|Could not rename "simple-folder"|
And the folder "simple-folder" should be listed

Scenario: Rename a folder to a forbidden name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and this is already on the scenario at line 36?

When I rename the folder "simple-folder" to one of these names
|.htaccess |
Then notifications should be displayed with the text
|Could not rename "simple-folder"|
And the folder "simple-folder" should be listed

Scenario: Rename a folder putting a name of a file which already exists
When I rename the folder "simple-folder" to "lorem.txt"
Then near the folder "simple-folder" a tooltip with the text 'lorem.txt already exists' should be displayed
Expand Down