Fix minor spec issues

This commit is contained in:
Rohan Mitchell
2015-01-07 16:06:23 +11:00
parent 2bad590ef4
commit 370133b875
2 changed files with 2 additions and 2 deletions

View File

@@ -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'

View File

@@ -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