Skip to content

Commit 83b0aa8

Browse files
committed
fix(tests): click not visible filter button
1 parent 0298f7a commit 83b0aa8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spec/support/capybara_helpers.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ def on_input_ctx(input_id, &block)
66
end
77

88
def click_filter_btn
9-
within("#filters_sidebar_section") do
10-
click_button("Filter")
11-
end
9+
page.execute_script("document.getElementsByClassName('filter_form')[0].submit()")
1210
end
1311

1412
def expect_text(text)

0 commit comments

Comments
 (0)