From cf5b538c1c85f0ef91b0ddd2df92296f158dd58b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 12 Jul 2019 00:43:01 +0200 Subject: [PATCH] Check page between AJAX requests While the test should work without this assertion, the intention of the test is to check what happens if a user selects and investment and, once it's selected, clicks the "next" link. --- spec/features/admin/budget_investments_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/features/admin/budget_investments_spec.rb b/spec/features/admin/budget_investments_spec.rb index a1c79fa33..51f983939 100644 --- a/spec/features/admin/budget_investments_spec.rb +++ b/spec/features/admin/budget_investments_spec.rb @@ -1585,6 +1585,8 @@ describe "Admin budget investments" do within("#budget_investment_#{selected_bi.id}") do click_link("Selected") + + expect(page).to have_link "Select" end click_link("Next")