[xwiki/xwiki-platform] 3df360: XWIKI-25106: Add automated test for "Export Import...
Branch: refs/heads/stable-17.10.x Home: https://github.com/xwiki/xwiki-platform Commit: 3df360d3a51c4ccc7d9e74c5530ed12661b4a125 https://github.com/xwiki/xwiki-platform/commit/3df360d3a51c4ccc7d9e74c5530ed... Author: Vincent Massol <[email protected]> Date: 2026-10-13 (Tue, 13 Oct 2026) Changed paths: M xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-docker/src/test/it/org/xwiki/administration/test/ui/XARImportIT.java A xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-pageobjects/src/main/java/org/xwiki/administration/test/po/ExportAdministrationSectionPage.java M xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-pageobjects/src/main/java/org/xwiki/administration/test/po/ImportAdministrationSectionPage.java M xwiki-platform-core/xwiki-platform-tree/xwiki-platform-tree-test-pageobjects/src/main/java/org/xwiki/tree/test/po/TreeElement.java Log Message: ----------- XWIKI-25106: Add automated test for "Export Import a document with defined permissions" (#6573) * Add XARImportIT#exportImportPageWithRights (XWIKI-25106): a nested page whose view right is restricted to XWikiAdminGroup is exported as XAR and imported in a subwiki; the XWikiRights object is imported and a global user is still denied view there * Add XARImportIT#exportImportPageWithHistory (XWIKI-25107): a page with 4 versions is exported with its history and imported in a subwiki replacing the history; the subwiki page has the same versions, version comments and content * Add XARImportIT#exportImportPartialWiki (XWIKI-18641): from the Export administration section, select "Created pages", unselect all children of the XWiki node, choose the target version and export; in a subwiki, check the none/all selection links, then import only the test's own pages * Add ExportAdministrationSectionPage and ImportAdministrationSectionPage#selectNoDocuments/#selectAllDocuments * Fix TreeElement#getNodeIDs(), which failed with a ClassCastException (WebDriver returns a List, not an array) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit a42ac35191bff0debcb372290ed25d0c745082b9) Commit: 3d1f9038b752a6858b7217e4784136c1f79a760c https://github.com/xwiki/xwiki-platform/commit/3d1f9038b752a6858b7217e478413... Author: Vincent Massol <[email protected]> Date: 2026-10-13 (Tue, 13 Oct 2026) Changed paths: M xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-pageobjects/src/main/java/org/xwiki/administration/test/po/ExportAdministrationSectionPage.java M xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-pageobjects/src/main/java/org/xwiki/administration/test/po/ImportAdministrationSectionPage.java Log Message: ----------- XWIKI-25106: Add automated test for "Export Import a document with defined permissions" * Adjust the `@since` of the backported page object elements Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Commit: 8b0675dac9b9d9fe9598151f793c19a8d2413479 https://github.com/xwiki/xwiki-platform/commit/8b0675dac9b9d9fe9598151f793c1... Author: Vincent Massol <[email protected]> Date: 2026-10-13 (Tue, 13 Oct 2026) Changed paths: M xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-docker/src/test/it/org/xwiki/administration/test/ui/XARImportIT.java Log Message: ----------- XWIKI-25106: Add automated test for "Export Import a document with defined permissions" * Send the export request with a plain HTTP client and Basic authentication, since this branch's TestUtils has no execute(ClassicHttpRequest) * Build the export URL from the REST base URL, since this branch's test framework has no XWikiExecutor#getHttpClientBaseURL()/TestUtils#getPath(EntityReference, String, String) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Compare: https://github.com/xwiki/xwiki-platform/compare/67be06bfcfc3...8b0675dac9b9 To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications