This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-4964a963-890a-4368-9c79-a3246906a3f0 XWIKI-25125 Open

Add automated test for "Name strategies Kebab case strategy"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-4f9b077b-3aa6-40b7-ad80-430227a09c59 Vincent Massol created this issue on 01/Oct/26 20:52
 
Summary: Add automated test for "Name strategies Kebab case strategy"
Issue Type: cid:jira-generated-image-avatar-4964a963-890a-4368-9c79-a3246906a3f0 Task
Affects Versions: 11.10.13
Assignee: Unassigned
Components: Development Issues only
Created: 01/Oct/26 20:52
Labels: testneeded
Priority: cid:jira-generated-image-static-major-1db0e3ad-3bd5-4f7c-92d5-d2a87b628722 Major
Reporter: Vincent Massol
Description:

The manual test is here: Name strategies Kebab case strategy

Existing automated coverage

Missing automated coverage

  • In Administer Wiki > Editing > Name Strategies select Kebab-case, enable "Transform name automatically", disable "Validate names before saving".
  • Enable "Conversion to Lowercase" and "Allow Dots", add the forbidden word "Forbidden", save.
  • Create a page whose title has accents, spaces, special characters, dots and the forbidden word (e.g. the manual test value) and save it.
  • Assert the page reference/URL is the expected kebab-case name (e.g. t-e-s-t8.9e-d) and the title is unchanged.
  • Page object: NameStrategiesAdministrationSectionPage has no setters for lowercase, allow dots or forbidden words.

Suggested location: xwiki-platform-core/xwiki-platform-model/xwiki-platform-model-validation/xwiki-platform-model-validation-test/xwiki-platform-model-validation-test-docker/src/test/it/org/xwiki/model/validation/test/ui/docker/NameStrategiesIT.java

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