[xwiki/xwiki-platform] d31f05: XWIKI-25222: The location preview uses a wrong wik...
Branch: refs/heads/XWIKI-25222-vitest Home: https://github.com/xwiki/xwiki-platform Commit: d31f05da604627a1b9448f7a83d8e8a03cb51fd4 https://github.com/xwiki/xwiki-platform/commit/d31f05da604627a1b9448f7a83d8e... Author: Simon Urli <[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-web/xwiki-platform-web-war/pom.xml A xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/test/node/eslint.config.ts A xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/test/node/package.json A xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/test/node/resources/uicomponents/widgets/__tests__/locationPicker.test.ts A xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/test/node/vitest.config.ts Log Message: ----------- XWIKI-25222: The location preview uses a wrong wiki and errors are logged when the parent field of the location picker contains the wiki * Add a Vitest unit test for the location preview of locationPicker.js, covering a parent field relative to the wiki, containing the selected wiki, containing another wiki, and a wiki change * Add a test-only Node package in src/test/node of xwiki-platform-web-war, registered in the pnpm workspace, which evaluates the legacy script in jsdom with the RequireJS mock of `@xwiki/platform-test-requirejs` * Run its unit tests (test phase) and its linter (verify phase) from the Maven build with frontend-maven-plugin Co-Authored-By: Claude Opus 5.5 <[email protected]> Commit: 108dd3435889ebeefc7eaa8210896ed386f99acd https://github.com/xwiki/xwiki-platform/commit/108dd3435889ebeefc7eaa8210896... Author: Simon Urli <[email protected]> Date: 2026-10-14 (Wed, 14 Oct 2026) Changed paths: M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/test/node/resources/uicomponents/widgets/__tests__/locationPicker.test.ts Log Message: ----------- XWIKI-25222: The location preview uses a wrong wiki and errors are logged when the parent field of the location picker contains the wiki * Test that the location preview falls back on the current wiki when no wiki is selected Co-Authored-By: Claude Opus 5.5 <[email protected]> Compare: https://github.com/xwiki/xwiki-platform/compare/b52425a15fff...108dd3435889 To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications