Closed rkpatra201 closed 8 months ago
After adding 2 different items to cart , below is my cart list.
The catalogItemId I have added to cart are: 253756624600300, 253352770658500
As a next step I will make 253352770658500 as SAVE_LATER.
curl request:
curl --location --request PUT 'localhost:8080/cart/253352770658500/state' \ --header 'X-AUTH-TOKEN: YjM3YTFmNjUtNmJiMi00ZTMyLWJlNGEtZDE0ZjI2YWNiNjli' \ --header 'Content-Type: application/json' \ --data '{ "catalogItemId": 253352770658500, "state": "SAVE_LATER" }'
After SAVE_LATER api execution, my CART_LIST has one item with SAVE_LATER
Test updated and coverage is 100%
After adding 2 different items to cart , below is my cart list.
The catalogItemId I have added to cart are: 253756624600300, 253352770658500
As a next step I will make 253352770658500 as SAVE_LATER.
curl request:
curl --location --request PUT 'localhost:8080/cart/253352770658500/state' \ --header 'X-AUTH-TOKEN: YjM3YTFmNjUtNmJiMi00ZTMyLWJlNGEtZDE0ZjI2YWNiNjli' \ --header 'Content-Type: application/json' \ --data '{ "catalogItemId": 253352770658500, "state": "SAVE_LATER" }'
After SAVE_LATER api execution, my CART_LIST has one item with SAVE_LATER
Test updated and coverage is 100%