-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Port dav calendar settings page to Vue.js #27008
Conversation
bfbd5f3
to
1fc7aa1
Compare
This comment has been minimized.
This comment has been minimized.
Nice @francoisfreitag, Could you add some before/after screenshots ?
This is done by the community, so you don't have to think about it. |
85b73de
to
bd6bab7
Compare
Thanks for the reviews!
Changes
Pulled relevant bits in separate commits, will eventually squash all commits. I believe all feedback has been addressed and this PR is ready for another round of reviews. |
e6561eb
to
53f624e
Compare
827f684
to
5d186cc
Compare
Changes
|
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
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.
Apart from the js config global changes, LGTM
efc57e2
to
4cbd965
Compare
Changes
|
4cbd965
to
8d8b3fe
Compare
- Drop reliance on deprecated global jQuery object. - Allow testing user interactions. - Use newer technology stack. --- Test user interactions with the groupware dav settings Add infrastructure to test Vue components: - Use recommended libraries: - https://vuejs.org/v2/guide/testing.html#Recommendations - Use jest-dom for robust assertions on the DOM state - Use user-event to be more representative of user actions - Code is transpiled by Jest, with the help of vue-jest. Ignore test files for no-unpublished-import. Prevent ESLint from flagging: ``` /home/runner/work/server/server/apps/dav/src/views/CalDavSettings.spec.js Error: 1:24 error "@testing-library/vue" is not published node/no-unpublished-import Error: 2:23 error "@testing-library/user-event" is not published node/no-unpublished-import ``` Signed-off-by: François Freitag <[email protected]>
Changesdiff --git a/apps/dav/src/views/CalDavSettings.spec.js b/apps/dav/src/views/CalDavSettings.spec.js
index 6f25106bd6..3f9254a301 100644
--- a/apps/dav/src/views/CalDavSettings.spec.js
+++ b/apps/dav/src/views/CalDavSettings.spec.js
@@ -92,6 +92,7 @@ describe('CalDavSettings', () => {
return Promise.resolve()
})
await userEvent.click(generateBirthdayCalendar)
+ expect(generateBirthdayCalendar).toBeEnabled()
OCP.AppConfig.setValue.mockClear()
await userEvent.click(sendEventReminders) |
8d8b3fe
to
70edda0
Compare
I think he meant the js files changed outside of /dav/. But it's because of the babel config update. All good |
Awesome, thanks for the reviews and integrating! |
Add infrastructure to test Vue components:
Use recommended libraries:
Code is transpiled by Jest, with the help of vue-jest.