Guest User

Untitled

a guest
Jul 19th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. Feature: Cart management
  2. In order to reserve spaces and order products
  3. Registered users should be able to
  4. Add spaces and products to their cart
  5.  
  6. Scenario: Add one space to the cart
  7. Given an existing normal user "user2" with password "password2"
  8. And an existing non-reserved space "A13"
  9. And a current Var entry
  10. And a multispace discount Product
  11. When I go to the login page
  12. And I sign in as "user2" with password "password2"
  13. And I search for the space "A13"
  14. And I press "A13"
  15. Then I should see "DescriptionQtyPriceSubtotal A13"
  16. And I should see "Total:$50.00"
  17.  
  18. Scenario: Add two spaces to the cart
  19. Given an existing normal user "user2" with password "password2"
  20. And an existing non-reserved space "A13"
  21. And an existing non-reserved space "A14"
  22. And a current Var entry
  23. And a multispace discount Product
  24. When I go to the login page
  25. And I sign in as "user2" with password "password2"
  26. And I search for the space "A13 A14"
  27. And I press "A13"
  28. And I press "A14"
  29. Then I should see "DescriptionQtyPriceSubtotal A13"
  30. And I should see "A14"
  31. And I should see "Multiple Reservation Discount"
  32. And I should see "Total:$95.00"
  33.  
  34. Scenario: Remove one space from a cart with two spaces in it
  35. Given an existing normal user "user2" with password "password2"
  36. And an existing non-reserved space "A13"
  37. And an existing non-reserved space "A14"
  38. And a current Var entry
  39. And a multispace discount Product
  40. When I go to the login page
  41. And I sign in as "user2" with password "password2"
  42. And I search for the space "A13 A14"
  43. And I press "A13"
  44. And I press "A14"
  45. And I press "X"
  46. And I press "Yes"
  47. Then I should see "DescriptionQtyPriceSubtotal A14"
  48. And I should see "Total:$50.00"
Add Comment
Please, Sign In to add comment