sign_up: display procedure context if available

This commit is contained in:
Pierre de La Morinerie 2019-01-14 15:26:53 +00:00
parent 4fd9fa6610
commit ae763d93f3
5 changed files with 34 additions and 16 deletions

View file

@ -50,6 +50,14 @@ module FeatureHelpers
visit "/users/confirmation?#{token_params}"
end
def expect_page_to_have_procedure_description(procedure)
# Procedure context on the page
expect(page).to have_content(procedure.libelle)
expect(page).to have_content(procedure.description)
# Procedure contact infos in the footer
expect(page).to have_content(procedure.service.email)
end
end
RSpec.configure do |config|