This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-c291f7fb-fd2b-4496-8d18-d70cea81b4f3 XWIKI-25093 Open

Add automated test for "Authentication security module disable account"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-7233b47b-a7c9-4e3d-afd7-f2a43bde6d4d Vincent Massol created this issue on 01/Oct/26 20:51
 
Summary: Add automated test for "Authentication security module disable account"
Issue Type: cid:jira-generated-image-avatar-c291f7fb-fd2b-4496-8d18-d70cea81b4f3 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-5c19b38f-3629-485d-9eda-7f3f88c6ea2c Major
Reporter: Vincent Massol
Description:

The manual test is here: Authentication security module disable account

Existing automated coverage

Missing automated coverage

  • As admin, in Administer Wiki > Users & Rights > Authentication select Failure Strategy "Disable account", set Maximum number of authorized attempts to 4 and Save
  • Create user U1, log out, fail to log in as U1 4 times
  • Assert the error "This account has been disabled. Please ask the administrator to enable it back." is shown and the correct password is refused
  • As admin, enable U1 from its profile page (ProfileUserProfilePage#clickEnable)
  • Log out and assert U1 can log in with the correct password

Suggested location: xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-test/xwiki-platform-flamingo-skin-test-docker/src/test/it/org/xwiki/flamingo/test/docker/LoginProtectionIT.java

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