Product variant fix

This commit is contained in:
2015-08-13 16:53:34 +02:00
parent 0415603a49
commit 6e97f74b0a
23 changed files with 72 additions and 26 deletions
@@ -82,6 +82,16 @@ end
step "the user order total should not be visible for only one order" do
page.should_not have_selector ".product-orders .total"
end
step "the user selects the product variant :variant" do |variant|
# Manual in stead of js_click because capybara does not support the contains statement
#find ".modal .choose-product-variant-button"
find ".modal"
page.evaluate_script %|$('.modal a:contains("#{variant}")').click()|
end
step "the user order :product_name with variant :variant should be in the order list" do |product_name, variant|
page.should have_content "1 x #{product_name} (#{variant})"
end
step "the user order total should be visible with the correct total price" do
within ".product-orders .total" do