Excercises

Exercise 2

 

Feature: Discount for returning customers

We want to reward returning customers with an extra discount of 10%

on subsequent orders, because we believe that it will motivate them to buy

more books.

 

Scenario: Informing about the discount

Given there is a buyer

And he already bought books from us

When he adds a book to the shopping cart

And the cart is empty

Then he is informed about that 10% discount will be applied on this order

 

Scenario: Applying the discount

Given there is a buyer

And he already bought books from us

And he added 3 books worth 10 EUR to the shopping cart

And the VAT to be paid over the 3 books is 2.10 EUR

And the shipping is 5 EUR

When the buyer places the order

Then the total he will be charged is 16.10 EUR

%d bloggers like this: