Replace "execute_script" for filling in Close Account modal

Using "fill_in" seems to work fine with the apparition driver, and will hopefully also work on CI now.
This commit is contained in:
Sage Ross 2021-12-30 14:00:31 -08:00 committed by Benjamin Neff
parent ef7a5f8d6e
commit b67cf8e983
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -9,9 +9,7 @@ Then /^I should see the mention modal$/ do
end end
When /^I put in my password in the close account modal$/ do When /^I put in my password in the close account modal$/ do
# Capybara helpers fill_in, set and send_keys currently don't work fill_in("#close_account_password", with: @me.password)
# inside of Bootstrap modals on Travis CI
execute_script("$(\"#closeAccountModal input#close_account_password\").val(\"#{@me.password}\")")
expect(find("#closeAccountModal input#close_account_password").value).to eq(@me.password) expect(find("#closeAccountModal input#close_account_password").value).to eq(@me.password)
end end