From dd362055dff125802d9c5adde3420a6feffed5a7 Mon Sep 17 00:00:00 2001 From: Corinne Durrmeyer Date: Wed, 23 Oct 2024 14:58:21 +0200 Subject: [PATCH] Remove useless code --- spec/support/system_helpers.rb | 7 ------- 1 file changed, 7 deletions(-) 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');")