Source

hascode-tutorials / jbehave-tutorial / src / main / resources / com / hascode / tutorial / add_product_to_shopping_cart.story

Full commit
1
2
3
4
5
6
7
Scenario: When a user adds a product to the shopping cart, the product should be included in the user's shopping cart.

Given a user
Given a shopping cart
Given a product
When the user adds the product to the shopping cart
Then the product must be included in the list of the shoppingcart's entries