Skip to content

Commit

Permalink
Merge pull request #5239 from tonyaraujop/fix-5130
Browse files Browse the repository at this point in the history
Bug: Flaky Test Did not Receive Confirmation Text After Changing Admin to Supervisor
  • Loading branch information
FireLemons authored Oct 7, 2023
2 parents 83efdc5 + 8901d89 commit 1aac7b8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/system/casa_admins/edit_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,12 @@
end

it "can convert the admin to a supervisor", js: true do
another = create(:casa_admin)
visit edit_casa_admin_path(another)
visit edit_casa_admin_path(admin)

click_on "Change to Supervisor"

expect(page).to have_text("Admin was changed to Supervisor.")
expect(User.find(another.id)).to be_supervisor
expect(User.find(admin.id)).to be_supervisor
end

it "is not able to edit last sign in" do
Expand Down

0 comments on commit 1aac7b8

Please sign in to comment.