diff --git a/e2e/paths/ticket-module/13_create_ticket_services.spec.js b/e2e/paths/ticket-module/13_create_ticket_services.spec.js index a2c6d11d9..29cdd543d 100644 --- a/e2e/paths/ticket-module/13_create_ticket_services.spec.js +++ b/e2e/paths/ticket-module/13_create_ticket_services.spec.js @@ -1,8 +1,7 @@ import selectors from '../../helpers/selectors.js'; import createNightmare from '../../helpers/nightmare'; -// Bug #961 ticket.service fallo en borrado -xdescribe('Ticket services path', () => { +describe('Ticket services path', () => { const nightmare = createNightmare(); beforeAll(() => { @@ -57,9 +56,17 @@ xdescribe('Ticket services path', () => { expect(result).toEqual('Reduced VAT'); }); - it('should delete the service and check there are none now', async() => { + it('should delete the service', async() => { const result = await nightmare .waitToClick(selectors.ticketService.fistDeleteServiceButton) + .waitToClick(selectors.ticketService.saveServiceButton) + .waitForLastSnackbar(); + + expect(result).toEqual('Data saved!'); + }); + + it('should confirm the service was sucessfully removed', async() => { + const result = await nightmare .waitToClick(selectors.ticketBasicData.basicDataButton) .wait(selectors.ticketBasicData.clientAutocomplete) .click(selectors.ticketService.serviceButton)