diff --git a/spec/support/common_actions/maps.rb b/spec/support/common_actions/maps.rb index 1cc8ce233..bde0f93c6 100644 --- a/spec/support/common_actions/maps.rb +++ b/spec/support/common_actions/maps.rb @@ -7,9 +7,12 @@ module Maps def submit_proposal_form check :proposal_terms_of_service click_button "Create proposal" + expect(page).to have_content "Proposal created successfully." if page.has_content?("Not now, go to my proposal") click_link "Not now, go to my proposal" + + expect(page).not_to have_link "Not now, go to my proposal" end end @@ -22,6 +25,7 @@ module Maps def submit_budget_investment_form check :budget_investment_terms_of_service click_button "Create Investment" + expect(page).to have_content "Budget Investment created successfully" end def set_arguments(arguments, mappable, mappable_path_arguments) diff --git a/spec/support/common_actions/users.rb b/spec/support/common_actions/users.rb index b6dd6a4f2..e94a7fcc3 100644 --- a/spec/support/common_actions/users.rb +++ b/spec/support/common_actions/users.rb @@ -49,6 +49,8 @@ module Users def login_as_manager(manager = create(:manager)) login_as(manager.user) visit management_sign_in_path + + expect(page).to have_content "Management" end def login_managed_user(user) @@ -74,6 +76,9 @@ module Users fill_in "user_email", with: "manuela@consul.dev" click_button "Send instructions" + + expect(page).to have_content "If your email address is in our database, in a few minutes " \ + "you will receive a link to use to reset your password." end def expect_to_be_signed_in