diff --git a/spec/support/system_helpers.rb b/spec/support/system_helpers.rb index e68926aed..7728cb875 100644 --- a/spec/support/system_helpers.rb +++ b/spec/support/system_helpers.rb @@ -76,13 +76,6 @@ module SystemHelpers click_on 'Ajouter un champ' end - def remove_flash_message - expect(page).to have_button('Ajouter un champ', disabled: false) - expect(page).to have_content('Formulaire enregistré') - execute_script("document.querySelector('#flash_message').remove();") - execute_script("document.querySelector('#autosave-notice').remove();") - end - def hide_autonotice_message expect(page).to have_text('Formulaire enregistré') execute_script("document.querySelector('#autosave-notice').classList.add('hidden');")