This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-9300e238-f2eb-48d6-a607-2252226d7172 XWIKI-25096 Open

Add automated test for "Forgot your username"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-788a790c-2ab4-4ada-9f1a-8cd70963f1ff Vincent Massol created this issue on 01/Oct/26 20:51
 
Summary: Add automated test for "Forgot your username"
Issue Type: cid:jira-generated-image-avatar-9300e238-f2eb-48d6-a607-2252226d7172 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-61e409e1-91fa-46fe-be66-65c99f726d10 Major
Reporter: Vincent Massol
Description:

The manual test is here: Forgot your username

Existing automated coverage

  • ForgotUsernameIT#retrieveUsername: fills an email on the forgot username page, clicks Retrieve username, asserts the "If an account is registered with this email, you will receive the account information on" message and the username(s) in the received email

Missing automated coverage

  • Start from the Log-in page, click "Forgot your username?" (add a LoginPage page-object method) and assert the ForgotUsernamePage form is displayed
  • Assert the confirmation message ends with the email address that was entered

Suggested location: xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authentication/xwiki-platform-security-authentication-test/xwiki-platform-security-authentication-test-docker/src/test/it/org/xwiki/security/authentication/test/ui/ForgotUsernameIT.java

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