I am trying to write some ftests for kitchensink quickstart but I am not able to write my tests. The best thing will be to show it on the example:
The problem is with the third "contains" assert where message of "numeric value out of bounds" is expected. But that message varies completely randomly upon every test, the second version of that message is "size must be between 10 and 12".
First of all, I personally think that there should be only one version of the message. When I hit the register button on the empty form, I do not want to see any "numeric value out of bounds" message, I want to see the second version, "size must be between 10 and 12".
Secondly, it is weird that message is expected to be shown to a user ("size must be between 10 and 12") but when I deploy quickstart and I try it on my own, I have never got that kind of validation message when I write nothing into the phone number field.
This message is the result of the wrong validation or its bad combination. I would remove
completely and I would check that only against some sane regexp in the
It is worth to say that more quickstarts which follow the same validation can be affected as well.
dependencies in pom.xml
arquillian-bom of 1.0.3.Final
arquillian-drone-bom of 1.2.0.Alpha1
graphene-webdriver of 2.0.0.Alpha3
jboss as 7.1.1.Final