Merge pull request #9672 from demarches-simplifiees/add-confirmation-page-for-procedure-publication-ldu
[admin] Ajout d'une page de confirmation après la publication d'une procédure - mise en avant de l'URL à partager
This commit is contained in:
commit
b782bcdd2b
11 changed files with 63 additions and 25 deletions
|
@ -45,6 +45,7 @@ describe 'As an administrateur, I want to manage the procedure’s attestation',
|
|||
click_on("Publier")
|
||||
# validate publication
|
||||
within('form') { click_on 'Publier' }
|
||||
click_on("Revenir à la page de la démarche")
|
||||
|
||||
# now process to disable attestation
|
||||
find_attestation_card.click
|
||||
|
|
|
@ -43,7 +43,8 @@ describe 'Publishing a procedure', js: true do
|
|||
fill_in 'lien_site_web', with: 'http://some.website'
|
||||
within('form') { click_on 'Publier' }
|
||||
|
||||
expect(page).to have_text('Démarche publiée')
|
||||
expect(page).to have_text('Votre démarche est désormais publiée !')
|
||||
expect(page).to have_button(title: 'Copiez le lien de la procédure')
|
||||
end
|
||||
|
||||
context 'when the procedure has invalid champs' do
|
||||
|
@ -91,7 +92,7 @@ describe 'Publishing a procedure', js: true do
|
|||
fill_in 'lien_site_web', with: 'http://some.website'
|
||||
click_on 'publish'
|
||||
|
||||
expect(page).to have_text('Démarche publiée')
|
||||
expect(page).to have_text('Votre démarche est désormais publiée !')
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -122,7 +123,7 @@ describe 'Publishing a procedure', js: true do
|
|||
fill_in 'lien_site_web', with: 'http://some.website'
|
||||
find('#publish').click
|
||||
|
||||
expect(page).to have_text('Démarche publiée')
|
||||
expect(page).to have_text('Votre démarche est désormais publiée !')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -230,7 +230,7 @@ describe 'fetch API Particulier Data', js: true do
|
|||
fill_in 'lien_site_web', with: 'http://some.website'
|
||||
within('form') { click_on 'Publier' }
|
||||
|
||||
expect(page).to have_text('Démarche publiée')
|
||||
expect(page).to have_text('Votre démarche est désormais publiée !')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -254,7 +254,7 @@ describe 'The routing with rules', js: true do
|
|||
fill_in 'lien_site_web', with: 'http://some.website'
|
||||
within('form') { click_on 'Publier' }
|
||||
|
||||
expect(page).to have_text('Démarche publiée')
|
||||
expect(page).to have_text('Votre démarche est désormais publiée !')
|
||||
end
|
||||
|
||||
def user_send_dossier(user, groupe)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue