From 8a82d40c11f42c5e6674f0b7a0e68473abfd5461 Mon Sep 17 00:00:00 2001 From: Andrii Semenets Date: Sat, 2 Nov 2024 14:57:21 +0200 Subject: [PATCH] adjust behat "User selects two items with costcenters and enough credits in nocostcenter plus matching costcenter when default costcenter is being set and than make checkout" to cover potential error (#86) --- .../behat/shopping_cart_costcenter_credit_manager.feature | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/behat/shopping_cart_costcenter_credit_manager.feature b/tests/behat/shopping_cart_costcenter_credit_manager.feature index cc50417..112dd9e 100644 --- a/tests/behat/shopping_cart_costcenter_credit_manager.feature +++ b/tests/behat/shopping_cart_costcenter_credit_manager.feature @@ -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 |