Add user product info
This commit is contained in:
@@ -27,3 +27,8 @@ step "there is a signed in user with an active order" do
|
||||
step "I am signed in as a user"
|
||||
step "the user has an active order"
|
||||
end
|
||||
|
||||
step "the user clicks on the more info button for the product with name :product_name" do |product_name|
|
||||
product = @product && @product.name == product_name ? @product : Product.find_by_name(product_name)
|
||||
find(".order-product-#{product.id} .show-product-description").click
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user