Skip to content

Commit d5b052f

Browse files
stefannibrasilcompwron
authored andcommitted
Remove unused :js from tests that don't require it
This can help with speeding up tests by using `:js` to contexts only when necessary.
1 parent ac51b70 commit d5b052f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spec/system/supervisors/edit_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
context "logged in as an admin" do
77
let(:user) { create(:casa_admin, casa_org: organization) }
88

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
1010
supervisor_name = "Leslie Knope"
1111
create(:supervisor, display_name: supervisor_name, casa_org: organization)
1212
sign_in user
@@ -22,7 +22,7 @@
2222
expect(page).to have_text("Editing Supervisor")
2323
end
2424

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
2626
supervisor_name = "Leslie Knope"
2727
create(:supervisor, display_name: supervisor_name, casa_org: organization)
2828
sign_in user
@@ -110,7 +110,7 @@
110110
expect(inactive_supervisor.reload).to be_active
111111
end
112112

113-
it "can resend invitation to a supervisor", :js do
113+
it "can resend invitation to a supervisor" do
114114
supervisor = create :supervisor, casa_org: organization
115115

116116
sign_in user
@@ -126,7 +126,7 @@
126126
expect(deliveries.last.subject).to have_text "CASA Console invitation instructions"
127127
end
128128

129-
it "can convert the supervisor to an admin", :js do
129+
it "can convert the supervisor to an admin" do
130130
supervisor = create(:supervisor, casa_org_id: organization.id)
131131

132132
sign_in user
@@ -143,7 +143,7 @@
143143
context "logged in as a supervisor" do
144144
let(:supervisor) { create(:supervisor) }
145145

146-
it "can't deactivate a supervisor", :js do
146+
it "can't deactivate a supervisor" do
147147
supervisor2 = create :supervisor, casa_org: organization
148148

149149
sign_in supervisor

0 commit comments

Comments
 (0)