mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix minor spec issues
This commit is contained in:
@@ -75,7 +75,7 @@ feature "shopping with variant overrides defined", js: true do
|
||||
|
||||
page.should have_selector "tr.line-item.variant-#{v1.id} .cart-item-price", text: '$61.11'
|
||||
page.should have_field "order[line_items_attributes][0][quantity]", with: '2'
|
||||
page.should have_selector "tr.line-item.variant-#{v1.id} .cart-item-total", text: '$122.21'
|
||||
page.should have_selector "tr.line-item.variant-#{v1.id} .cart-item-total", text: '$122.22'
|
||||
|
||||
page.should have_selector "#edit-cart .item-total", text: '$122.21'
|
||||
page.should have_selector "#edit-cart .grand-total", text: '$122.21'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module ShopWorkflow
|
||||
def add_to_cart
|
||||
wait_until_button_enabled 'input.add_to_cart'
|
||||
wait_until_enabled 'input.add_to_cart'
|
||||
first("input.add_to_cart:not([disabled='disabled'])").click
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user