Order product user spec green
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user