Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-25125

Add automated test for "Name strategies Kebab case strategy"

    XMLWordPrintable

Details

    • Unknown

    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).

      Attachments

        Activity

          People

            Unassigned Unassigned
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: