mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Name checkbox element id var more informatively
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user