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

MenuIT#verifyMenuIsAvailableInAdministration is flickering

    Details

    • Difficulty:
      Unknown
    • Similar issues:
    • Flickering Test:
      org.xwiki.menu.test.ui.MenuIT#verifyMenuIsAvailableInAdministration

      Description

      Error Message
      
      Expected condition failed: waiting for org.xwiki.test.ui.XWikiWebDriver$$Lambda$917/869620870@1a7594d7 (tried for 10 second(s) with 500 milliseconds interval)
      Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
      System info: host: 'cec8ce524c6d', ip: '172.17.0.7', os.name: 'Linux', os.arch: 'amd64', os.version: '4.9.185-xxxx-std-ipv6-64', java.version: '1.8.0_242'
      Driver info: org.xwiki.test.ui.XWikiWebDriver
      Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 76.0.1, javascriptEnabled: true, moz:accessibilityChecks: false, moz:buildID: 20200507114007, moz:geckodriverVersion: 0.26.0, moz:headless: false, moz:processID: 302, moz:profile: /tmp/rust_mozprofileELIy55, moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, platformVersion: 4.9.185-xxxx-std-ipv6-64, rotatable: false, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: ignore, webdriver.remote.sessionid: 157c592c-3bb1-4c6f-a22d-8f0...}
      Session ID: 157c592c-3bb1-4c6f-a22d-8f013d48b9bf
      
      Stacktrace
      
      org.openqa.selenium.TimeoutException: 
      Expected condition failed: waiting for org.xwiki.test.ui.XWikiWebDriver$$Lambda$917/869620870@1a7594d7 (tried for 10 second(s) with 500 milliseconds interval)
      Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
      System info: host: 'cec8ce524c6d', ip: '172.17.0.7', os.name: 'Linux', os.arch: 'amd64', os.version: '4.9.185-xxxx-std-ipv6-64', java.version: '1.8.0_242'
      Driver info: org.xwiki.test.ui.XWikiWebDriver
      Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 76.0.1, javascriptEnabled: true, moz:accessibilityChecks: false, moz:buildID: 20200507114007, moz:geckodriverVersion: 0.26.0, moz:headless: false, moz:processID: 302, moz:profile: /tmp/rust_mozprofileELIy55, moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, platformVersion: 4.9.185-xxxx-std-ipv6-64, rotatable: false, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: ignore, webdriver.remote.sessionid: 157c592c-3bb1-4c6f-a22d-8f0...}
      Session ID: 157c592c-3bb1-4c6f-a22d-8f013d48b9bf
      	at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:95)
      	at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:272)
      	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.administration.test.po.AdministrationMenu.expandCategory(AdministrationMenu.java:108)
      	at org.xwiki.administration.test.po.AdministrationMenu.expandCategoryWithName(AdministrationMenu.java:100)
      	at org.xwiki.administration.test.po.AdministrationPage.clickSection(AdministrationPage.java:141)
      	at org.xwiki.menu.test.ui.MenuIT.verifyMenuIsAvailableInAdministration(MenuIT.java:128)
      

      The issue seems to be that the Look & Feel administration category is clicked too early, before the click listener is added from JavaScript and thus the category is not expanded. But I don't understand how this is possible since we already bulletproofed the AdministrationMenu to wait until the menu is ready (JavaScritp-wise)...

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mflorea Marius Dumitru Florea
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Date of last seen failure for flicker: