refactor(attestation_template): move to procedure
This commit is contained in:
parent
55c5de2c2c
commit
cafda4f6f0
20 changed files with 170 additions and 249 deletions
|
@ -33,7 +33,7 @@ describe 'As an administrateur, I want to manage the procedure’s attestation',
|
|||
fill_in "Corps du document", with: 'BOOM'
|
||||
find('.toggle-switch-control').click
|
||||
click_on 'Enregistrer'
|
||||
page.find(".alert-success", text: "L'attestation a bien été sauvegardée")
|
||||
page.find(".alert-success", text: "Le model de l’attestation a bien été enregistrée")
|
||||
|
||||
# check attestation
|
||||
visit admin_procedure_path(procedure)
|
||||
|
@ -49,7 +49,7 @@ describe 'As an administrateur, I want to manage the procedure’s attestation',
|
|||
find_attestation_card.click
|
||||
find('.toggle-switch-control').click
|
||||
click_on 'Enregistrer'
|
||||
page.find(".alert-success", text: "L'attestation a bien été modifiée")
|
||||
page.find(".alert-success", text: "Le model de l’attestation a bien été modifiée")
|
||||
|
||||
# check attestation is now disabled
|
||||
visit admin_procedure_path(procedure)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue