Merge pull request #9107 from demarches-simplifiees/remove-previsualisation-from-admin-procedure-creation

[Refonte page accueil demarche] Formulaire de création admin full page - plus de prévisualisation
This commit is contained in:
Lisa Durand 2023-06-05 12:10:31 +00:00 committed by GitHub
commit 968f05f648
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 73 additions and 148 deletions

View file

@ -41,14 +41,6 @@ describe 'Creating a new procedure', js: true do
add_champ
expect(page).to have_selector('.type-de-champ', count: 1)
click_on Procedure.last.libelle
preview_window = window_opened_by { find('#preview-procedure').click }
within_window(preview_window) do
expect(page).to have_current_path(apercu_admin_procedure_path(Procedure.last))
expect(page).to have_field('libelle de champ')
end
end
scenario 'a warning is displayed when creating an invalid procedure' do

View file

@ -44,7 +44,6 @@ describe 'Publishing a procedure', js: true do
click_on 'Publier'
expect(page).to have_text('Démarche publiée')
expect(page).to have_selector('#preview-procedure')
end
context 'when the procedure has invalid champs' do
@ -93,7 +92,6 @@ describe 'Publishing a procedure', js: true do
click_on 'publish'
expect(page).to have_text('Démarche publiée')
expect(page).to have_selector('#preview-procedure')
end
end
@ -125,7 +123,6 @@ describe 'Publishing a procedure', js: true do
find('#publish').click
expect(page).to have_text('Démarche publiée')
expect(page).to have_selector('#preview-procedure')
end
end

View file

@ -32,10 +32,6 @@ describe 'Administrateurs can edit procedures', js: true do
expect(page).to have_field('procedure_libelle', with: procedure.libelle)
fill_in('procedure_libelle', with: 'Ma petite démarche')
within('.procedure-form__preview') do
expect(page).to have_content('Ma petite démarche')
end
click_on 'Enregistrer'
expect(page).to have_selector('.fr-breadcrumb li', text: 'Ma petite démarche')