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

Add automated test for "Comment Page"

    XMLWordPrintable

Details

    • Unknown

    Description

      The manual test is here: Comment Page

      Existing automated coverage

      • NotificationsIT#displayNotificationsOnSubwikis: On a subwiki, comments posted over REST are listed as addComment entries by a notifications macro with the same parameters as the Dashboard activity gadget (useUserPreferences=false, displayOwnEvents=true), restricted to pages/spaces. Not the Dashboard page, and the comment is not added through the UI.
      • NotificationsIT#compositeNotifications: A comment posted over REST is shown as an addComment notification ("commented by <user>") in the tray and in a notifications macro using the user preferences, not in the Dashboard activity gadget.
      • NotificationsIT#ownEventNotifications: Creates a page through the UI, opens Dashboard.WebHome and asserts that the activity gadget (notifications macro) lists the new page as the latest event, with type "create" and description "created by <user>". Only a creation event is checked.

      Missing automated coverage

      • Log in as a user and add a comment on a page through the UI (Comments tab).
      • Open Dashboard.WebHome and wait for the activity gadget to list an entry for the page.
      • Assert the entry type is "addComment" and the description starts with "commented by <user>".

      Suggested location: xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-test/xwiki-platform-notifications-test-docker/src/test/it/org/xwiki/platform/notifications/test/ui/NotificationsIT.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: