Skip to content

Commit

Permalink
cambio los feature para q funcionen los tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ignaciano3 committed Oct 22, 2023
1 parent dd1fe4d commit 1870a88
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
20 changes: 1 addition & 19 deletions src/test/resources/cucumber/bank_account_operations.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,4 @@ Feature: Bank account operations
Given Account with a balance of 200
When Trying to deposit -100
Then Operation should be denied due to negative sum
And Account balance should remain 200


Feature: Bank account promo, get 10% extra in your $2000+ deposits, up to $500

Scenario: Successfully promo applied, cap not reached.
Given Account with a balance of 0
When Trying to deposit 2000
Then Account balance should be 2200

Scenario: Successfully promo applied, cap reached.
Given Account with a balance of 0
When Trying to deposit 6000
Then Account balance should be 6500

Scenario: Promo not applied
Given Account with a balance of 0
When Trying to deposit 1500
Then Account balance should be 1500
And Account balance should remain 200
16 changes: 16 additions & 0 deletions src/test/resources/cucumber/bank_account_promos.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Feature: Bank account promo, get 10% extra in your $2000+ deposits, up to $500

Scenario: Successfully promo applied, cap not reached.
Given Account with a balance of 0
When Trying to deposit 2000
Then Account balance should be 2200

Scenario: Successfully promo applied, cap reached.
Given Account with a balance of 0
When Trying to deposit 6000
Then Account balance should be 6500

Scenario: Promo not applied
Given Account with a balance of 0
When Trying to deposit 1500
Then Account balance should be 1500

0 comments on commit 1870a88

Please sign in to comment.