Answer the question
In order to leave comments, you need to log in
Write jsapi test for shopping cart?
There is an online store, you need to write a test for a basket of goods that measures the acceptable number of different products in the basket.
Using jsapi we put the product in the cart
Cart.addProduct({
id: 10,
quantity: 3,
callback: function(success, product, cart){
console.log(success); // true or false
console.log(product.name);
}
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question