Skip to content

Instantly share code, notes, and snippets.

@kmarsh
Created April 15, 2009 01:23
Show Gist options
  • Save kmarsh/95537 to your computer and use it in GitHub Desktop.
Save kmarsh/95537 to your computer and use it in GitHub Desktop.
Feature: Cart
In order to buy a sample
As a consumer
I want to add an item to my cart
Background:
Given the following products exist:
| sku | category | name | price |
| CPBOARD-001 | Cedar Pride | Sample Board | $15.00 |
| CPPANEL-013 | Cedar Pride | Wicker | $0.00 |
@cart @empty
Scenario: Consumer adds items to cart then empties cart
Given I am a "Consumer"
And I go to the catalog
And I follow "Cedar Pride"
And I add 1 standard board to my cart
Then I should see "Shipping Information"
And I fill in valid shipping information for "OH"
And I press "Save and Continue"
Then My cart should contain 1 item
And My cart should subtotal $15.00
And My cart should total $15.94
And My cart should be checkoutable
And I should not see "Credits"
When I go to empty cart
Then My cart should contain 0 items
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment