-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add tests for versions actions #43768
Add tests for versions actions #43768
Conversation
8833278
to
c122250
Compare
bf9d05e
to
6e4b010
Compare
5c4add8
to
6870c67
Compare
Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
…em in from one of its actions Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
6870c67
to
f7a0246
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.
😍
/backport 5137757 to stable28 |
/backport 5137757 to stable27 |
/backport 5137757 to stable26 |
/backport 5137757 to stable25 |
async deleteVersion() { | ||
// Let @nc-vue properly remove the popover before we delete the version. | ||
// This prevents @nc-vue from throwing a error. | ||
await this.$nextTick() | ||
await this.$nextTick() |
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.
I feel like we could have something better here 🤔
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.
I guess we should prevent the property access in @nc/vue
, but I was too lazy.
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.
Awesome!
I still do not like the data-test... selectors, because that is testing implementation instead of user flow (a user does not look for selectors but for semantic like labels or roles). But I think this is the best we can get here :)
Seconded, didn't we talked about this 🙈 |
The PR initial goal was to tests that permissions were properly checked when triggering versions actions on received shared files. But I wrote some tests utils on the way, and encountered a few bugs.
Tests changes
files_sharing
files
files_sharing
andfiles_versions
componentsCode changes
Version.vue
from@nc/vue
when deleting anNcListItem
from one of its actionsViewOnlyPlugin
after auth to prevent error when using Basic auth