Move admin/assigns to the new UI like groupe_instructeurs

This commit is contained in:
kara Diaby 2020-06-12 18:16:07 +02:00
parent 6311fcfa2f
commit 6b07cc0659
19 changed files with 154 additions and 298 deletions

View file

@ -5,7 +5,7 @@ feature 'As an instructeur', js: true do
before do
login_as administrateur.user, scope: :user
visit admin_procedure_assigns_path(procedure)
visit admin_instructeurs_path
fill_in :instructeur_email, with: instructeur_email

View file

@ -32,14 +32,14 @@ feature 'The routing', js: true do
# add victor to littéraire groupe
find('input.select2-search__field').send_keys('victor@inst.com', :enter)
perform_enqueued_jobs { click_on 'Affecter' }
expect(page).to have_text("Linstructeur victor@inst.com a été affecté")
expect(page).to have_text("Les instructeurs ont bien été affectés à la démarche")
victor = User.find_by(email: 'victor@inst.com').instructeur
# add superwoman to littéraire groupe
find('input.select2-search__field').send_keys('superwoman@inst.com', :enter)
perform_enqueued_jobs { click_on 'Affecter' }
expect(page).to have_text("Linstructeur superwoman@inst.com a été affecté")
expect(page).to have_text("Les instructeurs ont bien été affectés à la démarche")
superwoman = User.find_by(email: 'superwoman@inst.com').instructeur