kymove-beneficiaries-front v1.1.0
kymove-beneficiaries-front
Description
This is the beneficiaries client part of kymove project.
How to run
To run the application use the command:
docker-compose up
then open in your browser http://localhost:19997.
How to test
To run the tests use the command:
docker-compose run node npm test
To run UI Tests do as follow :
Run the docker container first
docker-compose up
Then use this command :
testcafe chrome test/testcafe/*
Specificities
This project uses React and Redux, with our styleguide : an extra environment
NPM_TOKEN
is therefore needed.
Features Flags
In order to activate some of the functionality, one need to add a query parameter containing the feature flag of the functionality in the url. This will add a new cookie with a TTL of 2 weeks.
Flag value | Description |
---|
Auth
When using the mocks in development, you can login with username = dev+bo@sagacify.com
and password = saga
.
To change password, go to /change-password/sagatoken
and specify saga
as new password.
There are many possible states in the beneficiary application but you can reach them with the help of different accounts. Indeed, some users own transactions and products in specific states, which allow you to quickly play with classic configurations.
Note: /!\ Here is the file where you will find all the tested cases for the choice process
dashboard-{language}@sagacify.com
:- Transactions status as
SALE_PENDING
- Redirect to dashboard
- Transactions status as
choice-{language}@sagacify.com
:- Lead to Choice Process
- Transactions status as
CHOICE_PENDING
- Redirect to
/choice-process
- /!\ All questions from the associated product are enabled. You can change the booleans in
test/mock/products
.
choiceCase1-{language}@sagacify.com
:- Lead to specific Choice Process Case (cf. excel File)
- Transactions status as `CHOICE_PENDING
- Redirect to `/choice-process
- /!\ Response to all questions for this case are described in the excel file
choiceCase2-{language}@sagacify.com
:- Lead to specific Choice Process Case (cf. excel File)
- Transactions status as `CHOICE_PENDING
- Redirect to `/choice-process
- /!\ Response to all questions for this case are described in the excel file
choiceCase3-{language}@sagacify.com
:- Lead to specific Choice Process Case (cf. excel File)
- Transactions status as `CHOICE_PENDING
- Redirect to `/choice-process
- /!\ Response to all questions for this case are described in the excel file
choiceCase4-{language}@sagacify.com
:- Lead to specific Choice Process Case (cf. excel File)
- Transactions status as `CHOICE_PENDING
- Redirect to `/choice-process
- /!\ Response to all questions for this case are described in the excel file
choiceCase5-{language}@sagacify.com
:- Lead to specific Choice Process Case (cf. excel File)
- Transactions status as `CHOICE_PENDING
- Redirect to `/choice-process
- /!\ Response to all questions for this case are described in the excel file
choiceCase6-{language}@sagacify.com
:- Lead to specific Choice Process Case (cf. excel File)
- Transactions status as `CHOICE_PENDING
- Redirect to `/choice-process
- /!\ Response to all questions for this case are described in the excel file
choiceCase7-{language}@sagacify.com
:- Lead to specific Choice Process Case (cf. excel File)
- Transactions status as `CHOICE_PENDING
- Redirect to `/choice-process
- /!\ Response to all questions for this case are described in the excel file
choiceCase8-{language}@sagacify.com
:- Lead to specific Choice Process Case (cf. excel File)
- Transactions status as `CHOICE_PENDING
- Redirect to `/choice-process
- /!\ Response to all questions for this case are described in the excel file
choiceCase9-{language}@sagacify.com
:- Lead to specific Choice Process Case (cf. excel File)
- Transactions status as `CHOICE_PENDING
- Redirect to `/choice-process
- /!\ Response to all questions for this case are described in the excel file
choiceCase10-{language}@sagacify.com
:- Lead to specific Choice Process Case (cf. excel File)
- Transactions status as `CHOICE_PENDING
- Redirect to `/choice-process
- /!\ Response to all questions for this case are described in the excel file
choiceCase11-{language}@sagacify.com
:- Lead to specific Choice Process Case (cf. excel File)
- Transactions status as `CHOICE_PENDING
- Redirect to `/choice-process
- /!\ Response to all questions for this case are described in the excel file
choiceCase12-{language}@sagacify.com
:- Lead to specific Choice Process Case (cf. excel File)
- Transactions status as `CHOICE_PENDING
- Redirect to `/choice-process
- /!\ Response to all questions for this case are described in the excel file
choiceCase13-{language}@sagacify.com
:- Lead to specific Choice Process Case (cf. excel File)
- Transactions status as `CHOICE_PENDING
- Redirect to `/choice-process
- /!\ Response to all questions for this case are described in the excel file
choiceCase14-{language}@sagacify.com
:- Lead to specific Choice Process Case (cf. excel File)
- Transactions status as `CHOICE_PENDING
- Redirect to `/choice-process
- /!\ Response to all questions for this case are described in the excel file
choiceCase15-{language}@sagacify.com
:- Lead to specific Choice Process Case (cf. excel File)
- Transactions status as `CHOICE_PENDING
- Redirect to `/choice-process
- /!\ Response to all questions for this case are described in the excel file
choiceCase16-{language}@sagacify.com
:- Lead to specific Choice Process Case (cf. excel File)
- Transactions status as `CHOICE_PENDING
- Redirect to `/choice-process
- /!\ Response to all questions for this case are described in the excel file
acceptation-st-{language}@sagacify.com
:- Lead to Acceptation Process with only short term transactions
- Transactions status as
OPTIONS_CHOICE
and short term status asACCEPTATION_PENDING
- Redirect to
/acceptation-process
acceptation-lt-{language}@sagacify.com
:- Lead to Acceptation Process with only long term transactions
- Transactions status as
OPTIONS_CHOICE
and long term status asACCEPTATION_PENDING
- Redirect to
/acceptation-process
acceptation-st+lt-{language}@sagacify.com
:- Lead to Acceptation Process with short term and long term transactions
- Transactions status as
OPTIONS_CHOICE
and short term and long term statuses asACCEPTATION_PENDING
- Redirect to
/acceptation-process
sell-st-{language}@sagacify.com
:- Lead to Sell Process with only short term transactions
- Transactions status as
SALE_PENDING
- Redirect to dashboard
sell-lt-{language}@sagacify.com
:- Lead to Sell Process with only long term transactions
- Transactions status as
SALE_PENDING
- Redirect to dashboard
sell-lt+mirror-{language}@sagacify.com
:- Lead to Sell Process with only long term transactions with
acceptationTaxFinancing
question to true - Transactions status as
SALE_PENDING
- Redirect to dashboard
- Lead to Sell Process with only long term transactions with
sell-st+lt-{language}@sagacify.com
:- Lead to Sell Process with short term and long term transactions
- Transactions status as
SALE_PENDING
Redirect to dashboard
Note: {language}
can be fr
, en
or nl
.