From b67cf8e983ae6a98cee32473c3fe81e71114516f Mon Sep 17 00:00:00 2001 From: Sage Ross Date: Thu, 30 Dec 2021 14:00:31 -0800 Subject: [PATCH] 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. --- features/step_definitions/modal_steps.rb | 4 +--- 1 file changed, 1 insertion(+), 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