Skip to content

Commit 8e2a98d

Browse files
committed
fix tests
1 parent 41274ec commit 8e2a98d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

spec/system/admin/admin_manages_suggestion_valuators_spec.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@
6464
end
6565

6666
it "shows an update button" do
67-
expect(page).to have_button("#js-submit-assign-suggestion-to-valuator", count: 1)
67+
expect(page).to have_button("Assign", count: 1)
6868
end
6969

7070
context "when submitting the form" do
7171
before do
7272
within "#js-form-assign-suggestions-to-valuator" do
7373
select valuator.name, from: :valuator_role_id
74-
click_link_or_button("#js-submit-assign-suggestion-to-valuator")
74+
click_link_or_button("Assign")
7575
end
7676
end
7777

@@ -131,14 +131,14 @@
131131
end
132132

133133
it "shows an update button" do
134-
expect(page).to have_button("#js-submit-unassign-suggestions-from-valuator", count: 1)
134+
expect(page).to have_button("Unassign", count: 1)
135135
end
136136

137137
context "when submitting the form" do
138138
before do
139139
within "#js-form-unassign-suggestions-from-valuator" do
140140
select valuator.name, from: :valuator_role_id
141-
click_link_or_button("button#js-submit-unassign-suggestions-from-valuator")
141+
click_link_or_button("Unassign")
142142
end
143143
end
144144

spec/system/admin/admin_manages_suggestions_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
within "#js-publish-answers-actions" do
6161
expect(page).to have_content("Answers for 2 suggestions will be published.")
6262
end
63-
click_link_or_button("button#js-submit-publish-answers")
63+
click_link_or_button("Publish")
6464
20.times do
6565
# wait for the ajax call to finish
6666
sleep(1)

0 commit comments

Comments
 (0)