Coder Social home page Coder Social logo

equal-experts's Introduction

Step 1: Add products to the shopping cart. Given: An empty shopping cart. And a product, Dove Soap with a unit price of 39.99 When: The user adds 5 Dove Soaps to the shopping cart Then: The shopping cart should contain 5 Dove Soaps each with a unit price of 39.99 And the shopping cart’s total price should equal 199.95

Given: An empty shopping cart And a product, Dove Soap with a unit price of 39.99 When: The user adds 5 Dove Soaps to the shopping cart And then adds another 3 Dove Soaps to the shopping cart Then: The shopping cart should contain 8 Dove Soaps each with a unit price of 39.99 And the shopping cart’s total price should equal 319.92

An empty shopping cart And a product, Dove Soap with a unit price of 39.99 And another product, Axe Deo with a unit price of 99.99 And a tax rate of 12.5% When: The user adds 2 Dove Soaps to the shopping cart And then adds 2 Axe Deo’s to the shopping cart

Then: The shopping cart should contain 2 Dove Soaps each with a unit price of 39.99 And the shopping cart should contain 2 Axe Deo’s each with a unit price of 99.99 And the total tax amount should equal 35.00 And the shopping cart’s total price should equal 314.96

Step 4: Add products to the shopping cart, which have "Buy X, Get Y free" offer. Given: An empty shopping cart And a product, Dove Soap with a unit price of 39.99 and a associated Buy 2 Get 1 Free offer. And a product, Axe Deo with a unit price of 89.99 and no associated offer.

When: The user adds 5 Dove Soaps to the shopping cart Then: The shopping cart should contain 5 Dove Soaps each with a unit price of 39.99 And the shopping cart's total price should equal 179.96 And the shopping cart's total discount should equal 39.99 And the total tax amount should equal 20.00

equal-experts's People

Watchers

 avatar  avatar  avatar

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.