-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 9.2
-
Component/s: Seam / JSF UI, Tests
-
Tags:
-
Sprint:nxFG 9.2.6
-
Story Points:1
ITVerifyDeleteDocumentContentTest.verifyDeleteDocumentContent sometimes fail with:
Element not enabled after timeout: at org.nuxeo.functionaltests.Locator.waitUntilEnabled(Locator.java:449) at org.nuxeo.functionaltests.Locator$1.apply(Locator.java:115) at org.nuxeo.functionaltests.Locator$1.apply(Locator.java:106) at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:238) at org.nuxeo.functionaltests.Locator.findElementAndWaitUntilEnabled(Locator.java:124) at org.nuxeo.functionaltests.Locator.findElementWaitUntilEnabledAndClick(Locator.java:322) at org.nuxeo.functionaltests.Locator.findElementWaitUntilEnabledAndClick(Locator.java:148) at org.nuxeo.functionaltests.pages.AbstractPage.findElementWaitUntilEnabledAndClick(AbstractPage.java:318) at org.nuxeo.functionaltests.pages.tabs.TrashSubPage.restoreSelectedDocuments(TrashSubPage.java:161) at org.nuxeo.functionaltests.pages.tabs.TrashSubPage.restoreDocument(TrashSubPage.java:124) at org.nuxeo.ftest.cap.ITVerifyDeleteDocumentContentTest.verifyDeleteDocumentContent(ITVerifyDeleteDocumentContentTest.java:106)
As selecting/deselecting a document in the trash changes the available buttons in Ajax, we must wait for them to be updated before clicking on them.