[xwiki/xwiki-platform] 570d0d: [Misc] Fix flickering WCAG validation due to axe-c...
Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-platform Commit: 570d0d983a81588c622d9dcce1f5ca6293da5ff2 https://github.com/xwiki/xwiki-platform/commit/570d0d983a81588c622d9dcce1f5c... Author: Vincent Massol <[email protected]> Date: 2026-06-29 (Mon, 29 Jun 2026) Changed paths: M xwiki-platform-core/xwiki-platform-test/xwiki-platform-test-ui/src/main/java/org/xwiki/test/ui/po/BasePage.java Log Message: ----------- [Misc] Fix flickering WCAG validation due to axe-core injection race When WCAG validation is enabled, BasePage's constructor runs axe-core via AxeBuilder.analyze(), which injects the axe script and then immediately probes window.axe. On a page that changes underneath the analysis (e.g. the refactoring job status page refreshing while the job runs), the page can navigate between the injection and the probe, leaving window.axe undefined and making analyze() fail with a "Cannot read properties of undefined (reading 'runPartial')" JavascriptException. Retry the analysis a few times, waiting for the page to settle between attempts. Only that specific injection-race error is retried; any other JavascriptException rethrows immediately, and the original error is rethrown if all attempts fail, so genuine accessibility violations and failures are preserved. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications