You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My code working when i open Amazon and Checkout, but when is time to do testing with Jasmin, i have a problem... I have to do sam changes in my code and after that is fine with Jamin...
Then i have problem when i open Amazon and Checkout :D
From the last screenshot provided,
it told us that the AddToCart function from cart.js was throwing error (line#28).
Mind share the AddToCart function from cart.js here to further troubleshoot or discuss?
Probably, you have updated the code to get the selected value from the dropdown menu, rather than adding 1 item each time an item is added to the cart.
Previous:
If that's the case. The 'value' mentioned in the errors should be this value property.
Therefore, you have to edit the code a little bit so as not to accidentally take null or undefined values using a 'Default Operator'.
As in a situation like testing, we don't get the quantity from a dropdown menu. We are just adding an item using only the product ID.
After:
Check whether the value is falsy. If so, assign a default value.
After refactoring the code, your test cases should pass without error.
My code working when i open Amazon and Checkout, but when is time to do testing with Jasmin, i have a problem... I have to do sam changes in my code and after that is fine with Jamin...



Then i have problem when i open Amazon and Checkout :D