From e2f243454a42ddb8aa7cf55e6bf750eb059b6331 Mon Sep 17 00:00:00 2001 From: Carlos Jimenez Ruiz Date: Mon, 8 Apr 2019 16:12:07 +0200 Subject: [PATCH] #1321 E2E claims - Cambiar al siguiente estado --- e2e/paths/claim-module/02_create_development.spec.js | 10 ++++++++++ 1 file changed, 10 insertions(+) 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