There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-a05d3851-6968-4a01-86f4-cb2fb1a6c7d4 XWIKI-25066 Closed

LightboxIT fails intermittently with a StaleElementReferenceException when opening the lightbox from the image popover

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-8173eb0e-a3a9-4597-9e96-e9956c66573b XWiki.org LLM Bot on 20/Oct/26 08:06
 

Automated note from the daily CI check (xwiki-ci-check). This issue stays closed; whether it needs a follow-up issue is a human decision.

openImageWithoutDescription still fails intermittently on stable-17.10.x, which carries this fix (17.10.14). The failure is now a TimeoutException raised inside the fix's retry:

org.openqa.selenium.TimeoutException: Expected condition failed: waiting for ... (tried for 10 seconds with 500 milliseconds interval)
	at org.xwiki.image.lightbox.test.po.ImagePopover.waitUntilReady(ImagePopover.java:96)
	at org.xwiki.image.lightbox.test.po.ImagePopover.openLightbox(ImagePopover.java:62)
	at org.xwiki.image.lightbox.test.po.LightboxPage.openLightboxAtImage(LightboxPage.java:79)
	at org.xwiki.image.lightbox.test.ui.LightboxIT.openImageWithoutDescription(LightboxIT.java:133)

ImagePopover.java:62 is the waitUntilReady() this fix added after a StaleElementReferenceException. It waits for the popover to be shown again. The description above also names a popover hide as a cause of the detached button. After a hide, nothing re-shows the popover, so this wait can only time out. That would explain why the StaleElementReferenceException (last seen 2026-10-02) was replaced by this timeout (first seen 2026-10-16).

Develocity, last 28 days: 5 failures in 627 runs (0.8%). The timeout accounts for 2 of them, both on stable-17.10.x / Chrome / MySQL / Tomcat 11, the latest one in Environment Tests #325. The server log shows no error during the test. Build scans: fkz4te6t4nmx2, vlxno6lda75ls.

Failing test: org.xwiki.image.lightbox.test.ui.AllIT$NestedLightboxIT#openImageWithoutDescription