Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2b0454fa41
@cheezy
73 lines (62 sloc) 2.773 kb
Feature: Purchase Books
In order to read
An online shopper will need to purchase books
Background:
Given I am on the shopping page
@focus
Scenario: Verify cart with one book
When I purchase "Pragmatic Project Automation"
Then I should see "1" in the quantity for line 1
And I should see "Pragmatic Project Automation" in the description for line 1
And I should see "29.95" in the each for line 1
And I should see "29.95" in the total for line 1
And I should see "29.95" in the cart total
Scenario: verify cart with two books
When I purchase "Pragmatic Project Automation"
And I continue shopping
And I purchase "Pragmatic Project Automation"
Then I should see "2" in the quantity for line 1
And I should see "Pragmatic Project Automation" in the description for line 1
And I should see "29.95" in the each for line 1
And I should see "59.90" in the total for line 1
And I should see "59.90" in the cart total
Scenario: verify cart with two different books
When I purchase "Pragmatic Project Automation"
And I continue shopping
And I purchase "Pragmatic Version Control"
Then I should see "1" in the quantity for line 1
And I should see "Pragmatic Project Automation" in the description for line 1
And I should see "29.95" in the each for line 1
And I should see "29.95" in the total for line 1
And I should see "1" in the quantity for line 2
And I should see "Pragmatic Version Control" in the description for line 2
And I should see "28.50" in the each for line 2
And I should see "28.50" in the total for line 2
And I should see "58.45" in the cart total
Scenario: Purchase two books
When I purchase "Pragmatic Unit Testing (C#)"
And I continue shopping
And I purchase "Pragmatic Version Control"
And I checkout
And I enter "Cheezy" in the name field
And I enter "123 Main Street" in the address field
And I enter "cheezy@example.com" in the email field
And I select "Credit card" from the pay type dropdown
And I place my order
Then I should see "Thank you for your order"
Scenario: Our first high level scenario
When I purchase "Pragmatic Unit Testing (C#)"
And I checkout with
| name | address | email | pay_type |
| Cheezy | 123 Main Street | cheezy@example.com | Credit card |
Then I should see "Thank you for your order"
Scenario: Using some default data
When I purchase a book
And I checkout with
| pay_type |
| Credit card |
Then I should see "Thank you for your order"
Scenario: Using all default data
When I purchase a book
And I complete the order
Then I should see "Thank you for your order"
Jump to Line
Something went wrong with that request. Please try again.