minor refactor
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2020-10-23 15:34:09 +02:00
parent a797a2db8b
commit 915728397c
1 changed files with 5 additions and 2 deletions

View File

@ -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);