• Diego de Araújo Martinez Camarinha's avatar
    Drop first element of occupation list on acceptance tests · d7714ff6
    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
    Signed-off-by: marcheing's avatarHeitor Reis <marcheing@gmail.com>
Last commit
Last update
profile Loading commit data...
step_definitions Loading commit data...
support Loading commit data...
login.feature Loading commit data...
registration.feature Loading commit data...
send_content.feature Loading commit data...