|
6 | 6 | context "logged in as an admin" do |
7 | 7 | let(:user) { create(:casa_admin, casa_org: organization) } |
8 | 8 |
|
9 | | - it "can edit supervisor by clicking on the edit link from the supervisors list page", :js do |
| 9 | + it "can edit supervisor by clicking on the edit link from the supervisors list page" do |
10 | 10 | supervisor_name = "Leslie Knope" |
11 | 11 | create(:supervisor, display_name: supervisor_name, casa_org: organization) |
12 | 12 | sign_in user |
|
22 | 22 | expect(page).to have_text("Editing Supervisor") |
23 | 23 | end |
24 | 24 |
|
25 | | - it "can edit supervisor by clicking on the supervisor's name from the supervisors list page", :js do |
| 25 | + it "can edit supervisor by clicking on the supervisor's name from the supervisors list page" do |
26 | 26 | supervisor_name = "Leslie Knope" |
27 | 27 | create(:supervisor, display_name: supervisor_name, casa_org: organization) |
28 | 28 | sign_in user |
|
110 | 110 | expect(inactive_supervisor.reload).to be_active |
111 | 111 | end |
112 | 112 |
|
113 | | - it "can resend invitation to a supervisor", :js do |
| 113 | + it "can resend invitation to a supervisor" do |
114 | 114 | supervisor = create :supervisor, casa_org: organization |
115 | 115 |
|
116 | 116 | sign_in user |
|
126 | 126 | expect(deliveries.last.subject).to have_text "CASA Console invitation instructions" |
127 | 127 | end |
128 | 128 |
|
129 | | - it "can convert the supervisor to an admin", :js do |
| 129 | + it "can convert the supervisor to an admin" do |
130 | 130 | supervisor = create(:supervisor, casa_org_id: organization.id) |
131 | 131 |
|
132 | 132 | sign_in user |
|
143 | 143 | context "logged in as a supervisor" do |
144 | 144 | let(:supervisor) { create(:supervisor) } |
145 | 145 |
|
146 | | - it "can't deactivate a supervisor", :js do |
| 146 | + it "can't deactivate a supervisor" do |
147 | 147 | supervisor2 = create :supervisor, casa_org: organization |
148 | 148 |
|
149 | 149 | sign_in supervisor |
|
0 commit comments