Skip to content

Commit 3b6b672

Browse files
authored
Merge pull request #5737
FINERACT-2533: Remove @Skip tags from savings account E2E scenarios
2 parents 1b5b3d5 + 693cdcf commit 3b6b672

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

fineract-e2e-tests-core/src/test/java/org/apache/fineract/test/factory/SavingsProductRequestFactory.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020

2121
import java.util.ArrayList;
2222
import java.util.List;
23+
import java.util.UUID;
2324
import org.apache.fineract.client.models.PostSavingsCharges;
2425
import org.apache.fineract.client.models.PostSavingsProductsRequest;
2526

2627
public final class SavingsProductRequestFactory {
2728

2829
public static final String DEFAULT_SAVINGS_PRODUCT_NAME = "CEUR";
29-
3030
public static final String DEFAULT_SAVINGS_PRODUCT_SHORT_NAME = "CEU";
3131
public static final String DEFAULT_SAVINGS_PRODUCT_DESCRIPTION = "";
3232
public static final String DEFAULT_SAVINGS_PRODUCT_CURRENCY_CODE = "EUR";
@@ -43,10 +43,11 @@ public final class SavingsProductRequestFactory {
4343
private SavingsProductRequestFactory() {}
4444

4545
public static PostSavingsProductsRequest defaultSavingsProductRequest() {
46+
String uniqueId = UUID.randomUUID().toString().replace("-", "").substring(0, 4).toUpperCase();
4647
List<PostSavingsCharges> charges = new ArrayList<>();
4748

48-
return new PostSavingsProductsRequest().name(DEFAULT_SAVINGS_PRODUCT_NAME)//
49-
.shortName(DEFAULT_SAVINGS_PRODUCT_SHORT_NAME)//
49+
return new PostSavingsProductsRequest().name(DEFAULT_SAVINGS_PRODUCT_NAME + "-" + uniqueId)//
50+
.shortName(uniqueId)//
5051
.description(DEFAULT_SAVINGS_PRODUCT_DESCRIPTION)//
5152
.currencyCode(DEFAULT_SAVINGS_PRODUCT_CURRENCY_CODE)//
5253
.digitsAfterDecimal(DEFAULT_SAVINGS_PRODUCT_DIGITS_AFTER_DECIMAL)//

fineract-e2e-tests-runner/src/test/resources/features/SavingsAccount.feature

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
11
@SavingsAccount
22
Feature: SavingsAccount
33

4-
# TODO unskip and check when PS-1088 is done
5-
@Skip @TestRailId:C2438
4+
@TestRailId:C2438
65
Scenario: As a user I would like to Deposit to my savings account
76
When Admin sets the business date to "1 June 2022"
87
When Admin creates a client with random data
8+
And Admin creates a EUR savings product
99
And Client creates a new EUR savings account with "1 June 2022" submitted on date
1010
And Approve EUR savings account on "1 June 2022" date
1111
And Activate EUR savings account on "1 June 2022" date
1212
And Client successfully deposits 1000 EUR to the savings account on "1 June 2022" date
1313

14-
@Skip @TestRailId:C2439
14+
@TestRailId:C2439
1515
Scenario: As a user I would like to Withdraw from my savings account
1616
When Admin sets the business date to "1 June 2022"
1717
When Admin creates a client with random data
18+
And Admin creates a EUR savings product
1819
And Client creates a new EUR savings account with "1 June 2022" submitted on date
1920
And Approve EUR savings account on "1 June 2022" date
2021
And Activate EUR savings account on "1 June 2022" date
2122
And Client successfully deposits 1000 EUR to the savings account on "1 June 2022" date
2223
And Client successfully withdraw 1000 EUR from the savings account on "1 June 2022" date
2324

24-
@Skip @TestRailId:C2440
25+
@TestRailId:C2440
2526
Scenario: As a user I would like to create an EUR and USD Savings accounts and make deposit and withdraw events
2627
When Admin sets the business date to "1 June 2022"
2728
When Admin creates a client with random data
29+
And Admin creates a EUR savings product
2830
And Client creates a new EUR savings account with "1 June 2022" submitted on date
2931
And Approve EUR savings account on "1 June 2022" date
3032
And Activate EUR savings account on "1 June 2022" date

0 commit comments

Comments
 (0)