Skip to content

Commit

Permalink
fix: add vist supervisors_path to load supervisors list before visiti…
Browse files Browse the repository at this point in the history
…ng supervisors edit page and click on Change to Admin button
  • Loading branch information
tonyaraujop committed Sep 27, 2023
1 parent e89feab commit d7897b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/system/supervisors/edit_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@

sign_in user

visit supervisors_path
visit edit_supervisor_path(supervisor)

click_on "Change to Admin"

expect(page).to have_text("Supervisor was changed to Admin.")
Expand Down

0 comments on commit d7897b5

Please sign in to comment.