This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-b1e61c55-b019-41b2-b167-2877bbc9ec50 XWIKI-25060 Open

CopyPageIT#copyDoesNotCarryOverRightsTheUserCannotGrant is flickering

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-2be3db82-d3e1-4b9b-9229-8e20b09a937a Manuel Leduc created this issue on 30/Sep/26 15:48
 
Summary: CopyPageIT#copyDoesNotCarryOverRightsTheUserCannotGrant is flickering
Issue Type: cid:jira-generated-image-avatar-b1e61c55-b019-41b2-b167-2877bbc9ec50 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-f275884a-d6cb-4f48-9e42-6c75cd5e0c41 Major
Reporter: Manuel Leduc
Description:

The functional test org.xwiki.flamingo.test.docker.AllIT$NestedCopyPageIT#copyDoesNotCarryOverRightsTheUserCannotGrant fails intermittently on ci.xwiki.org.

Occurrence

Error

org.openqa.selenium.JavascriptException: javascript error: Cannot read properties of undefined (reading 'runPartial')
	at org.xwiki.test.ui.XWikiWebDriver.executeScript(XWikiWebDriver.java:814)
	at org.xwiki.test.ui.po.BasePage.validateWCAG(BasePage.java:719)
	at org.xwiki.test.ui.po.BasePage.validateWCAG(BasePage.java:694)
	at org.xwiki.test.ui.po.BasePage.validateWCAG(BasePage.java:683)
	at org.xwiki.test.ui.po.BasePage.<init>(BasePage.java:139)
	at org.xwiki.test.ui.po.RefactoringStatusPage.<init>(RefactoringStatusPage.java:32)
	at org.xwiki.test.ui.po.CopyOrRenameOrDeleteStatusPage.<init>(CopyOrRenameOrDeleteStatusPage.java:33)
	at org.xwiki.test.ui.po.CopyPage.clickCopyButton(CopyPage.java:177)

Analysis

CopyPage#clickCopyButton() submits the form and immediately builds a CopyOrRenameOrDeleteStatusPage, without waiting for the page to be reloaded. The BasePage constructor then runs the WCAG validation (axe-core) while the browser is navigating, and axe.runPartial is called on a document where axe is no longer defined, hence Cannot read properties of undefined (reading 'runPartial'). The rights logic under test is not involved.

This is the same failure and the same cause as XWIKI-20767, fixed in TemplatesAdministrationSectionPage by calling getDriver().addPageNotYetReloadedMarker() before the click and getDriver().waitUntilPageIsReloaded() after it.

Possible fix

Apply the XWIKI-20767 pattern in CopyPage#clickCopyButton(), which fixes every test using it.

 
 

1 update

 
cid:jira-generated-image-avatar-2be3db82-d3e1-4b9b-9229-8e20b09a937a Changes by Manuel Leduc on 30/Sep/26 15:48
 
Flickering Test: org.xwiki.flamingo.test.docker.AllIT$NestedCopyPageIT#copyDoesNotCarryOverRightsTheUserCannotGrant