Skip to content

Commit 3aa7d4d

Browse files
author
Raushan Kumar Raman
committed
bug(case_contact): fixed the order of case contacts
1 parent 1ca4ea9 commit 3aa7d4d

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

spec/system/case_contacts/index_spec.rb

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
end
6666
end
6767

68-
describe "filtering case contacts" do
68+
describe "automated filtering case contacts" do
6969
describe "by date of contact" do
7070
it "only shows the contacts with the correct date" do
7171
yesterday = Time.zone.yesterday
@@ -88,8 +88,6 @@
8888
fill_in "filterrific_occurred_starting_at", with: yesterday
8989
fill_in "filterrific_occurred_ending_at", with: Time.zone.tomorrow
9090

91-
click_on "Filter"
92-
9391
expect(page).to have_no_content day_before_yesterday_display
9492
expect(page).to have_content yesterday_display
9593
expect(page).to have_content today_display
@@ -125,8 +123,6 @@
125123

126124
check "Hide drafts"
127125

128-
click_on "Filter"
129-
130126
expect(page).to have_no_content "Draft"
131127
end
132128
end
@@ -143,8 +139,6 @@
143139
it "does not expand menu when filtering only by sticky filter" do
144140
check "Hide drafts"
145141

146-
click_on "Filter"
147-
148142
expect(page).to have_field "Hide drafts", type: :checkbox
149143
expect(page).to have_no_content "Other filters"
150144
end
@@ -159,7 +153,6 @@
159153
click_on "Expand / Hide"
160154
select "In Person", from: "Contact medium"
161155

162-
click_on "Filter"
163156

164157
expect(page).to have_content "Other filters"
165158
end
@@ -225,7 +218,7 @@
225218
click_on "Expand / Hide"
226219
fill_in "filterrific_occurred_starting_at", with: yesterday
227220
fill_in "filterrific_occurred_ending_at", with: Time.zone.tomorrow
228-
click_on "Filter"
221+
229222
expect(page).to have_text("Case 2 Notes")
230223
expect(page).to have_no_text("Case 1 Notes")
231224

@@ -237,7 +230,7 @@
237230
click_on "Expand / Hide"
238231
fill_in "filterrific_occurred_starting_at", with: yesterday
239232
fill_in "filterrific_occurred_ending_at", with: Time.zone.tomorrow
240-
click_on "Filter"
233+
241234
# no contacts because we're only showing case 1 and that occurred before the filter dates
242235
expect(page).to have_no_text("Case 1 Notes")
243236
expect(page).to have_no_text("Case 2 Notes")

0 commit comments

Comments
 (0)