Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-25107

Add automated test for "Export Import a document with history"

    XMLWordPrintable

Details

    • Unknown

    Description

      The manual test is here: Export Import a document with history

      Existing automated coverage

      Missing automated coverage

      • Create nested page 1/2 and save several versions (add text, remove text, add a table, add a link)
      • Export it with bin/export/1/2/WebHome?format=xar&name=1.2.WebHome&pages=xwiki%3A1.2.WebHome&history=true
      • Create a subwiki and import the exported XAR from its Administer Wiki > Content > Import with "Replace the page history with the history from the package"
      • Assert the imported page history in the subwiki has the same versions and comments as the original

      Suggested location: 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

      Found by comparing the XWiki 18.4.4 manual test runs against the automated tests on master (a0055f10a1a).

      Attachments

        Activity

          People

            Unassigned Unassigned
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: