sign_up: display procedure context if available
This commit is contained in:
parent
4fd9fa6610
commit
ae763d93f3
5 changed files with 34 additions and 16 deletions
|
@ -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|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue