Skip to content

Commit

Permalink
adjust behat "User selects two items with costcenters and enough cred…
Browse files Browse the repository at this point in the history
…its in nocostcenter plus matching costcenter when default costcenter is being set and than make checkout" to cover potential error (#86)
  • Loading branch information
semteacher committed Nov 2, 2024
1 parent 58292e0 commit 8a82d40
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/behat/shopping_cart_costcenter_credit_manager.feature
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,11 @@ Feature: Cashier manage credits with costcenters enabled in shopping cart
And I log out

@javascript
Scenario: User selects two items with costcenters and enough credits in nocostcenter plus matching costcenter and no default costcenter than make checkout
Given the following "local_shopping_cart > user credits" exist:
Scenario: User selects two items with costcenters and enough credits in nocostcenter plus matching costcenter when default costcenter is being set and than make checkout
Given the following config values are set as admin:
| config | value | plugin |
| defaultcostcenterforcredits | CostCenter1 | local_shopping_cart |
And the following "local_shopping_cart > user credits" exist:
| user | credit | currency | costcenter |
| user1 | 30 | EUR | |
| user1 | 13 | EUR | CostCenter1 |
Expand Down

0 comments on commit 8a82d40

Please sign in to comment.