FINERACT-2081: Adding additional E2E tests to improve test coverage - pt2: feature files

This commit is contained in:
Peter Kovacs
2025-02-13 16:40:06 +01:00
committed by Adam Saghy
parent cb0ad23f37
commit f1e9afd3e3
12 changed files with 8660 additions and 2642 deletions
@@ -141,3 +141,63 @@ Feature: InlineCOBFeature
| Range (Classification) | Added on date | Lifted on date |
| RANGE_1 | 06 January 2023 | 07 January 2023 |
Then Admin checks that last closed business date of loan is "06 January 2023"
@TestRailId:C3316
Scenario: Verify enhance LoanCOBFilter - Enable inline COB execution for locked loans
When Admin sets the business date to "01 January 2024"
When Admin creates a client with random data
When Admin creates a new default Loan with date: "1 January 2024"
And Admin successfully approves the loan on "01 January 2024" with "1000" amount and expected disbursement date on "01 January 2024"
When Admin successfully disburse the loan on "01 January 2024" with "1000" EUR transaction amount
Then Admin checks that last closed business date of loan is "null"
When Admin sets the business date to "2 January 2024"
When Admin runs inline COB job for Loan
Then Admin checks that last closed business date of loan is "01 January 2024"
# --- admin locks the loan ---
When Admin places a lock on loan account with an error message
When Admin sets the business date to "03 January 2024"
When Admin creates new user with "NO_BYPASS_AUTOTEST" username, "NO_BYPASS_AUTOTEST_ROLE" role name and given permissions:
| REPAYMENT_LOAN |
When Created user makes externalID controlled "AUTOPAY" repayment on "03 January 2024" with 1000 EUR transaction amount
Then Loan status will be "CLOSED_OBLIGATIONS_MET"
Then Loan has 0 outstanding amount
Then Loan Transactions tab has a "REPAYMENT" transaction with date "03 January 2024" which has the following Journal entries:
| Type | Account code | Account name | Debit | Credit |
| ASSET | 112601 | Loans Receivable | | 1000.0 |
| LIABILITY | 145023 | Suspense/Clearing account | 1000.0 | |
Then Loan delinquency history has the following details:
| Range (Classification) | Added on date | Lifted on date |
| RANGE_1 | 02 January 2024 | 03 January 2024 |
Then Admin checks that last closed business date of loan is "02 January 2024"
@TestRailId:C3317
Scenario: Verify enhance LoanCOBFilter - Enable inline COB execution for locked progressive loans
When Admin sets the business date to "01 January 2024"
When Admin creates a client with random data
When Admin set "LP2_ADV_PYMNT_INTEREST_DAILY_EMI_360_30_INTEREST_RECALCULATION_DAILY_TILL_PRECLOSE" loan product "DEFAULT" transaction type to "NEXT_INSTALLMENT" future installment allocation rule
When Admin creates a fully customized loan with the following data:
| LoanProduct | submitted on date | with Principal | ANNUAL interest rate % | interest type | interest calculation period | amortization type | loanTermFrequency | loanTermFrequencyType | repaymentEvery | repaymentFrequencyType | numberOfRepayments | graceOnPrincipalPayment | graceOnInterestPayment | interest free period | Payment strategy |
| LP2_ADV_PYMNT_INTEREST_DAILY_EMI_360_30_INTEREST_RECALCULATION_DAILY_TILL_PRECLOSE | 01 January 2024 | 1000 | 7 | DECLINING_BALANCE | DAILY | EQUAL_INSTALLMENTS | 1 | MONTHS | 1 | MONTHS | 1 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
And Admin successfully approves the loan on "01 January 2024" with "1000" amount and expected disbursement date on "01 January 2024"
When Admin successfully disburse the loan on "01 January 2024" with "1000" EUR transaction amount
Then Admin checks that last closed business date of loan is "null"
When Admin sets the business date to "2 January 2024"
When Admin runs inline COB job for Loan
Then Admin checks that last closed business date of loan is "01 January 2024"
# --- admin locks the loan ---
When Admin places a lock on loan account with an error message
When Admin sets the business date to "03 January 2024"
When Admin creates new user with "NO_BYPASS_AUTOTEST" username, "NO_BYPASS_AUTOTEST_ROLE" role name and given permissions:
| REPAYMENT_LOAN |
And Customer makes "AUTOPAY" repayment on "03 January 2024" with 1000.38 EUR transaction amount
Then Loan status will be "CLOSED_OBLIGATIONS_MET"
Then Loan has 0 outstanding amount
Then Loan Transactions tab has a "REPAYMENT" transaction with date "03 January 2024" which has the following Journal entries:
| Type | Account code | Account name | Debit | Credit |
| ASSET | 112601 | Loans Receivable | | 1000.0 |
| ASSET | 112603 | Interest/Fee Receivable | | 0.38 |
| LIABILITY | 145023 | Suspense/Clearing account | 1000.38 | |
Then Loan delinquency history has the following details:
| Range (Classification) | Added on date | Lifted on date |
| RANGE_1 | 02 January 2024 | 03 January 2024 |
Then Admin checks that last closed business date of loan is "01 January 2024"