-
Bug
-
Resolution: Done
-
Neutral
-
None
-
None
-
None
-
-
Empty show more show less
-
UI FW 17, UI FW 19
-
5
There was a comment in ActionBar PO which still seems to be relevant:
// Make sure Vaadin has completed its job as part of whatever code is preceding the call to hitAction(..). // Chaining hitAction(..) itself often results in failures, due to Vaadin client-server communication // being still active (and thus the DOM not yet ready) as a result of the preceding action execution.
As latest random failures in CE builds showed this could be intermittent, but chaining hitActions could fail predictably like here in Tasks app:
https://git.magnolia-cms.com/projects/PLATFORM/repos/dx-core/pull-requests/130/overview
So far investigation:
- element in ActionBar#hitAction method is found and clicked, checked by javascript:
((VaadinWebDriverWrapper) driver).executeScript("var ele = arguments[0];ele.addEventListener('click', function() {ele.setAttribute('automationTrack','true');});", action); ... -> action.getAttribute("automationTrack")
- situation is the same with:
action.sendKeys(Keys.ENTER);
or
((VaadinWebDriverWrapper) driver).executeScript("arguments[0].click();", action);
- Thread.sleep(5000) at the bottom of this method don't help (but actually might help if used at the test level between hitAction invocations .. weird?)
Acceptance criteria
- caused by
-
MGNLUI-6242 Scroll to selected item does not work after search or deeplink request
- Closed
- is depended upon by
-
MGNLEE-628 Implement int. tests publication workflow - high prio
- Closed