Remove useless code

This commit is contained in:
Corinne Durrmeyer 2024-10-23 14:58:21 +02:00
parent f3d0968da1
commit dd362055df
No known key found for this signature in database
GPG key ID: DDC049DDA35585B6

View file

@ -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');")