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

Add automated test for "Rollback To A Minor Version"

    XMLWordPrintable

Details

    • Unknown

    Description

      The manual test is here: Rollback To A Minor Version

      Existing automated coverage

      • VersionIT#testRollbackDontMessUpRights: As a non-admin user: History tab > "Show minor edits" > Rollback (confirm accepted) to version 2.1, a MAJOR version, on a nested test page; asserts the new version 3.1 and its "Rollback to version 2.1" comment.
      • VersionIT#testRollbackToFirstVersion: As superadmin: History tab > Rollback to 1.1 (major) and asserts the content and the rollback comment.

      Missing automated coverage

      • As a simple user, create a nested (WebHome) page and a terminal page with versions 1.1, a minor 1.2 (distinct content) and 2.1.
      • Open the History tab, click "Show minor edits" (HistoryPane#showMinorEdits) and assert 1.2 is listed.
      • Click Rollback on 1.2 and accept the confirmation (HistoryPane#rollbackToVersion).
      • Assert the page content is the 1.2 content and the new current version has the "Rollback to version 1.2" comment.

      Related issue(s): XWIKI-25963 ("Show And Hide Minor Edits In History Tab": the show/hide toggle only, no rollback.)

      Suggested location: xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-test/xwiki-platform-flamingo-skin-test-docker/src/test/it/org/xwiki/flamingo/test/docker/VersionIT.java

      Found by comparing the most-run manual tests (XWiki 16.x-18.x runs) against the automated tests on master (7c8ae46f525).

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: