There are 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-b9014bc0-0292-4c22-8004-4ecbf4e4814c XWIKI-21876 Open

LightboxIT.openMissingImage is flickering

 
View issue   ยท   Add comment
 

2 comments

 
cid:jira-generated-image-avatar-75a501fe-84aa-44c8-bd79-91f5353c8c6d Charpentier Lucas on 04/Jul/24 16:47
 

https://github.com/xwiki/xwiki-platform/blob/ae8c69e7802a471c5eb0d30f76b6eee5141bc427/xwiki-platform-core/xwiki-platform-image/xwiki-platform-image-lightbox/xwiki-platform-image-lightbox-webjar/src/main/webjar/lightbox.js#L301 The showtimeout is 500ms. This is somewhat close to `waiting for org.xwiki.test.ui.XWikiWebDriver$$Lambda$1610/0x00007fd4d8baf6b0@5948903e (tried for 10 second(s) with 500 milliseconds interval)`. I need to check what this 500ms interval means for selenium.

 
cid:jira-generated-image-avatar-75a501fe-84aa-44c8-bd79-91f5353c8c6d Charpentier Lucas on 04/Jul/24 16:47
 
Out of the four fails in the last 90 days, none of those have a similar stacktrace.


```
org.openqa.selenium.TimeoutException: Expected condition failed: waiting for org.xwiki.test.ui.XWikiWebDriver$$Lambda$1610/0x00007fd4d8baf6b0@5948903e (tried for 10 second(s) with 500 milliseconds interval)
Build info: version: '4.22.0', revision: 'c5f3146703*'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.0-25-cloud-amd64', java.version: '17.0.11'
Driver info: org.xwiki.test.ui.XWikiWebDriver
Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 127.0.1, moz:accessibilityChecks: false, moz:buildID: 20240618110440, moz:debuggerAddress: 127.0.0.1:15035, moz:firefoxOptions: {prefs: {dom.disable_beforeunload: false, remote.active-protocols: 3}}, moz:geckodriverVersion: 0.34.0, moz:headless: false, moz:platformVersion: 4.19.0-25-cloud-amd64, moz:processID: 171, moz:profile: /tmp/rust_mozprofilerMfIkh, moz:shutdownTimeout: 60000, moz:webdriverClick: true, moz:windowless: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:bidiEnabled: false, se:cdp: ws://172.17.0.7:4444/sessio..., se:cdpVersion: 85.0, se:noVncPort: 7900, se:vnc: ws://172.17.0.7:4444/sessio..., se:vncEnabled: true, se:vncLocalAddress: ws://172.17.0.7:7900, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: ignore, userAgent: Mozilla/5.0 (X11; Linux x86...}
Session ID: 300ac4a3-d4e0-4b04-a3d0-cdb95734053c
at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:84)
at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:228)
at org.xwiki.test.ui.XWikiWebDriver.waitUntilCondition(XWikiWebDriver.java:228)
at org.xwiki.test.ui.XWikiWebDriver.waitUntilElementsAreVisible(XWikiWebDriver.java:330)
at org.xwiki.test.ui.XWikiWebDriver.waitUntilElementIsVisible(XWikiWebDriver.java:285)
at org.xwiki.test.ui.XWikiWebDriver.waitUntilElementIsVisible(XWikiWebDriver.java:273)
at org.xwiki.image.lightbox.test.po.ImagePopover.waitUntilReady(ImagePopover.java:77)
at org.xwiki.image.lightbox.test.po.LightboxPage.openLightboxAtImage(LightboxPage.java:79)
at org.xwiki.image.lightbox.test.ui.LightboxIT.openMissingImage(LightboxIT.java:305)
at java.lang.reflect.Method.invoke(Method.java:568)
at java.util.ArrayList.forEach(ArrayList.java:1511)
at java.util.ArrayList.forEach(ArrayList.java:1511)
at java.util.ArrayList.forEach(ArrayList.java:1511)
```