Skip to content

Instantly share code, notes, and snippets.

@tooky
Forked from mattwynne/gist:825967
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tooky/5a97dd14d323b69a1af6 to your computer and use it in GitHub Desktop.
Save tooky/5a97dd14d323b69a1af6 to your computer and use it in GitHub Desktop.
Scenario: Create an invoice
Given I am an authenticated user with an admin role
And a client "test client" exists with name: "test client", initials: "TTC"
And a project "test project" exists with name: "test project", client: client "test client"
And a ticket "test ticket" exists with project: project "test project", name: "test ticket"
And a work_unit "test work unit" exists with ticket: ticket "test ticket", scheduled_at: "2010-01-01", hours: "1"
And I am on the admin invoices page
Then I should see "test client"
And I follow "test client"
And I fill in "global_invoiced" with "123"
And I press "Submit"
Given I am on the admin invoices page
Then I should not see "test client"
@peacetrader
Copy link

Given I have an administrative access
And I am on the admin invoices page with "test client"
When I fill in the invoice details
Then I should get a message "Invoice successfully generated"

@ssaallmmaann
Copy link

Given I am logged in as a admin
And there is a tickect schedued for me
And i am on invoice page
When I update the invoice successfully
Then ticket should be removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment