Skip to content

Commit 196be47

Browse files
Tweak to search controller test
With multiple stimulus panels, we need to be more specific in tests about what should not appear
1 parent df28faf commit 196be47

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/controllers/search_controller_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def setup
275275
end
276276
assert_response :success
277277

278-
assert_select('div[data-content-loader-url-value]', 0)
278+
assert_select('div[data-content-loader-url-value].fact-container', 0)
279279
end
280280
end
281281

@@ -305,7 +305,7 @@ def setup
305305

306306
assert_response :success
307307

308-
assert_select('div[data-content-loader-url-value]', 0)
308+
assert_select('div[data-content-loader-url-value].fact-container', 0)
309309
end
310310
end
311311

@@ -333,7 +333,7 @@ def setup
333333
end
334334
assert_response :success
335335

336-
assert_select('div[data-content-loader-url-value]', 0)
336+
assert_select('div[data-content-loader-url-value].fact-container', 0)
337337
end
338338
end
339339

@@ -361,7 +361,7 @@ def setup
361361
end
362362
assert_response :success
363363

364-
assert_select('div[data-content-loader-url-value]', 0)
364+
assert_select('div[data-content-loader-url-value].fact-container', 0)
365365
end
366366
end
367367

0 commit comments

Comments
 (0)