ModuleTestBase tests throw an on change event twice sometimes
Automatic frontend engine for Java
Brought to you by:
javierpaniza
It occurs when the first focusable element has an on-change action, in this case the on-change is throw when we put value in the element and when the action is executed.
It can be tested with SellerWithCustomersAsAggregateTest.testEntityCollectionAsAggregate() using Java 6 and fail in this line:
assertMessage("Customer created and associated to Seller");
It works fine when we remove the next lines from ModuleTestBase.execute():
if (focusedElement != null) { focusedElement.blur(); }
The error of the test was not for the duplicate on-change action, anyways we solve both things, the duplicate on-change and the test errors that was produced by a on-change action before execute().