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

Add automated test for "Switch to source mode"

    XMLWordPrintable

Details

    • Unknown

    Description

      The manual test is here: Switch to source mode

      Existing automated coverage

      Missing automated coverage

      • As a simple user, create a new page in the standalone WYSIWYG editor and enter four paragraphs, some formatted as headings (e.g. with the Format drop-down).
      • Click Source and assert the source text (headings in XWiki 2.1 heading syntax, paragraphs separated by blank lines).
      • Save and assert no error notification is shown and the view page renders the headings and paragraphs.
      • Repeat with in-place editing of an existing page (Source, then Save), asserting the saved content.

      Suggested location: xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-test/xwiki-platform-ckeditor-test-docker/src/test/it/org/xwiki/ckeditor/test/ui/SaveIT.java (standalone editor) and xwiki-platform-core/xwiki-platform-edit/xwiki-platform-edit-test/xwiki-platform-edit-test-docker/src/test/it/org/xwiki/edit/test/ui/InplaceEditIT.java (in-place editing)

      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: