refactor and move to selenium
This commit is contained in:
@@ -66,6 +66,7 @@ step "the user order :product_name should be in the order list with price" do |p
|
||||
concerning_product = Product.find_by_name(product_name)
|
||||
#ember_order = ember_store['product_orders'].find{|po| po['product_id'] == concerning_product.id}
|
||||
#ember_order = ember_find('product_order', concerning_product.id)
|
||||
sleep 0.1
|
||||
ember_order = ember_all('product_order').find{|po| po['product_id'] == concerning_product.id }
|
||||
quantity = ember_order['quantity']
|
||||
order_price = quantity * concerning_product.price
|
||||
|
||||
Reference in New Issue
Block a user