Details
-
Bug
-
Resolution: Fixed
-
Major
-
15.10-rc-1
-
Unknown
-
N/A
-
N/A
-
-
org.xwiki.flamingo.test.docker.AllIT$NestedLoginIT#loginWithInvalidCredentials(LogCaptureConfiguration)|loginLogoutAsAdmin(TestUtils, TestReference)
Description
Stack trace:
org.openqa.selenium.ElementNotInteractableException: Element <a id="tmLogout" href="/xwiki/bin/logout/XWiki/XWikiLogout?xredirect=%2Fxwiki%2Fbin%2Fview%2FNestedLoginIT%2FloginLogoutAsAdmin%2FWebHome%3FspaceRedirect%3Dfalse"> could not be scrolled into view Build info: version: '4.15.0', revision: '1d14b5521b' System info: os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.0-16-cloud-amd64', java.version: '11.0.6' Driver info: org.openqa.selenium.remote.RemoteWebDriver Command: [3d791ecd-af84-452c-9eac-26bc48ec9893, clickElement {id=d7f66ef9-bdf7-4951-8d58-c1405130c547}] Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 120.0.1, moz:accessibilityChecks: false, moz:buildID: 20231129155202, moz:debuggerAddress: 127.0.0.1:26566, moz:firefoxOptions: {prefs: {dom.disable_beforeunload: false}}, moz:geckodriverVersion: 0.33.0, moz:headless: false, moz:platformVersion: 4.19.0-16-cloud-amd64, moz:processID: 143, moz:profile: /tmp/rust_mozprofilebTEf92, 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} Element: [[RemoteWebDriver: firefox on linux (3d791ecd-af84-452c-9eac-26bc48ec9893)] -> id: tmLogout] Session ID: 3d791ecd-af84-452c-9eac-26bc48ec9893 at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:200) at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:133) at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:52) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:191) at org.openqa.selenium.remote.TracedCommandExecutor.execute(TracedCommandExecutor.java:51) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:607) at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:224) at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:77) at org.xwiki.test.ui.po.BasePage.logout(BasePage.java:502) at org.xwiki.flamingo.test.docker.LoginIT.loginLogoutAsAdmin(LoginIT.java:92) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.base/java.util.ArrayList.forEach(ArrayList.java:1540) at java.base/java.util.ArrayList.forEach(ArrayList.java:1540) at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
As a follow-up failure, also loginWithInvalidCredentials fails as the user is not logged out as expected by the test.
org.opentest4j.AssertionFailedError: expected: <true> but was: <false> at org.xwiki.flamingo.test.docker.LoginIT.loginWithInvalidCredentials(LoginIT.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.base/java.util.ArrayList.forEach(ArrayList.java:1540) at java.base/java.util.ArrayList.forEach(ArrayList.java:1540) at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
The most likely root cause are the drawer changes from XWIKI-18007 and that the test doesn't wait properly for the drawer to be fully open before trying to click on logout.