Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-24749

ImageIT#editImage is flickering

    XMLWordPrintable

Details

    • Unknown
    • org.xwiki.blocknote.test.ui.AllIT$NestedImageIT#editImage

    Description

      Error Details

      no such element: Unable to locate element: {"method":"css selector","selector":".image\-editor\-modal"}
        (Session info: chrome=151.0.7922.108)
      For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#nosuchelementexception
      Build info: version: '4.47.0', revision: '9175ed9 9175ed94d83e87cc3abeb7c9fd91367d17849d35'
      System info: os.name: 'Linux', os.arch: 'amd64', os.version: '6.1.0-49-cloud-amd64', java.version: '21.0.12.1'
      Driver info: org.openqa.selenium.remote.RemoteWebDriver
      Command: [cac036a600178e413273cd8701bddcb7, findElement {using=class name, value=image-editor-modal}]
      Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 151.0.7922.108, chrome: {chromedriverVersion: 151.0.7922.77 (ff37cfca2101..., userDataDir: /tmp/org.chromium.Chromium....}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:42649}, goog:loggingPrefs: {browser: ALL}, goog:processID: 186, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:cdp: ws://172.17.0.1:40362/sessi..., se:cdpVersion: 151.0.7922.108, se:containerName: f5f889c71f30, se:deleteSessionOnUi: true, se:downloadsEnabled: true, se:gridWebSocketUrl: ws://localhost:10246/sessio..., se:noVncPort: 7900, se:vnc: ws://172.17.0.1:40362/sessi..., se:vncEnabled: true, se:vncLocalAddress: ws://172.17.0.8:7900, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: {alert: ignore, beforeUnload: ignore, confirm: ignore, default: ignore, file: ignore, prompt: ignore}, webSocketUrl: ws://172.17.0.1:40362/sessi..., webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}
      Session ID: cac036a600178e413273cd8701bddcb7
      

      Stack Trace

      org.openqa.selenium.NoSuchElementException: 
      no such element: Unable to locate element: {"method":"css selector","selector":".image\-editor\-modal"}
        (Session info: chrome=151.0.7922.108)
      For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#nosuchelementexception
      Build info: version: '4.47.0', revision: '9175ed9 9175ed94d83e87cc3abeb7c9fd91367d17849d35'
      System info: os.name: 'Linux', os.arch: 'amd64', os.version: '6.1.0-49-cloud-amd64', java.version: '21.0.12.1'
      Driver info: org.openqa.selenium.remote.RemoteWebDriver
      Command: [cac036a600178e413273cd8701bddcb7, findElement {using=class name, value=image-editor-modal}]
      Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 151.0.7922.108, chrome: {chromedriverVersion: 151.0.7922.77 (ff37cfca2101..., userDataDir: /tmp/org.chromium.Chromium....}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:42649}, goog:loggingPrefs: {browser: ALL}, goog:processID: 186, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:cdp: ws://172.17.0.1:40362/sessi..., se:cdpVersion: 151.0.7922.108, se:containerName: f5f889c71f30, se:deleteSessionOnUi: true, se:downloadsEnabled: true, se:gridWebSocketUrl: ws://localhost:10246/sessio..., se:noVncPort: 7900, se:vnc: ws://172.17.0.1:40362/sessi..., se:vncEnabled: true, se:vncLocalAddress: ws://172.17.0.8:7900, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: {alert: ignore, beforeUnload: ignore, confirm: ignore, default: ignore, file: ignore, prompt: ignore}, webSocketUrl: ws://172.17.0.1:40362/sessi..., webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}
      Session ID: cac036a600178e413273cd8701bddcb7
      	at org.openqa.selenium.remote.ErrorCodec.decode(ErrorCodec.java:169)
      	at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:143)
      	at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:50)
      	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:196)
      	at org.openqa.selenium.remote.TracedCommandExecutor.execute(TracedCommandExecutor.java:51)
      	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:653)
      	at org.openqa.selenium.remote.ElementLocation$ElementFinder$2.findElement(ElementLocation.java:173)
      	at org.openqa.selenium.remote.ElementLocation.findElement(ElementLocation.java:60)
      	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:417)
      	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:411)
      	at org.xwiki.test.ui.XWikiWebDriver.findElement(XWikiWebDriver.java:742)
      	at org.xwiki.test.ui.po.BaseModal.<init>(BaseModal.java:48)
      	at org.xwiki.wysiwyg.test.po.image.ImageDialogEditModal.<init>(ImageDialogEditModal.java:45)
      	at org.xwiki.wysiwyg.test.po.image.ImageDialogEditModal.<init>(ImageDialogEditModal.java:40)
      	at org.xwiki.blocknote.test.po.BlockNoteToolBar.editImage(BlockNoteToolBar.java:117)
      	at org.xwiki.blocknote.test.ui.ImageIT.editImage(ImageIT.java:182)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
      	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
      	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
      

      Standard Error

      21:26:05.057 [main] INFO  o.x.t.d.i.j.XWikiDockerExtension - (*) Starting VNC container...
      21:26:05.556 [main] INFO  o.x.t.d.i.j.XWikiDockerExtension - (*) Starting test [editImage]
      21:26:10.648 [docker-java-stream--388872750] INFO  o.x.t.d.i.j.s.ServletContainerExecutor - STDOUT: 2026-08-25 21:26:10,646 [http-nio-8080-exec-17 - http://xwikiweb0:8080/xwiki/bin/download/NestedImageIT/editImage/WebHome/missing.png?] ERROR c.x.x.w.XWikiAction            - Connection aborted. Root cause is [IOException: Broken pipe] 
      21:26:10.829 [docker-java-stream--388872750] INFO  o.x.t.d.i.j.s.ServletContainerExecutor - STDOUT: 2026-08-25 21:26:10,829 [http-nio-8080-exec-13 - http://xwikiweb0:8080/xwiki/bin/download/NestedImageIT/editImage/WebHome/missing.png?] ERROR c.x.x.w.XWikiAction            - Connection aborted. Root cause is [IOException: Broken pipe] 
      21:27:08.267 [main] WARN  org.xwiki.test.ui.XWikiWebDriver - The currently running test wasted [40088] ms waiting for element [By.className: image-editor-modal] which was not found. Tests should look for elements that are expected to be present; to check for the absence of an element or to avoid waiting, use findElementWithoutWaiting(), hasElementWithoutWaiting() or waitUntilElementDisappears() instead.
      java.lang.Exception: Stack trace to help locate the wasteful findElement()/findElements() call
      	at org.xwiki.test.ui.XWikiWebDriver.warnIfWastefulWait(XWikiWebDriver.java:780)
      	at org.xwiki.test.ui.XWikiWebDriver.findElement(XWikiWebDriver.java:746)
      	at org.xwiki.test.ui.po.BaseModal.<init>(BaseModal.java:48)
      	at org.xwiki.wysiwyg.test.po.image.ImageDialogEditModal.<init>(ImageDialogEditModal.java:45)
      	at org.xwiki.wysiwyg.test.po.image.ImageDialogEditModal.<init>(ImageDialogEditModal.java:40)
      	at org.xwiki.blocknote.test.po.BlockNoteToolBar.editImage(BlockNoteToolBar.java:117)
      	at org.xwiki.blocknote.test.ui.ImageIT.editImage(ImageIT.java:182)
      21:27:08.528 [main] INFO  o.x.t.d.i.junit5.DockerTestUtils - Screenshot for test [editImage] saved at [/root/workspace/sts_xwiki-platform_stable-18.7.x/xwiki-platform-core/xwiki-platform-blocknote/xwiki-platform-blocknote-test/xwiki-platform-blocknote-test-docker/target/postgresql-latest-pom-tomcat-11-jdk25-s3-chrome/screenshots/postgresql-latest-default-tomcat-11-jdk25-chrome-org.xwiki.blocknote.test.ui.AllIT$NestedImageIT-editImage.png].
      21:27:37.733 [main] INFO  o.x.t.d.i.j.XWikiDockerExtension - VNC recording of test has been saved to [target/postgresql-latest-pom-tomcat-11-jdk25-s3-chrome/screenshots/postgresql-latest-default-tomcat-11-jdk25-chrome-org.xwiki.blocknote.test.ui.AllIT$NestedImageIT-editImage.flv]
      21:27:37.736 [main] INFO  o.x.t.d.i.j.XWikiDockerExtension - Jenkins Agent: [a09-0029v4li9u8x0]
      21:27:38.180 [main] INFO  o.x.t.d.i.j.XWikiDockerExtension - (*) Stopping test [editImage]
      21:27:38.181 [main] INFO  o.x.t.d.i.j.XWikiDockerExtension - (*) Stopping VNC container...
      

      Command line:

      mvn -f pom.xml clean verify -Pdocker,legacy,integration-tests,snapshotModules,distribution,flavor-integration-tests --projects xwiki-platform-core/xwiki-platform-attachment/xwiki-platform-attachment-picker/xwiki-platform-attachment-picker-test/xwiki-platform-attachment-picker-test-docker,xwiki-platform-core/xwiki-platform-attachment/xwiki-platform-attachment-test/xwiki-platform-attachment-test-docker,xwiki-platform-core/xwiki-platform-attachment/xwiki-platform-attachment-validation/xwiki-platform-attachment-validation-test/xwiki-platform-attachment-validation-test-docker,xwiki-platform-core/xwiki-platform-blocknote/xwiki-platform-blocknote-test/xwiki-platform-blocknote-test-docker -e -U --fail-at-end --no-transfer-progress -Dmaven.test.failure.ignore -Dmaven.build.dir=target/postgresql-latest-pom-tomcat-11-jdk25-s3-chrome -Dxwiki.checkstyle.skip=true -Dxwiki.surefire.captureconsole.skip=true -Dxwiki.revapi.skip=true -Dxwiki.spoon.skip=true -Dxwiki.enforcer.skip=true -Dxwiki.test.ui.database=postgresql -Dxwiki.test.ui.databaseTag=latest -Dxwiki.test.ui.jdbcVersion=pom -Dxwiki.test.ui.servletEngine=tomcat -Dxwiki.test.ui.servletEngineTag=11-jdk25 -Dxwiki.test.ui.browser=chrome -Dxwiki.test.ui.blobStore=s3 -DjenkinsAgentName="a09-0029v4li9u8x0" 
      

      Attachments

        1. image.png
          72 kB
          Thomas Mortagne

        Activity

          People

            Unassigned Unassigned
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: