From 140e7b4f924dc534a842ab5753c41187d3571acd Mon Sep 17 00:00:00 2001 From: Gerard Date: Wed, 16 Jan 2019 10:49:49 +0100 Subject: [PATCH] #968 ticket/servicios --- e2e/paths/ticket-module/13_create_ticket_services.spec.js | 6 +++--- modules/ticket/back/models/ticket-service.json | 4 ++++ modules/ticket/front/routes.json | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) 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 4a236b392..378c85ac8 100644 --- a/e2e/paths/ticket-module/13_create_ticket_services.spec.js +++ b/e2e/paths/ticket-module/13_create_ticket_services.spec.js @@ -1,7 +1,7 @@ import selectors from '../../helpers/selectors.js'; import createNightmare from '../../helpers/nightmare'; -xdescribe('Ticket services path', () => { +describe('Ticket services path', () => { const nightmare = createNightmare(); beforeAll(() => { @@ -72,9 +72,9 @@ xdescribe('Ticket services path', () => { .waitToClick(selectors.ticketBasicData.basicDataButton) .wait(selectors.ticketBasicData.clientAutocomplete) .click(selectors.ticketService.serviceButton) - .waitForNumberOfElements(selectors.ticketService.serviceLine, 2) + .waitForNumberOfElements(selectors.ticketService.serviceLine, 0) .countElement(selectors.ticketService.serviceLine); - expect(result).toEqual(2); + expect(result).toEqual(0); }); }); diff --git a/modules/ticket/back/models/ticket-service.json b/modules/ticket/back/models/ticket-service.json index 427baced0..2007d931c 100644 --- a/modules/ticket/back/models/ticket-service.json +++ b/modules/ticket/back/models/ticket-service.json @@ -12,6 +12,10 @@ "id": true, "description": "Identifier" }, + "ticketFk": { + "type": "Number", + "required": true + }, "description": { "type": "String", "required": true diff --git a/modules/ticket/front/routes.json b/modules/ticket/front/routes.json index 0147b1919..59fd490bf 100644 --- a/modules/ticket/front/routes.json +++ b/modules/ticket/front/routes.json @@ -231,6 +231,7 @@ {"state": "ticket.card.observation", "icon": "insert_drive_file"}, {"state": "ticket.card.volume", "icon": "icon-volume"}, {"state": "ticket.card.expedition", "icon": "icon-package"}, + {"state": "ticket.card.service", "icon": "icon-services"}, {"state": "ticket.card.package.index", "icon": "icon-bucket"}, {"state": "ticket.card.tracking.index", "icon": "remove_red_eye"}, {"state": "ticket.card.saleChecked", "icon": "assignment"},