Skip to content

Commit e55f66c

Browse files
committed
Fix assertion ordering to speed up tests
1 parent 17be151 commit e55f66c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/system/casa_cases/edit_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@
5050
# uncheck all contact type options
5151
select_all_el.click
5252
within ".ts-dropdown-content" do
53-
expect(page).not_to have_css(".form-check-input--checked")
5453
expect(page).to have_css(".form-check-input--unchecked", count: 3)
54+
expect(page).not_to have_css(".form-check-input--checked")
5555
end
5656
# check all contact type options
5757
select_all_el.click
5858
within ".ts-dropdown-content" do
59-
expect(page).not_to have_css("input.form-check-input--unchecked")
6059
expect(page).to have_css("input.form-check-input--checked", count: 3)
60+
expect(page).not_to have_css("input.form-check-input--unchecked")
6161
end
6262

6363
# unselect contact_type from dropdown
@@ -247,14 +247,14 @@
247247
# uncheck all contact type options
248248
select_all_el.click
249249
within ".ts-dropdown-content" do
250-
expect(page).not_to have_css(".form-check-input--checked")
251250
expect(page).to have_css(".form-check-input--unchecked", count: 2)
251+
expect(page).not_to have_css(".form-check-input--checked")
252252
end
253253
# check all contact type options
254254
select_all_el.click
255255
within ".ts-dropdown-content" do
256-
expect(page).not_to have_css("input.form-check-input--unchecked")
257256
expect(page).to have_css("input.form-check-input--checked", count: 2)
257+
expect(page).not_to have_css("input.form-check-input--unchecked")
258258
end
259259
# since all contact type options checked, don't need to select one
260260
within ".top-page-actions" do

0 commit comments

Comments
 (0)