mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Re enable assertion
It's working fine with the current design
This commit is contained in:
@@ -850,12 +850,11 @@ RSpec.describe '
|
||||
|
||||
find('.edit-method').click
|
||||
|
||||
# TODO assertion not working due to overlapping elements on new BUU design
|
||||
# expect(page).to have_select2('selected_shipping_rate_id',
|
||||
# with_options: [
|
||||
# shipping_method_for_distributor1.name,
|
||||
# different_shipping_method_for_distributor1.name
|
||||
# ], without_options: [shipping_method_for_distributor2.name])
|
||||
expect(page).to have_select2('selected_shipping_rate_id',
|
||||
with_options: [
|
||||
shipping_method_for_distributor1.name,
|
||||
different_shipping_method_for_distributor1.name
|
||||
], without_options: [shipping_method_for_distributor2.name])
|
||||
|
||||
select2_select(different_shipping_method_for_distributor1.name,
|
||||
from: 'selected_shipping_rate_id')
|
||||
|
||||
Reference in New Issue
Block a user