[xwiki/xwiki-platform] 5d5b82: [Misc] Add JavaScript unit tests for the selection...
Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-platform Commit: 5d5b82c9f043f69698c5297e10c72b671375df0e https://github.com/xwiki/xwiki-platform/commit/5d5b82c9f043f69698c5297e10c72... Author: Michael Hamann <[email protected]> Date: 2026-10-14 (Wed, 14 Oct 2026) Changed paths: M pnpm-lock.yaml M pnpm-workspace.yaml M xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-plugins/pom.xml A xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-plugins/src/test/node/eslint.config.ts A xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-plugins/src/test/node/package.json A xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-plugins/src/test/node/vitest.config.ts A xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-plugins/src/test/node/xwiki-realtime/__tests__/ckeditorRealtimeAdapter.test.ts M xwiki-platform-core/xwiki-platform-realtime/xwiki-platform-realtime-wysiwyg/xwiki-platform-realtime-wysiwyg-webjar/pom.xml A xwiki-platform-core/xwiki-platform-realtime/xwiki-platform-realtime-wysiwyg/xwiki-platform-realtime-wysiwyg-webjar/src/test/node/__tests__/patches.test.ts A xwiki-platform-core/xwiki-platform-realtime/xwiki-platform-realtime-wysiwyg/xwiki-platform-realtime-wysiwyg-webjar/src/test/node/eslint.config.ts A xwiki-platform-core/xwiki-platform-realtime/xwiki-platform-realtime-wysiwyg/xwiki-platform-realtime-wysiwyg-webjar/src/test/node/package.json A xwiki-platform-core/xwiki-platform-realtime/xwiki-platform-realtime-wysiwyg/xwiki-platform-realtime-wysiwyg-webjar/src/test/node/vitest.config.ts Log Message: ----------- [Misc] Add JavaScript unit tests for the selection preservation of the realtime WYSIWYG editor (#6887) * Add Vitest tests for patches.js, covering where the caret is restored after applying a remote change (the fixes of XWIKI-25071) * Add Vitest tests for the CKEditor realtime adapter, covering the temporary elements and the filling character node * Add test-only Node packages in src/test/node of both modules, registered in the pnpm workspace, and run their tests and linter from Maven * Restrict JSHint to the shipped code (and the Jasmine specs), since it would otherwise lint the node_modules of the test packages * Don't install the build and test tools that chainpad declares as dependencies, which its self-contained bundle doesn't need, and which brought a vulnerable minimist version into the workspace Co-authored-by: Claude Opus 5.5 <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications