This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-ea5c4353-4e94-4de1-88e0-5a50a53aafa5 XWIKI-25102 Open

Add automated test for "Export Pdf (Old PDF)"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-109d295e-94a5-412b-a0f8-4691630c032d Vincent Massol created this issue on 01/Oct/26 20:51
 
Summary: Add automated test for "Export Pdf (Old PDF)"
Issue Type: cid:jira-generated-image-avatar-ea5c4353-4e94-4de1-88e0-5a50a53aafa5 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-fae7fd87-1a6c-4dfe-8ac4-398274b41fe7 Major
Reporter: Vincent Massol
Description:

The manual test is here: Export Pdf (Old PDF)

Existing automated coverage

Missing automated coverage

  • With the new PDF export installed, set Administer Wiki > Content > PDF Export > Replace FOP to No and save
  • Create a page with comments and an image attachment
  • Open More Actions > Export > PDF (FOP), select Cover, Table of Contents, Header, Footer, Comments and Page Attachments, click Export
  • Assert with PDFBox that the cover page, TOC, header and footer text, the comments and the attachment are in the PDF
  • Export again with all options deselected and assert only the page content is present (no cover, TOC, header, footer, comments, attachments)

Suggested location: xwiki-platform-core/xwiki-platform-export/xwiki-platform-export-pdf/xwiki-platform-export-pdf-test/xwiki-platform-export-pdf-test-docker/src/test/it/org/xwiki/export/pdf/test/ui/PDFExportIT.java

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