diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index a3ecc187d..06d22b895 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -47,6 +47,7 @@ end Capybara.exact = true Capybara.enable_aria_label = true +Capybara.default_set_options = { clear: :backspace } Capybara.disable_animation = true OmniAuth.config.test_mode = true diff --git a/spec/system/budgets/ballots_spec.rb b/spec/system/budgets/ballots_spec.rb index 3306425e5..6876b4a79 100644 --- a/spec/system/budgets/ballots_spec.rb +++ b/spec/system/budgets/ballots_spec.rb @@ -645,6 +645,10 @@ describe "Ballots" do click_button "Save heading" expect(page).to have_content "Heading updated successfully" + + within "tr", text: "New York" do + expect(page).to have_css "td", exact_text: "€10" + end end in_browser(:user) do