From 949bdb6018908b3808ba30fcdc0f76e986216171 Mon Sep 17 00:00:00 2001 From: Carlos Jimenez Ruiz Date: Thu, 30 May 2019 14:42:54 +0200 Subject: [PATCH] merge dev to test #1492 e2e proyecto Zone --- .../06_edit_basic_data_steps.spec.js | 49 +------------------ 1 file changed, 1 insertion(+), 48 deletions(-) diff --git a/e2e/paths/05-ticket-module/06_edit_basic_data_steps.spec.js b/e2e/paths/05-ticket-module/06_edit_basic_data_steps.spec.js index cfd7f4fe2..be8d5c983 100644 --- a/e2e/paths/05-ticket-module/06_edit_basic_data_steps.spec.js +++ b/e2e/paths/05-ticket-module/06_edit_basic_data_steps.spec.js @@ -7,57 +7,10 @@ describe('Ticket Edit basic data path', () => { beforeAll(() => { return nightmare .loginAndModule('employee', 'ticket') - .accessToSearchResult('id:11') + .accessToSearchResult(11) .accessToSection('ticket.card.basicData.stepOne'); }); - it(`should edit the client and address of the ticket then click next`, async() => { - let url = await nightmare - .autocompleteSearch(selectors.ticketBasicData.clientAutocomplete, 'Charles Xavier') - .wait(500) - .autocompleteSearch(selectors.ticketBasicData.addressAutocomplete, 'Charles Xavier') - .waitToClick(selectors.ticketBasicData.nextStepButton) - .waitForURL('data/step-two') - .parsedUrl(); - - expect(url.hash).toContain('data/step-two'); - }); - - it(`should have no price diference`, async() => { - const result = await nightmare - .waitToGetProperty(selectors.ticketBasicData.stepTwoTotalPriceDif, 'innerText'); - - expect(result).toContain('0'); - }); - - it(`should click next to move on to step three`, async() => { - let url = await nightmare - .waitToClick(selectors.ticketBasicData.nextStepButton) - .waitForURL('data/step-three') - .parsedUrl(); - - expect(url.hash).toContain('data/step-three'); - }); - - it(`should select a reason for the changes made then click on finalize`, async() => { - let url = await nightmare - .autocompleteSearch(selectors.ticketBasicData.chargesReasonAutocomplete, 'No realizar modificaciones en precios') - .waitToClick(selectors.ticketBasicData.finalizeButton) - .waitForURL('summary') - .parsedUrl(); - - expect(url.hash).toContain('summary'); - }); - - it(`should go back to ticket.basicData section`, async() => { - let url = await nightmare - .waitToClick(selectors.ticketBasicData.basicDataButton) - .waitForURL('data/step-one') - .parsedUrl(); - - expect(url.hash).toContain('data/step-one'); - }); - it(`should edit the ticket agency then click next`, async() => { let url = await nightmare .autocompleteSearch(selectors.ticketBasicData.agencyAutocomplete, 'Silla247Expensive')