This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-c6533325-fa7b-4bda-9c1d-3f945381c00e XWIKI-25127 Open

Add automated test for "Grant Create Wiki Right For An User"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-b71dfe58-6884-4215-8a94-f0951a3fb6bb Vincent Massol created this issue on 01/Oct/26 20:52
 
Summary: Add automated test for "Grant Create Wiki Right For An User"
Issue Type: cid:jira-generated-image-avatar-c6533325-fa7b-4bda-9c1d-3f945381c00e 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-c38a5c55-02c8-4c35-93f4-2c9bd50a9537 Major
Reporter: Vincent Massol
Description:

The manual test is here: Grant Create Wiki Right For An User

Existing automated coverage

None found.
Searched the wiki, administration and security test modules for createwiki, CREATE_WIKI, Creation Right and WikiCreationRights; every UI wiki creation (SubWikiIT, WikiTemplateIT) runs as superadmin. Related only: WikiManagerRestIT#testCreateWiki checks that a user without the right is refused over REST, and WikiManagerScriptServiceTest checks the right with mocks.

Missing automated coverage

  • As superadmin open Administer Wiki > Wikis > Creation Right, select the Users radio button, grant Create Wiki to a new non-admin user and save
  • Log in as that user, go to the Wiki Index and assert the Create Wiki action is offered
  • Run the wizard (WikiIndexPage#createWiki > CreateWikiPage > goUserStep().create() > WikiCreationPage) and assert the wiki is created and its home page is displayed
  • Assert that a user without the right is not offered the Create Wiki action
  • Add a page object for the Creation Right administration section (EditRightsPane may be reusable)

Suggested location: xwiki-platform-core/xwiki-platform-wiki/xwiki-platform-wiki-test/xwiki-platform-wiki-test-docker (new WikiCreationRightIT)

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