#320 ModuleTestBase tests throw an on change event twice sometimes

v4.8.1
closed
nobody
None
5
2013-09-17
2013-01-08
Javier Paniza
No

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();
}

Discussion

  • Javier Paniza
    Javier Paniza
    2013-09-17

    • status: open --> closed
    • Group: v1.0_(example) --> v4.8.1
     
  • Javier Paniza
    Javier Paniza
    2013-09-17

    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().