mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Replace tomselect_search_and_select by tomselect_select
In these scenarios, searching for the option is not actually required, we can directly click on the needed option. It prevent issue with the dropdown option staying open and breaking specs.
This commit is contained in:
@@ -934,8 +934,8 @@ describe '
|
||||
fill_in "Order number", with: "R123456"
|
||||
tomselect_multiselect order_cycle.name, from: 'q[order_cycle_id_in][]'
|
||||
tomselect_multiselect distributor.name, from: 'q[distributor_id_in][]'
|
||||
tomselect_search_and_select shipping_method.name, from: 'shipping_method_id'
|
||||
tomselect_search_and_select "complete", from: 'q[state_eq]'
|
||||
tomselect_select shipping_method.name, from: 'shipping_method_id'
|
||||
tomselect_select "complete", from: 'q[state_eq]'
|
||||
fill_in "Email", with: user.email
|
||||
fill_in "First name begins with", with: "J"
|
||||
fill_in "Last name begins with", with: "D"
|
||||
|
||||
@@ -233,7 +233,7 @@ describe 'Subscriptions' do
|
||||
before do
|
||||
visit admin_subscriptions_path
|
||||
page.find("#new-subscription").click
|
||||
tomselect_search_and_select shop.name, from: "subscription[shop_id]"
|
||||
tomselect_select shop.name, from: "subscription[shop_id]"
|
||||
click_button "Continue"
|
||||
end
|
||||
|
||||
|
||||
@@ -183,7 +183,7 @@ describe 'Subscriptions' do
|
||||
before do
|
||||
visit admin_subscriptions_path
|
||||
page.find("#new-subscription").click
|
||||
tomselect_search_and_select shop.name, from: "subscription[shop_id]"
|
||||
tomselect_select shop.name, from: "subscription[shop_id]"
|
||||
click_button "Continue"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user