Skip to content

Commit e3e7033

Browse files
committed
Include hidden elements for turbo-cable-stream-source selector
Chrome considers these elements not visible (likely due to their 0px size) so the assertion never matches. This changes the default visible flag to include all elements.
1 parent cb47713 commit e3e7033

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/turbo/system_test_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ def assert_no_turbo_cable_stream_source(...)
8080
end
8181

8282
Capybara.add_selector :turbo_cable_stream_source do
83+
visible :all
84+
8385
xpath do |locator|
8486
xpath = XPath.descendant.where(XPath.local_name == "turbo-cable-stream-source")
8587
xpath.where(SignedStreamNameConditions.new(locator).reduce(:|))

0 commit comments

Comments
 (0)