Skip to content

Commit 70edda0

Browse files
Port dav calendar settings page to Vue.js
- 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 <mail@franek.fr>
1 parent 46dbc8f commit 70edda0

File tree

108 files changed

+1881
-923
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+1881
-923
lines changed

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/*.spec.js

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ lint-fix-watch:
3030
clean:
3131
rm -rf apps/accessibility/js/
3232
rm -rf apps/comments/js/
33+
rm -rf apps/dav/js/
3334
rm -rf apps/files/js/dist/
3435
rm -rf apps/files_sharing/js/dist/
3536
rm -rf apps/files_trashbin/js/
@@ -46,6 +47,7 @@ clean:
4647
clean-git: clean
4748
git checkout -- apps/accessibility/js/
4849
git checkout -- apps/comments/js/
50+
git checkout -- apps/dav/js/
4951
git checkout -- apps/files/js/dist/
5052
git checkout -- apps/files_sharing/js/dist/
5153
git checkout -- apps/files_trashbin/js/

apps/accessibility/js/accessibility.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/accessibility/js/accessibility.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/accessibility/js/accessibilityoca.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/accessibility/js/accessibilityoca.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/comments/js/comments-app.js

+20-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/comments/js/comments-app.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/comments/js/comments-tab.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/comments/js/comments-tab.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)