SAP / spartacus

Spartacus is a lean, Angular-based JavaScript storefront for SAP Commerce Cloud that communicates exclusively through the Commerce REST API.
Apache License 2.0
738 stars 383 forks source link

Cart page E2E tests / SPA-1028 #46

Closed Xymmer closed 5 years ago

Xymmer commented 5 years ago

For other E2E tests, we decided to focus on where backend adds value or can influence or cause breakage.

The assumption is that these kinds of tests are in addition to what Stan already is working on, so check with him. E.g. you can register successfully, and the user is logged in.


Make sure not to redo what was already done with the big happy path that stan did, but here are some E2E cart ideas.


Is the following implemented? If not create a spa ticket for future.

 

wishfulthinkerme commented 5 years ago

I've talked with Stan that the test below should be done here, instead of https://github.com/SAP/cloud-commerce-spartacus-storefront/issues/59:

Cart merging tests that aren’t in big e2e test

Anonymous user has items in cart, logs in, new cart has all items Logged in user adds items to cart, logs out, adds items to cart, logs in, carts merged

marlass commented 5 years ago

✔️ Tests pass. ✔️ Functions mentioned in descriptions are tested in tests.