diff --git a/e2e/paths/claim-module/02_create_development.spec.js b/e2e/paths/claim-module/02_create_development.spec.js index d3cac011b..7df38e945 100644 --- a/e2e/paths/claim-module/02_create_development.spec.js +++ b/e2e/paths/claim-module/02_create_development.spec.js @@ -24,10 +24,19 @@ describe('Claim development', () => { .waitForLastSnackbar(); expect(result).toEqual('Data saved!'); + }, 15000); + + it(`should redirect to the next section of claims as the role is salesAssistant`, async() => { + const url = await nightmare + .waitForURL('/action') + .parsedUrl(); + + expect(url.hash).toContain('/action'); }); it('should edit a development', async() => { const result = await nightmare + .reloadSection('claim.card.development') .autocompleteSearch(selectors.claimDevelopment.firstClaimReasonAutocomplete, 'Calor') .autocompleteSearch(selectors.claimDevelopment.firstClaimResultAutocomplete, 'Cocido') .autocompleteSearch(selectors.claimDevelopment.firstClaimResponsibleAutocomplete, 'Calidad general') @@ -98,6 +107,7 @@ describe('Claim development', () => { it('should confirm the second development was auto filled', async() => { const reason = await nightmare + .reloadSection('claim.card.development') .waitToGetProperty(`${selectors.claimDevelopment.secondClaimReasonAutocomplete} input`, 'value'); const result = await nightmare