Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

Acceptance test for favorites page - #1407

Merged
individual-it merged 2 commits into
masterfrom
favorites-test
Jul 5, 2019
Merged

individual-it merged 2 commits into
masterfrom
favorites-test

Conversation

@skshetry

@skshetry skshetry commented Jul 3, 2019

Copy link
Copy Markdown
Contributor

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?

  • locally

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • ...

@skshetry
skshetry requested a review from DeepDiver1975 as a code owner July 3, 2019 10:29
@skshetry skshetry self-assigned this Jul 3, 2019
}

const parts = path.parse(fileName)
if (parts.ext) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

@CLAassistant

CLAassistant commented Jul 3, 2019 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@ownclouders

Copy link
Copy Markdown
Contributor
💥 Acceptance tests webUIRenameFolders failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/3717/9

20190703-111544-373.png
20190703-111607-981.png
20190703-111752-329.png
20190703-111819-514.png

@ownclouders

Copy link
Copy Markdown
Contributor
💥 Acceptance tests webUIFiles failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/3717/5

20190703-111535-201.png
20190703-111609-311.png

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) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We don't need to specify favorites page here.

@ownclouders

Copy link
Copy Markdown
Contributor
💥 Acceptance tests failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/3717/23

20190703-112130-326.png
20190703-112155-032.png
20190703-112242-616.png
20190703-112312-657.png

@ownclouders

Copy link
Copy Markdown
Contributor
💥 Acceptance tests webUIRenameFiles failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/3717/8

20190703-112016-929.png
20190703-112100-902.png
20190703-112300-821.png
20190703-112351-122.png

@ownclouders

Copy link
Copy Markdown
Contributor
💥 Acceptance tests failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/3717/24

20190703-112140-599.png
20190703-112213-861.png
20190703-112310-203.png
20190703-112341-733.png

@ownclouders

Copy link
Copy Markdown
Contributor
💥 Acceptance tests webUIRenameFolders failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/3719/10

20190703-114820-219.png
20190703-114849-903.png
20190703-115114-698.png
20190703-115149-540.png

@ownclouders

Copy link
Copy Markdown
Contributor
💥 Acceptance tests failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/3719/24

20190703-114905-135.png
20190703-114926-715.png
20190703-115006-442.png
20190703-115032-927.png

@ownclouders

Copy link
Copy Markdown
Contributor
💥 Acceptance tests webUIRenameFiles failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/3719/9

20190703-114859-921.png
20190703-114929-395.png
20190703-115118-720.png
20190703-115204-145.png

@ownclouders

Copy link
Copy Markdown
Contributor
💥 Acceptance tests webUIFiles failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/3719/5

20190703-114635-985.png
20190703-114700-262.png

@ownclouders

Copy link
Copy Markdown
Contributor
💥 Acceptance tests failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/3719/25

20190703-115155-108.png
20190703-115223-028.png
20190703-115330-082.png
20190703-115406-522.png

@ownclouders

Copy link
Copy Markdown
Contributor
💥 Acceptance tests webUIRenameFolders failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/3742/10

20190704-055752-578.png
20190704-055823-954.png
20190704-055955-595.png
20190704-060019-699.png

@ownclouders

Copy link
Copy Markdown
Contributor
💥 Acceptance tests webUIRenameFiles failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/3742/9

20190704-055746-986.png
20190704-055807-179.png
20190704-055916-858.png
20190704-055941-859.png

@ownclouders

Copy link
Copy Markdown
Contributor
💥 Acceptance tests failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/3742/24

20190704-055940-857.png
20190704-055959-669.png
20190704-060035-049.png
20190704-060100-226.png

@ownclouders

Copy link
Copy Markdown
Contributor
💥 Acceptance tests webUIFiles failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/3742/5

20190704-055733-297.png
20190704-055753-894.png

@ownclouders

Copy link
Copy Markdown
Contributor
💥 Acceptance tests failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/3742/25

20190704-060052-450.png
20190704-060114-641.png
20190704-060153-508.png
20190704-060219-974.png

@ownclouders

Copy link
Copy Markdown
Contributor
💥 Acceptance tests failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/3763/25

20190704-103308-870.png
20190704-103440-362.png

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
Then file "simple-folder/lorem.txt" should be listed on the webUI
And file "simple-folder/lorem.txt" should be listed on the webUI

@skshetry
skshetry force-pushed the favorites-test branch 3 times, most recently from 4388052 to 9da6e1a Compare July 4, 2019 11:23

@individual-it individual-it left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

don't understand why the renameFile.feature was changed

| 'सिमप्ले फोल्देर $%#?&@' |
| '"somequotes1"' |
| "'somequotes2'" |
| "\"quote\"d-folders'" |

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why this change?

@skshetry skshetry Jul 4, 2019 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please make then a separate commit for the concat part

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done. Created separate PR for this feature file addition.

* @param {string} value
* @returns {string}
*/
buildXpathLiteral: function (value) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

QA:team Status:Needs-Review Needs review from a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants