This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-10f10be9-7bd9-4b61-b91f-628c67f8313c XWIKI-25075 Open

Add automated test for "Add an image with caption"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-579e5898-879f-45e6-99ea-23c25ee634ce Vincent Massol created this issue on 01/Oct/26 20:51
 
Summary: Add automated test for "Add an image with caption"
Issue Type: cid:jira-generated-image-avatar-10f10be9-7bd9-4b61-b91f-628c67f8313c Task
Affects Versions: 11.10.13
Assignee: Unassigned
Components: Development Issues only
Created: 01/Oct/26 20:51
Labels: testneeded
Priority: cid:jira-generated-image-static-major-b85d958b-cc5e-4e7b-9f32-ccc23939e57d Major
Reporter: Vincent Massol
Description:

The manual test is here: Add an image with caption

Existing automated coverage

Missing automated coverage

  • Edit the page in CKEditor Source mode, enter a captioned image whose caption is a link to https://www.xwiki.org (the syntax given in the manual test), switch back to WYSIWYG; assert a figure whose figcaption contains the link is shown.
  • Modify the caption text in-line below the image and assert the source keeps the link inside the updated caption.
  • Save & View and assert the view page renders a figure with the image and a figcaption containing the updated text and the xwiki.org link (both for the Source-mode image and the Upload-tab captioned image).

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/ImageIT.java

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