This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-ed697954-f3df-4db6-9a30-7679d338a4fe XWIKI-25059 Open

UsersGroupsRightsManagementIT#createAndDeleteUser is flickering

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-d08ff84e-8309-459b-a2e1-024c9e42a147 Manuel Leduc created this issue on 30/Sep/26 15:48
 
Summary: UsersGroupsRightsManagementIT#createAndDeleteUser is flickering
Issue Type: cid:jira-generated-image-avatar-ed697954-f3df-4db6-9a30-7679d338a4fe Bug
Affects Versions: 18.4.5
Assignee: Unassigned
Components: Development Issues only
Created: 30/Sep/26 15:48
Labels: flickering
Priority: cid:jira-generated-image-static-major-5dfa7e10-c3aa-4b7f-9593-fbce3f6de7db Major
Reporter: Manuel Leduc
Description:

The functional test org.xwiki.administration.test.ui.AllIT$NestedUsersGroupsRightsManagementIT#createAndDeleteUser fails intermittently on ci.xwiki.org.

Occurrence

Error

org.openqa.selenium.TimeoutException: Expected condition failed: waiting for org.xwiki.test.ui.XWikiWebDriver$$Lambda/0x00007f8898ce7630@2125b08f
	at org.xwiki.test.ui.XWikiWebDriver.waitUntilCondition(XWikiWebDriver.java:229)
	at org.xwiki.administration.test.po.RegistrationModal.waitForLiveValidationSuccess(RegistrationModal.java:57)
	at org.xwiki.administration.test.ui.UsersGroupsRightsManagementIT.createAndDeleteUser(UsersGroupsRightsManagementIT.java:284)

Analysis

The wait that times out is RegistrationModal#waitForLiveValidationSuccess(), i.e. waiting for no .LV_invalid field in #createUserModal. AbstractRegistrationPage#fillRegisterForm fills the password confirmation before the password, so the confirmation relies on being re-validated when the password changes. The most likely explanation is that this re-validation occasionally does not happen before the wait expires, leaving a field marked invalid. Not confirmed: the CI failure has no DOM dump showing which field stayed invalid.

Possible fix

Wait for the individual fields to be valid (or blur the password field) before waiting for the global validation; if it still fails, capture which field is invalid.

 
 

1 update

 
cid:jira-generated-image-avatar-d08ff84e-8309-459b-a2e1-024c9e42a147 Changes by Manuel Leduc on 30/Sep/26 15:48
 
Flickering Test: org.xwiki.administration.test.ui.AllIT$NestedUsersGroupsRightsManagementIT#createAndDeleteUser