Details
-
Task
-
Resolution: Invalid
-
Major
-
None
-
11.10.13
-
Unknown
-
Description
The manual test is here: Switch to source mode
Existing automated coverage
- RealtimeWYSIWYGEditorIT#failGracefullyIfWeCannotConnect: Simple user, new page in the standalone CKEditor: types one line, Source, Save & View; asserts the saved content (single paragraph, no headings).
- InplaceEditIT#saveFromSourceMode: Simple user, in-place editing: Source mode, Save and Save & View; asserts the saved source (macro content, no headings).
- InplaceEditIT#switchToSourcePreservesSelection: In-place editing of a page with a paragraph, a heading and a table: switching to Source gives the exact source; the page is not saved (cancel).
- RealtimeWYSIWYGEditorIT#editSource: Realtime standalone editor: several paragraphs typed in WYSIWYG then converted to Source and edited (no headings, no save).
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).