-
-
Save kgardnr/c806d3a7c653bcd30f18 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: Payments | |
Scenario: A plan is created and invoice is issued | |
When a plan is created for "Company A" for $"12" and "12" seats with default reference "their reference" | |
Then an unpaid invoice should issued for $"144" with reference "their reference" | |
And the plan should be inactive | |
And the plan should be synced to stripe | |
Scenario: An issue is created and people are notified # what's an "issue" in this case? | |
When an unpaid invoice is issued | |
Then an email should be sent to internal users containing a link to the invoice | |
And an email should be sent to the supervising user of the plan containing a link to the invoice | |
Scenario: An invoice page is created | |
Given an unpaid invoice is issued | |
When the link in the email is clicked | |
Then a page showing the invoice should be created | |
Scenario: An invoice is paid and the plan is active | |
Given an unpaid invoice is issued | |
When the stripe form is filled out and submitted | |
Then the plan should become active | |
And the invoice should be marked paid | |
And an email should be issued confirming payment | |
Scenario: A user can pay a single item invoice # not sure about the Given..Then..When here, but I can't think of a better way to put it | |
Given an unpaid single item invoice is issued and viewed | |
Then an email should be sent to the supervising user of the plan containing a link to the invoice | |
When the stripe form is filled out and submitted | |
Then the invoice should be marked paid | |
And an email should be issued confirming payment | |
Scenario: A user can be billed for a single item and a recurring amount | |
When a plan is created for $"12" and "12" seats and "5" pages of content at $"5" | |
Then an unpaid invoice is issued for $"169" | |
And an email should be sent to internal users containing a link to the invoice | |
And an email should be sent to the supervising user of the plan containing a link to the invoice | |
Scenario: Ben is a cutie | |
Given you are cute | |
When you are cute | |
Then you are cute |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You little flirt