-
Diego de Araújo Martinez Camarinha authored
The profile creation feature was randomly breaking because the occupation field sometimes was not filled. That happened because of the way we selected an option of the occupation list: we fetched all the options, and chose one randomly. The problem was that the list of fetched options came with the placeholder that has nil value. Therefore, sometimes we chose the nil value and used it to submit the form. For we have a presence validation for the occupation attribute, the test failed. Now, we remove the first option of the fetched list before choosing an occupation. Because the fetched options come on the same order defined on the dropdown, the first option is always the one with the nil value. Therefore, we won't submit the form without the occupation attribute set correctly. Signed-off-by: Heitor Reis <marcheing@gmail.com>
d7714ff6