Skip to content

Commit

Permalink
added 3 BDD scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
Hall authored and Hall committed Apr 26, 2017
1 parent 1b12638 commit 87d70e6
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions specifications/scenarios.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Scenario 1: Award for Fuel Supply
Given I am a policy analyst
And I want to award Esso 1 million credits
And the fair market value is $75 per credit
And the effective date is <now>
When I submit the transaction
Then the transaction is logged
And transaction status is Pending
And error message is returned for bad data inputs

Scenario 2: Transaction Approval
Given I am a Director
And I am on the transaction summary page
And the transaction status is Pending
And effective date is On Director Approval
When I authorize the transaction
Then the transaction status is Approved
And the transaction approval is logged
And the effective date is set to <now>

Scenario 3: Balance Update
Given I am a Fuel Supplier with a starting balance of 10,000 credits
And the Director just approved a sale of 10,000 credits from my account
When I view my account balance
Then the balance is now 0

1 comment on commit 87d70e6

@matthewhall78
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.