Repository navigation
Acceptance test for favorites page - #1407
Conversation
| } | ||
|
|
||
| const parts = path.parse(fileName) | ||
| if (parts.ext) { |
There was a problem hiding this comment.
Currently, we have a bug that shows the link for the folder having a period splitted (ie. without extension). If this gets fixed, we might need to use regex step definition to pass if it's really a folder or a file. This way, we could avoid splitting if it's a folder.
💥 Acceptance tests webUIRenameFolders failed. Please find the screenshots inside ...
|
💥 Acceptance tests webUIFiles failed. Please find the screenshots inside ...
|
| return client.page.FilesPageElement.filesList().assertElementNotListed(folder) | ||
| }) | ||
|
|
||
| Then('file/folder with name {string} should be listed in the favorites page on the webUI', function (name) { |
There was a problem hiding this comment.
We don't need to specify favorites page here.
💥 Acceptance tests failed. Please find the screenshots inside ...
|
💥 Acceptance tests webUIRenameFiles failed. Please find the screenshots inside ...
|
💥 Acceptance tests failed. Please find the screenshots inside ...
|
💥 Acceptance tests webUIRenameFolders failed. Please find the screenshots inside ...
|
💥 Acceptance tests failed. Please find the screenshots inside ...
|
💥 Acceptance tests webUIRenameFiles failed. Please find the screenshots inside ...
|
💥 Acceptance tests webUIFiles failed. Please find the screenshots inside ...
|
💥 Acceptance tests failed. Please find the screenshots inside ...
|
💥 Acceptance tests webUIRenameFolders failed. Please find the screenshots inside ...
|
💥 Acceptance tests webUIRenameFiles failed. Please find the screenshots inside ...
|
💥 Acceptance tests failed. Please find the screenshots inside ...
|
💥 Acceptance tests webUIFiles failed. Please find the screenshots inside ...
|
💥 Acceptance tests failed. Please find the screenshots inside ...
|
💥 Acceptance tests failed. Please find the screenshots inside ...
|
| And file "lorem.txt" with path "/strängé नेपाली folder" should be listed in the favorites page on the webUI | ||
| When the user browses to the favorites page | ||
| Then file "lorem.txt" should be listed on the webUI | ||
| Then file "simple-folder/lorem.txt" should be listed on the webUI |
There was a problem hiding this comment.
| Then file "simple-folder/lorem.txt" should be listed on the webUI | |
| And file "simple-folder/lorem.txt" should be listed on the webUI |
4388052 to
9da6e1a
Compare
individual-it
left a comment
There was a problem hiding this comment.
don't understand why the renameFile.feature was changed
| | 'सिमप्ले फोल्देर $%#?&@' | | ||
| | '"somequotes1"' | | ||
| | "'somequotes2'" | | ||
| | "\"quote\"d-folders'" | |
There was a problem hiding this comment.
Just wanted to make sure the concat part is doing it's job (it's only used if file name has both kinds of quotes). I know it's bad to test for the test code itself, but it was a change in a critical part of the test code and a valid requirement.
There was a problem hiding this comment.
Please make then a separate commit for the concat part
There was a problem hiding this comment.
Done. Created separate PR for this feature file addition.
| * @param {string} value | ||
| * @returns {string} | ||
| */ | ||
| buildXpathLiteral: function (value) { |
There was a problem hiding this comment.
I tested this function with following folders as well:
"foo", // no quotes
"\"foo", // double quotes only
"'foo", // single quotes only
"'foo\"bar", // both; double quotes in mid-string
"'foo\"bar\"baz", // multiple double quotes in mid-string
"'foo\"", // string ends with double quotes
"'foo\"\"", // string ends with run of double quotes
"\"'foo", // string begins with double quotes
"\"\"'foo", // string begins with run of double quotes
"'foo\"\"bar" // run of double quotes in mid-string
























































Description
This adds a test scenario for favoriting files and making sure that they exist in the favorites page. More scenario are needed. To accustom for the full path shown in the page,
fileList()had to be changed, which now checks for whole filename instead of an attribute (which is a good thing?).Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: