From 370133b875070ed219152cdc2af85a4e8f59946c Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Wed, 7 Jan 2015 16:06:23 +1100 Subject: [PATCH] Fix minor spec issues --- spec/features/consumer/shopping/variant_overrides_spec.rb | 2 +- spec/support/request/shop_workflow.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/consumer/shopping/variant_overrides_spec.rb b/spec/features/consumer/shopping/variant_overrides_spec.rb index 8aec1079ea..4e34fde117 100644 --- a/spec/features/consumer/shopping/variant_overrides_spec.rb +++ b/spec/features/consumer/shopping/variant_overrides_spec.rb @@ -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' diff --git a/spec/support/request/shop_workflow.rb b/spec/support/request/shop_workflow.rb index 505fccb03c..8f088095e8 100644 --- a/spec/support/request/shop_workflow.rb +++ b/spec/support/request/shop_workflow.rb @@ -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