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:
Lisa Durand 2023-11-16 11:08:54 +00:00 committed by GitHub
commit b782bcdd2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 63 additions and 25 deletions

View file

@ -45,6 +45,7 @@ describe 'As an administrateur, I want to manage the procedures 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

View file

@ -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

View file

@ -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

View file

@ -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)