Remove useless code
This commit is contained in:
parent
f3d0968da1
commit
dd362055df
1 changed files with 0 additions and 7 deletions
|
@ -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');")
|
||||
|
|
Loading…
Reference in a new issue