-
-
Save tooky/5a97dd14d323b69a1af6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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" |
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
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"