minor refactor
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
a797a2db8b
commit
915728397c
|
@ -55,15 +55,18 @@ describe('Client credit insurance path', () => {
|
|||
expect(message.text).toEqual('The grade must be similar to the last one');
|
||||
});
|
||||
|
||||
it('should provide a correct grade and succesfully save a new credit then be redirected to the credit index', async() => {
|
||||
it('should provide a correct grade and succesfully save a new credit', async() => {
|
||||
await page.write(selectors.clientCreditInsurance.newInsuranceGrade, '999');
|
||||
await page.waitToClick(selectors.clientCreditInsurance.saveNewInsuranceCredit);
|
||||
const message = await page.waitForSnackbar();
|
||||
await page.waitForState('client.card.creditInsurance.insurance.index');
|
||||
|
||||
expect(message.text).toEqual('Data saved!');
|
||||
});
|
||||
|
||||
it('should be redirected to the credit index', async() => {
|
||||
await page.waitForState('client.card.creditInsurance.insurance.index');
|
||||
});
|
||||
|
||||
it('should check the amount of credits is the expected', async() => {
|
||||
const result = await page.countElement(selectors.clientCreditInsurance.anyCreditInsuranceLine);
|
||||
|
||||
|
|
Loading…
Reference in New Issue