diff options
author | Sage Ross <ragesoss@gmail.com> | 2021-12-31 01:00:31 +0300 |
---|---|---|
committer | Benjamin Neff <benjamin@coding4coffee.ch> | 2022-06-19 20:29:57 +0300 |
commit | b67cf8e983ae6a98cee32473c3fe81e71114516f (patch) | |
tree | ed75832300fd6eec2c1de843b196ba193cac7ddc /features | |
parent | ef7a5f8d6ecd861bac4f58fee9e00edb6c903541 (diff) |
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.
Diffstat (limited to 'features')
-rw-r--r-- | features/step_definitions/modal_steps.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/features/step_definitions/modal_steps.rb b/features/step_definitions/modal_steps.rb index ceea1f667..a166a5ec9 100644 --- a/features/step_definitions/modal_steps.rb +++ b/features/step_definitions/modal_steps.rb @@ -9,9 +9,7 @@ Then /^I should see the mention modal$/ do end When /^I put in my password in the close account modal$/ do - # Capybara helpers fill_in, set and send_keys currently don't work - # inside of Bootstrap modals on Travis CI - execute_script("$(\"#closeAccountModal input#close_account_password\").val(\"#{@me.password}\")") + fill_in("#close_account_password", with: @me.password) expect(find("#closeAccountModal input#close_account_password").value).to eq(@me.password) end |