This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-ae08027b-9b7f-4430-9c28-ba1a89f42814 XWIKI-25098 Open

Add automated test for "Register an user using email verification"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-f1a266d2-0a78-459e-b79a-8259098e13b5 Vincent Massol created this issue on 01/Oct/26 20:51
 
Summary: Add automated test for "Register an user using email verification"
Issue Type: cid:jira-generated-image-avatar-ae08027b-9b7f-4430-9c28-ba1a89f42814 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-a2a36a06-1a12-4ff9-b223-b4459f90fa4c Major
Reporter: Vincent Massol
Description:

The manual test is here: Register an user using email verification

Existing automated coverage

Missing automated coverage

  • Configure mail sending (GreenMail, as in ResetPasswordIT); as admin set Users & Rights > Registration "Use Email Verification" to Yes and Save
  • Log out, register U1 with an email address; assert U1 is inactive and cannot log in
  • Read the received email, follow the validation link, assert the account is validated and U1 can log in
  • Register U2 with the same email; copy the validkey from the email, paste it in the XWiki.AccountValidation form, click "Confirm account" and assert U2 can log in

Suggested location: xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-docker/src/test/it/org/xwiki/administration/test/ui/RegisterIT.java

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