Move admin/assigns to the new UI like groupe_instructeurs
This commit is contained in:
parent
6311fcfa2f
commit
6b07cc0659
19 changed files with 154 additions and 298 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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("L’instructeur 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("L’instructeur 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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue