Skip to content

Instantly share code, notes, and snippets.

@chrismdp
Created September 16, 2011 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrismdp/1221816 to your computer and use it in GitHub Desktop.
Save chrismdp/1221816 to your computer and use it in GitHub Desktop.
Feature: Paul pays employees
In order to retain staff
As Paul the Payroll Manager I want to pay my staff
Scenario:
Given an admin user called "Paul" with a password "password"
And a user called "Bob"
And "Bob" is an employee
And "Bob" gets paid "$2,000" a month
When I visit the homepage
And I click on "Log in"
And I fill in "username" with "Paul"
And I fill in "password" with "password"
And I click "Log in"
And I click "Payroll"
And I click "Bob"
And I click "Pay"
And I enter "$2,000"
And I click "Pay"
Then I should see "Bob has been paid"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment