This issue has been created
There are 5 updates, 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-1ee0a5d6-5422-40b4-afe1-48170b870278 XWIKI-24581 Closed

Create/check for automated tests for "Create a child document from a hierarchy"

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-7929c681-d462-44ee-8048-437aeae64b3f Vincent Massol created this issue on 22/Jul/26 11:04
 
Summary: Create/check for automated tests for "Create a child document from a hierarchy"
Issue Type: cid:jira-generated-image-avatar-1ee0a5d6-5422-40b4-afe1-48170b870278 Task
Affects Versions: 18.5.0
Assignee: Unassigned
Components: Development Issues only
Created: 22/Jul/26 11:04
Labels: testneeded
Priority: cid:jira-generated-image-static-major-f4def31f-8669-42e8-aed9-e9ab339a9b5d Major
Reporter: Vincent Massol
Description:

See https://test.xwiki.org/xwiki/bin/view/Nested%20Spaces/Create%20a%20child%20document%20to%20store%20information%20about%20sub%20aspects%20of%20documents

 
 

5 updates

 
cid:jira-generated-image-avatar-7929c681-d462-44ee-8048-437aeae64b3f Changes by Vincent Massol on 22/Jul/26 11:04
 
Documentation in Release Notes: N/A
Documentation: N/A
Assignee: Vincent Massol
Resolution: Won't Fix
Status: Open Closed
 
 

2 comments

 
cid:jira-generated-image-avatar-7929c681-d462-44ee-8048-437aeae64b3f Vincent Massol on 22/Jul/26 11:05
 

This manual test is already automated by CreatePageNestedDocumentsIT.java:

xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-test/xwiki-platform-flamingo-skin-test-docker/src/test/it/org/xwiki/flamingo/test/docker/CreatePageNestedDocumentsIT.java

Its class-level Javadoc matches the manual test's intent exactly: "Tests that the create action and UI properly create Nested Documents at various levels in the hierarchy." (since 7.2RC1).

The manual test builds a hierarchy (a/b/c/d/e/f/g/h), navigates to an intermediate page and creates a child from it. The IT covers this across a hierarchy A -> A/B -> A/B/C -> A/B/C/D -> A/B/C/D/E -> ...:

  • createNestedDocumentsFromUI() (@Order(2)) is the closest match. Starting from the Home page, it repeatedly clicks the Create button and fills the create form with a parent space reference plus page name, creating a child page at each level of the hierarchy (child of a top-level page, child of a child, etc.), verifying breadcrumb/title/reference each time.
  • createNestedDocumentsFromURL() (@Order(1)) creates the same nested documents by navigating to their URL and clicking "Edit this page to create".

It also covers cases the manual test does not spell out: a child of a non-existing intermediate page (A/B/C/D/E/F/G, where F does not exist) and a child of a non-existing top-level page (X/Y).

So creating a child page from an intermediate page inside a nested-spaces hierarchy is fully covered — the automated test is actually broader than the manual one. No new automated test is needed.

 
cid:jira-generated-image-avatar-7929c681-d462-44ee-8048-437aeae64b3f Vincent Massol on 22/Jul/26 11:06
 

Ilie Andriuta please mark as already automated and don't execute any more manually smile.png Thx