Undo another Capybara refactor that causes CI to break

Alas.

Closed #8331
This commit is contained in:
Sage Ross 2022-01-15 20:39:10 -08:00 committed by Benjamin Neff
parent 107f118db4
commit 6fadfb30fe
No known key found for this signature in database
GPG key ID: 971464C3F1A90194
2 changed files with 5 additions and 2 deletions

View file

@ -2,10 +2,11 @@
## Refactor
* Fix order-dependent jasmine test failures and switch to random order [#8333](https://github.com/diaspora/diaspora/pull/8333)
* Get rid of some uses of "execute_script" in feature specs [#8331](https://github.com/diaspora/diaspora/pull/8331)
## Bug fixes
## Bug fixes
## Features
# 0.7.17.0

View file

@ -9,7 +9,9 @@ Then /^I should see the mention modal$/ do
end
When /^I put in my password in the close account modal$/ do
fill_in("#close_account_password", with: @me.password)
# 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}\")")
expect(find("#closeAccountModal input#close_account_password").value).to eq(@me.password)
end