Order product user spec green

This commit is contained in:
2014-06-25 17:23:43 +02:00
parent 58f0937570
commit 10bc926e87
10 changed files with 41 additions and 11 deletions
@@ -1,7 +1,7 @@
step "the user clicks on the order :product_name twice" do |product_name|
@last_product = instance_variable_get product_name.underscore.gsub(/\s/, '_').prepend('@')
button = find ".order-product-#{@last_product.id}"
button = find ".order-product-#{@last_product.id} .add-product-to-list"
2.times { button.click }
end