-
Notifications
You must be signed in to change notification settings - Fork 156
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
Removed favorite button from file list and added it instead in action… #3336
Removed favorite button from file list and added it instead in action… #3336
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
apps/files/src/fileactions.js
Outdated
{ | ||
icon: 'star', | ||
handler: this.toggleFileFavorite, | ||
ariaLabel: this.$gettext('Mark/Unmark as favorite'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LukasHirt Any idea how to just use 'mark as favorite' or 'Unmark as favorite'. I couldn't find any possibility to access the file.starred value in this context
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could transform ariaLabel
into a method which accepts resource as an argument. Same as is done with isEnabled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem: When trying to do that the function gets interpreted as string value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
aeb4d54
to
fcb6799
Compare
fcb6799
to
357a629
Compare
💥 Acceptance tests webUIOCIS failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/9378/
|
apps/files/src/fileactions.js
Outdated
@@ -125,7 +146,7 @@ export default { | |||
}) | |||
}, | |||
reallyDeleteFiles () { | |||
let files = this.deleteDialogSelectedFiles ? this.deleteDialogSelectedFiles : this.selectedFiles | |||
let files = this.dfavoriteFileeleteDialogSelectedFiles ? this.deleteDialogSelectedFiles : this.selectedFiles |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accidental paste ... @Julian1998
8562092
to
e0bfc72
Compare
e0bfc72
to
1c84829
Compare
tests/acceptance/pageObjects/FilesPageElement/fileActionsMenu.js
Outdated
Show resolved
Hide resolved
tests/acceptance/pageObjects/FilesPageElement/fileActionsMenu.js
Outdated
Show resolved
Hide resolved
tests/acceptance/pageObjects/FilesPageElement/fileActionsMenu.js
Outdated
Show resolved
Hide resolved
tests/acceptance/pageObjects/FilesPageElement/fileActionsMenu.js
Outdated
Show resolved
Hide resolved
1c84829
to
580f5ff
Compare
580f5ff
to
e42a3a9
Compare
Could you pls create also mark/unmark as favourite tests in the sidebar? |
@Julian1998 any update ? |
I usually work on Fridays. I will finish this tomorrow. (I accidentally edited this answer in your comment above) |
86047ee
to
266dba2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Fix failing tests and I'd say it's ready to be merged.
Thanks. Yeah I am still on the failing tests.... They are really kind of weird :/ |
266dba2
to
afab7a8
Compare
@individual-it I've adjusted the tests a bit in the last commit. Could you pls review it? |
@@ -14,33 +14,28 @@ Feature: Mark file as favorite | |||
Scenario: mark files as favorites | |||
When the user marks file "data.tar.gz" as favorite using the webUI | |||
And the user marks file "data.zip" as favorite using the webUI | |||
Then file "data.tar.gz" should be marked as favorite on the webUI | |||
And file "data.zip" should be marked as favorite on the webUI | |||
When the user reloads the current page of the webUI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed to refresh because the star is not present anyway.
626a4f1
to
9d143b7
Compare
@individual-it I've brought back the tests in the WebUI as discussed. It's squashed into the last commit. Pls, re-review. |
And the following files have been deleted by user "user1" | ||
| name | | ||
| lorem.txt | | ||
| simple-folder | | ||
When the user unmarks the favorited file "lorem.txt" using the webUI | ||
Then no message should be displayed on the webUI | ||
# Then the error message with header 'Error while marking "lorem.txt" as favorite' should be displayed on the webUI | ||
And file "lorem.txt" should not be marked as favorite on the webUI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the unfavorite action doesn't go through we need to expect that the star in the sidebar is still active. At least until we fix the original issue.
9d143b7
to
903e177
Compare
@@ -3,60 +3,6 @@ const filesList = client.page.FilesPageElement.filesList() | |||
|
|||
module.exports = { | |||
commands: { | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are getting to the point that the fileRow does not do anything much by itself, need to think if we want to refactor that and get rid of that PageObject (not in this PR)
@individual-it Comments addressed. Ready for another review 😉 |
82bdf04
to
e305b67
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests look good
Thanks. I'll try to investigate why it's failing now and then will rebase |
… dropdown Co-authored-by: Julian Müller <julimueller1998@gmail.com> Co-authored-by: Lukas Hirt <lhirt@owncloud.com>
e305b67
to
5bc85e6
Compare
Since it was only about a typo, I am going to dismiss this review not to delay this PR.
… dropdown menu as well as in the file sidebar
Description
Related Issue
Motivation and Context
UI enhancement
How Has This Been Tested?
Types of changes
Checklist: