Name checkbox element id var more informatively

This commit is contained in:
Steve Roberts
2020-05-26 09:53:51 +10:00
parent 446bf268b4
commit 2bb3cf1c54

View File

@@ -35,9 +35,9 @@ feature '
scenario "select all products" do
# replace with scroll_to method when upgrading to Capybara >= 3.13.0
cb_id = "order_cycle_incoming_exchange_0_select_all_variants"
page.execute_script("document.getElementById('#{cb_id}').scrollIntoView()")
check cb_id
checkbox_id = "order_cycle_incoming_exchange_0_select_all_variants"
page.execute_script("document.getElementById('#{checkbox_id}').scrollIntoView()")
check checkbox_id
expect_all_products_loaded