Giter Site home page Giter Site logo

code-review-example's People

Contributors

andrey-vlasov avatar bgambocjaviniar avatar developpeurweb avatar dunqan avatar earthii avatar filrak avatar gladius-mtl avatar hackergil avatar jim-yang avatar kacperknapik avatar katechuen avatar marlasak avatar marlass avatar matejk00 avatar morganm58 avatar plabadie avatar platonn avatar psmul avatar pucek9 avatar radheps avatar romerodiver avatar szczepaniak-michal avatar tobi-or-not-tobi avatar vkoulaxazov avatar waseemhybris avatar weizhengsap avatar wishfulthinkerme avatar xymmer avatar zeyber avatar znikola avatar

Stargazers

 avatar

Watchers

 avatar  avatar

code-review-example's Issues

Missing cart e2e test for automatic cart load

To make sure cart refactor didn't break anything regarding cart existing cart tests needs to be inspected and if needed to be expanded to cover more use cases.

Active cart behavior:

  • user logs in without cart -> attempt to load current cart
  • users logs in with cart saved in a browser -> attempt to load 'saved' cart
  • anonymous cart is stored in browser
  • anonymous user have cart and logs in -> merge anonymous cart with current
  • anonymous users want to add the product to the cart (cart doesn't exist) -> create new cart, then add
  • logged user want to add the product to the cart (cart not loaded in spa, but exists) -> load current and add entry
  • logged user want to add the product to the cart (cart not loaded in spa, doesn't exists) -> try to load, then fallback to create and then add entry
  • current cart should be loaded when previous cart throws Cart not found
  • user adds entry (cart created) -> no new cart created
  • user removes entry -> entry removed
  • user updates quantity to 2 -> entry updated
  • adding an incorrect product to the cart shouldn't invoke added to cart modal

Mobile E2E test doesn't need to be updated. Most of the test focus on API communication. UI is already well tested.

What to look for:

  • loading status correctly persist through cart updates/creating/loading
  • no errors with cart (eg. cart not found)

New behavior found in some tickets into consideration:

  • remove cart when we remove last entry (I am not sure if this is really needed)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.