|
65 | 65 | it "shows all topics from first provider" do |
66 | 66 | expect(page).to have_text(english_active_topic.title) |
67 | 67 | expect(page).to have_text(spanish_active_topic.title) |
68 | | - expect(page).to have_text(english_archived_topic.title) |
| 68 | + expect(page).not_to have_text(english_archived_topic.title) |
69 | 69 | end |
70 | 70 |
|
71 | 71 | context "when searching by title" do |
|
99 | 99 | select "English", from: "search_language_id" |
100 | 100 |
|
101 | 101 | expect(page).to have_text(english_active_topic.title) |
102 | | - expect(page).to have_text(english_archived_topic.title) |
| 102 | + expect(page).not_to have_text(english_archived_topic.title) |
103 | 103 | expect(page).not_to have_text(spanish_active_topic.title) |
104 | 104 | end |
105 | 105 | end |
|
114 | 114 |
|
115 | 115 | select "2023", from: "search_year" |
116 | 116 |
|
117 | | - expect(page).to have_text(english_archived_topic.title) |
| 117 | + expect(page).not_to have_text(english_archived_topic.title) |
118 | 118 | expect(page).not_to have_text(spanish_active_topic.title) |
119 | 119 | expect(page).not_to have_text(english_active_topic.title) |
120 | 120 | end |
|
125 | 125 | select "2", from: "search_month" |
126 | 126 |
|
127 | 127 | expect(page).to have_text(spanish_active_topic.title) |
128 | | - expect(page).to have_text(english_archived_topic.title) |
| 128 | + expect(page).not_to have_text(english_archived_topic.title) |
129 | 129 | expect(page).not_to have_text(english_active_topic.title) |
130 | 130 |
|
131 | 131 | select "3", from: "search_month" |
|
165 | 165 | context "when sorting" do |
166 | 166 | it "displays users in the selected order" do |
167 | 167 | select "asc", from: "search_order" |
168 | | - expect(page).to have_text(/#{english_archived_topic.title}.+#{spanish_active_topic.title}.+#{english_active_topic.title}/m) |
| 168 | + |
| 169 | + expect(page).to have_text(/#{spanish_active_topic.title}.+#{english_active_topic.title}/m) |
169 | 170 | end |
170 | 171 | end |
171 | 172 |
|
172 | 173 | context "when switching to another provider" do |
173 | 174 | it "only shows topics from the selected provider" do |
174 | 175 | select provider_2.name, from: "provider_id" |
| 176 | + |
175 | 177 | expect(page).to have_text(other_provider_topic.title) |
176 | 178 | expect(page).not_to have_text(english_active_topic.title) |
177 | 179 | expect(page).not_to have_text(spanish_active_topic.title) |
|
196 | 198 | it "only shows topics from its first associated provider" do |
197 | 199 | expect(page).to have_text(english_active_topic.title) |
198 | 200 | expect(page).to have_text(spanish_active_topic.title) |
199 | | - expect(page).to have_text(english_archived_topic.title) |
| 201 | + expect(page).not_to have_text(english_archived_topic.title) |
200 | 202 | expect(page).not_to have_text(other_provider_topic.title) |
201 | 203 | end |
202 | 204 |
|
|
231 | 233 | select "English", from: "search_language_id" |
232 | 234 |
|
233 | 235 | expect(page).to have_text(english_active_topic.title) |
234 | | - expect(page).to have_text(english_archived_topic.title) |
| 236 | + expect(page).not_to have_text(english_archived_topic.title) |
235 | 237 | expect(page).not_to have_text(spanish_active_topic.title) |
236 | 238 | end |
237 | 239 | end |
|
246 | 248 |
|
247 | 249 | select "2023", from: "search_year" |
248 | 250 |
|
249 | | - expect(page).to have_text(english_archived_topic.title) |
| 251 | + expect(page).not_to have_text(english_archived_topic.title) |
250 | 252 | expect(page).not_to have_text(spanish_active_topic.title) |
251 | 253 | expect(page).not_to have_text(english_active_topic.title) |
252 | 254 | end |
|
257 | 259 | select "2", from: "search_month" |
258 | 260 |
|
259 | 261 | expect(page).to have_text(spanish_active_topic.title) |
260 | | - expect(page).to have_text(english_archived_topic.title) |
| 262 | + expect(page).not_to have_text(english_archived_topic.title) |
261 | 263 | expect(page).not_to have_text(english_active_topic.title) |
262 | 264 |
|
263 | 265 | select "3", from: "search_month" |
|
297 | 299 | context "when sorting" do |
298 | 300 | it "displays users in the selected order" do |
299 | 301 | select "asc", from: "search_order" |
300 | | - expect(page).to have_text(/#{english_archived_topic.title}.+#{spanish_active_topic.title}.+#{english_active_topic.title}/m) |
| 302 | + expect(page).to have_text(/#{spanish_active_topic.title}.+#{english_active_topic.title}/m) |
301 | 303 | end |
302 | 304 | end |
303 | 305 | end |
|
311 | 313 | it "only shows topics from its first associated provider" do |
312 | 314 | expect(page).to have_text(english_active_topic.title) |
313 | 315 | expect(page).to have_text(spanish_active_topic.title) |
314 | | - expect(page).to have_text(english_archived_topic.title) |
| 316 | + expect(page).not_to have_text(english_archived_topic.title) |
315 | 317 | expect(page).not_to have_text(other_provider_topic.title) |
316 | 318 | end |
317 | 319 |
|
|
0 commit comments