Created
September 30, 2014 18:34
-
-
Save lawrencewalters/60fd9287fa53be74f3c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: shopper shops | |
As a shopper | |
I want to a decent shopping experience | |
So I can buy a ton of stuff easily | |
Scenario: add to cart | |
Given I am on a PDP | |
When I click Add To Cart | |
Then I should see this product in the minicart | |
Scenario: add duplicate item to cart | |
Given I am on a PDP | |
And I have already added this product to the cart | |
When I click Add To Cart | |
Then I should see this product in the minicart with quantity 2 | |
Scenario: merging authenticated and anonymous cart | |
Given I have previously added to my cart in a logged in state | |
And I have just added to my cart in an anonymous state | |
When I log in | |
And I visit the cart page | |
Then I should see both products in my cart | |
Scenario: remove from cart | |
Given I am on the cart page with product in my cart | |
When I click remove | |
Then I should not see the product | |
Scenario: update quantity | |
Given I am on the cart page with product in my cart | |
When I click increase quantity | |
Then I should see quantity 2 | |
Scenario: view PDP from cart | |
Given I am on the cart page with product in my cart | |
When I click on a product | |
Then I should be on a PDP | |
Scenario Outline: estimate shipping cost | |
Given I am on the cart page with product in my cart | |
When I fill in "Zip Code" with "<zip>" | |
And I press "Calculate Shipping" | |
Then I should see "<shipping_cost>" | |
Examples: | |
| zip | shipping_cost | | |
| 60606 | 5.95 | | |
| 90210 | 100.00 | | |
| | N/A | | |
Scenario: add coupons | |
Given I am on the cart page with product in my cart | |
When I fill in "coupon code" with "<coupon>" | |
And I press "Add Coupon" | |
Then I should see "<coupon_result>" | |
Examples: | |
| coupon | coupon_result | | |
| ABC | Coupon applied | | |
| abc | Coupon applied | | |
| 123 | Not a valid coupon code | | |
| | Not a valid coupon code | | |
| CDE | Coupon expired | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment