Skip to content

Instantly share code, notes, and snippets.

@taboularasa
Created September 23, 2014 19:51
Show Gist options
  • Save taboularasa/69cc9f132642541155cb to your computer and use it in GitHub Desktop.
Save taboularasa/69cc9f132642541155cb to your computer and use it in GitHub Desktop.
Feature examples
Feature: Customer account
Scenario: viewing account information
Given I am a logged in customer
And I am viewing my dashboard
When I click the ACCOUNT link in the navigation
Then I should see a form with my account information filled in
Scenario: editing account information
Given I am a logged in customer
And I am viewing my dashboard
When I click the ACCOUNT link in the navigation
And I fill in new account information
And I click SAVE CHANGES
Then I should see confirmation that my account information has been saved
Scenario: deleting account information
Given I am a logged in customer
And I am viewing my dashboard
When I click the ACCOUNT link in the navigation
And I click DELETE
And I confirm that I want to delete this account
Then I will see confirmation that my account has been deleted
Feature: Customer billing
Scenario: viewing existing credit cards
Given I am a logged in customer
And I am viewing my dashboard
When I click the BILLING link in the navigation
Then I should see a list of all the credit cards I have on file
Scenario: editing an existing credit card
Given I am a logged in customer
And I am viewing my existing credit cards
When I click EDIT next to a credit card
And I fill in new credit card information
Then I should see confirmation that my credit card has been saved
Scenario: adding a new credit card
Given I am a logged in customer
And I am viewing my existing credit cards
When I click ADD A NEW CARD
And I fill in my credit card information
Then I should see confirmation that my credit card has been saved
Scenario: deleting an existing credit card
Given I am a logged in customer
And I am viewing my existing credit cards
When I click EDIT next to a credit card
And I confirm that I want to delete the card
Then I should see confirmation that my credit card has been deleted
Feature: Customer transactions
Scenario: viewing recent transactions
Given I am a logged in customer
And I am viewing my dashboard
Then I should see a list of my most recent transactions
Scenario: viewing all transactions
Given I am a logged in customer
And I am viewing my dashboard
When I click SHOW ALL TRANSACTIONS
Then I should see all of my transactions
Scenario: resending receipt
Given I am a logged in customer
And I am viewing my dashboard
When I click RESEND THE RECEIPT next to one of the transactions
Then I should receive an email receipt for that transaction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment