| The functional test org.xwiki.flamingo.test.docker.AllIT$NestedCopyPageIT#copyDoesNotCarryOverRightsTheUserCannotGrant fails intermittently on ci.xwiki.org. Occurrence
Error
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. |