fix(spec): remove strange click

This commit is contained in:
simon lehericey 2022-11-21 15:19:19 +01:00 committed by LeSim
parent 4babee2591
commit f532eee9f6

View file

@ -23,7 +23,6 @@ describe 'Administrateurs can manage administrateurs', js: true do
scenario 'the administrator can add another administrator' do
another_administrateur = create(:administrateur)
visit admin_procedure_administrateurs_path(procedure)
find('#administrateurs').click
fill_in('administrateur_email', with: another_administrateur.email)
@ -41,8 +40,6 @@ describe 'Administrateurs can manage administrateurs', js: true do
administrateur.administrateurs_procedures.update_all(manager: true)
visit admin_procedure_administrateurs_path(procedure)
find('#administrateurs').click
expect(page).to have_css("#administrateur_email[disabled=\"disabled\"]")
end
end