Details
-
Bug
-
Resolution: Fixed
-
Major
-
12.2.1
-
Unknown
-
N/A
-
N/A
-
-
org.xwiki.flamingo.test.docker.AllITs$NestedEditIT#saveAndFormManipulation{TestUtils, TestReference}
Description
See my comments on https://github.com/xwiki/xwiki-platform/commit/3a6152565cf5e5976dc6f4d72aba0f7f1b2d74f4#diff-dd92f1c10b64c634a097f9603e5c4dbfR205 .
There are basically 2 issues:
- the test prevents window unload without a try/catch
- the test waits for the progress message "Saving..." but if the save is very fast then you only see success message "Saved"
Error Message Expected condition failed: waiting for org.xwiki.test.ui.XWikiWebDriver$1@4db852b4 (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: 'edab3a3fdf19', ip: '172.17.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.0-6-amd64', java.version: '1.8.0_242' Driver info: org.xwiki.test.ui.XWikiWebDriver Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 70.0, javascriptEnabled: true, moz:accessibilityChecks: false, moz:buildID: 20191016161957, moz:geckodriverVersion: 0.26.0, moz:headless: false, moz:processID: 105, moz:profile: /tmp/rust_mozprofilezhREkf, moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, platformVersion: 4.19.0-6-amd64, rotatable: false, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: ignore, webdriver.remote.sessionid: 11e48a54-e36e-4bfc-9073-5b0...} Session ID: 11e48a54-e36e-4bfc-9073-5b0d063db9a5 Stacktrace org.openqa.selenium.TimeoutException: Expected condition failed: waiting for org.xwiki.test.ui.XWikiWebDriver$1@4db852b4 (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: 'edab3a3fdf19', ip: '172.17.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.0-6-amd64', java.version: '1.8.0_242' Driver info: org.xwiki.test.ui.XWikiWebDriver Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 70.0, javascriptEnabled: true, moz:accessibilityChecks: false, moz:buildID: 20191016161957, moz:geckodriverVersion: 0.26.0, moz:headless: false, moz:processID: 105, moz:profile: /tmp/rust_mozprofilezhREkf, moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, platformVersion: 4.19.0-6-amd64, rotatable: false, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: ignore, webdriver.remote.sessionid: 11e48a54-e36e-4bfc-9073-5b0...} Session ID: 11e48a54-e36e-4bfc-9073-5b0d063db9a5 at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:95) at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:272) at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.xwiki.test.ui.XWikiWebDriver.waitUntilCondition(XWikiWebDriver.java:226) at org.xwiki.test.ui.XWikiWebDriver.waitUntilElementsAreVisible(XWikiWebDriver.java:347) at org.xwiki.test.ui.XWikiWebDriver.waitUntilElementIsVisible(XWikiWebDriver.java:302) at org.xwiki.test.ui.XWikiWebDriver.waitUntilElementIsVisible(XWikiWebDriver.java:290) at org.xwiki.test.ui.po.BaseElement.waitForNotificationMessage(BaseElement.java:109) at org.xwiki.test.ui.po.BaseElement.waitForNotificationInProgressMessage(BaseElement.java:95) at org.xwiki.flamingo.test.ui.EditIT.saveAndFormManipulation(EditIT.java:256)