Product variant fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user