From d83665a0c51c0c50743cc0dd36654da3860212c2 Mon Sep 17 00:00:00 2001 From: Joan Date: Wed, 1 Aug 2018 12:15:09 +0200 Subject: [PATCH 1/3] show itemDiary icon on ticket descriptor popover. #441 - CR Javi --- .../client/src/descriptor-popover/index.html | 5 ++- client/client/src/descriptor-popover/index.js | 26 +++++++++----- client/client/src/descriptor/index.html | 22 +++++++++--- client/client/src/descriptor/index.js | 34 +++++++++++++++---- client/item/src/descriptor-popover/index.html | 3 +- client/item/src/descriptor-popover/index.js | 13 +++++-- client/item/src/descriptor/index.html | 19 +++++++++++ client/item/src/descriptor/index.js | 25 +++++++++++++- client/salix/src/styles/misc.scss | 2 +- client/ticket/src/sale/index.html | 3 +- client/ticket/src/sale/index.js | 19 +++++++++++ 11 files changed, 145 insertions(+), 26 deletions(-) diff --git a/client/client/src/descriptor-popover/index.html b/client/client/src/descriptor-popover/index.html index 4cefbedbb8..e0f1bd33da 100644 --- a/client/client/src/descriptor-popover/index.html +++ b/client/client/src/descriptor-popover/index.html @@ -1,4 +1,7 @@ - + diff --git a/client/client/src/descriptor-popover/index.js b/client/client/src/descriptor-popover/index.js index b39b9b66e2..41c617c740 100644 --- a/client/client/src/descriptor-popover/index.js +++ b/client/client/src/descriptor-popover/index.js @@ -9,6 +9,22 @@ class Controller extends Component { this.$timeout = $timeout; this.isTooltip = true; this.client = {}; + this.links = {}; + } + + set clientFk(value) { + if (value) { + this._getClient(value); + this._getClientDebt(value); + } + } + + set quicklinks(value = {}) { + this._quicklinks = Object.assign(value, this.links); + } + + get quicklinks() { + return this._quicklinks; } clear() { @@ -34,13 +50,6 @@ class Controller extends Component { this.$state.go('ticket.index', {q: `{"clientFk": ${this.client.id}}`}); } - set clientFk(value) { - if (value) { - this._getClient(value); - this._getClientDebt(value); - } - } - show() { this.$.popover.parent = this.parent; setTimeout(() => { @@ -56,6 +65,7 @@ ngModule.component('vnClientDescriptorPopover', { controller: Controller, bindings: { client: '<', - clientFk: '<' + clientFk: '<', + quicklinks: '<' } }); diff --git a/client/client/src/descriptor/index.html b/client/client/src/descriptor/index.html index e09762c367..6f92aa78ee 100644 --- a/client/client/src/descriptor/index.html +++ b/client/client/src/descriptor/index.html @@ -53,11 +53,23 @@ ng-class="{bright: $ctrl.client.isTaxDataChecked == false}"> - - + + + + + + + + \ No newline at end of file diff --git a/client/client/src/descriptor/index.js b/client/client/src/descriptor/index.js index 431d0bd5f5..9ec8e5f4c3 100644 --- a/client/client/src/descriptor/index.js +++ b/client/client/src/descriptor/index.js @@ -4,7 +4,31 @@ class Controller { constructor($http, $state) { this.$state = $state; this.$http = $http; + this.links = { + btnOne: { + icon: 'icon-ticket', + state: 'ticket.index', + params: {q: `{"clientFk": ${$state.params.id}}`}, + tooltip: 'Client ticket list' + } + }; } + + set clientFk(value) { + if (value) { + this._getClient(value); + this._getClientDebt(value); + } + } + + set quicklinks(value = {}) { + this._quicklinks = Object.assign(value, this.links); + } + + get quicklinks() { + return this._quicklinks; + } + _getClientDebt(clientFk) { this.$http.get(`/client/api/Clients/${clientFk}/getDebt`) .then(response => { @@ -23,11 +47,8 @@ class Controller { this.$state.go('ticket.index', {q: `{"clientFk": ${this.client.id}}`}); } - set clientFk(value) { - if (value) { - this._getClient(value); - this._getClientDebt(value); - } + quicklinkGo(state, params) { + this.$state.go(state, params); } } @@ -37,7 +58,8 @@ ngModule.component('vnClientDescriptor', { template: require('./index.html'), bindings: { client: '<', - clientFk: ' + tags="$ctrl.tags" + quicklinks="$ctrl.quicklinks"> diff --git a/client/item/src/descriptor-popover/index.js b/client/item/src/descriptor-popover/index.js index c543001196..0093c57aad 100644 --- a/client/item/src/descriptor-popover/index.js +++ b/client/item/src/descriptor-popover/index.js @@ -7,11 +7,19 @@ class Controller extends Component { super($element, $scope); this.$http = $http; this.$timeout = $timeout; - + this.links = {}; this.isTooltip = true; this.clear(); } + set quicklinks(value = {}) { + this._quicklinks = Object.assign(value, this.links); + } + + get quicklinks() { + return this._quicklinks; + } + clear() { this.item = null; this.tags = {}; @@ -90,7 +98,8 @@ Controller.$inject = ['$element', '$scope', '$http', '$timeout']; ngModule.component('vnItemDescriptorPopover', { template: require('./index.html'), bindings: { - itemFk: '<' + itemFk: '<', + quicklinks: '<' }, controller: Controller }); diff --git a/client/item/src/descriptor/index.html b/client/item/src/descriptor/index.html index 813a66c2dd..9d8d3d6a80 100644 --- a/client/item/src/descriptor/index.html +++ b/client/item/src/descriptor/index.html @@ -37,4 +37,23 @@ + + + + + + + + + + diff --git a/client/item/src/descriptor/index.js b/client/item/src/descriptor/index.js index 5d443b8e90..103ebc47f4 100644 --- a/client/item/src/descriptor/index.js +++ b/client/item/src/descriptor/index.js @@ -1,11 +1,34 @@ import ngModule from '../module'; import './style.scss'; +class Controller { + constructor($state) { + this.$state = $state; + this.links = {}; + } + + set quicklinks(value = {}) { + this._quicklinks = Object.assign(value, this.links); + } + + get quicklinks() { + return this._quicklinks; + } + + quicklinkGo(state, params) { + this.$state.go(state, params); + } +} + +Controller.$inject = ['$state']; + ngModule.component('vnItemDescriptor', { template: require('./index.html'), + controller: Controller, bindings: { item: '<', itemTags: '<', - tags: '<' + tags: '<', + quicklinks: '<' } }); diff --git a/client/salix/src/styles/misc.scss b/client/salix/src/styles/misc.scss index b97470b86e..1af528e2df 100644 --- a/client/salix/src/styles/misc.scss +++ b/client/salix/src/styles/misc.scss @@ -206,7 +206,7 @@ vn-main-block { } } - .buttons { + .quicklinks { justify-content: center; align-items: center; diff --git a/client/ticket/src/sale/index.html b/client/ticket/src/sale/index.html index 79d4fb8330..903147dc82 100644 --- a/client/ticket/src/sale/index.html +++ b/client/ticket/src/sale/index.html @@ -164,7 +164,8 @@ - + diff --git a/client/ticket/src/sale/index.js b/client/ticket/src/sale/index.js index 6c0c32c4bb..09d3cfb74f 100644 --- a/client/ticket/src/sale/index.js +++ b/client/ticket/src/sale/index.js @@ -20,6 +20,25 @@ class Controller { ]; } + set ticket(value) { + this._ticket = value; + + if (!value) return; + + this.quicklinks = { + btnThree: { + icon: 'icon-transaction', + state: 'item.card.diary', + params: {id: value.id, q: `{"warehouseFk": ${value.warehouseFk}}`}, + tooltip: 'Item diary' + } + }; + } + + get ticket() { + return this._ticket; + } + onDataChange() { this.sales = this.$scope.model.data; this.getTaxes(); From 25d7bf09c58e33e61e421f91bbece75b7fcf0fbf Mon Sep 17 00:00:00 2001 From: Joan Date: Wed, 1 Aug 2018 12:39:06 +0200 Subject: [PATCH 2/3] fiscal data test waitForText smash! #467 --- e2e/paths/client-module/03_edit_fiscal_data.spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/e2e/paths/client-module/03_edit_fiscal_data.spec.js b/e2e/paths/client-module/03_edit_fiscal_data.spec.js index 09b020251a..d5d809715e 100644 --- a/e2e/paths/client-module/03_edit_fiscal_data.spec.js +++ b/e2e/paths/client-module/03_edit_fiscal_data.spec.js @@ -88,6 +88,7 @@ describe('Client', () => { .wait(selectors.clientFiscalData.socialNameInput) .clearInput(selectors.clientFiscalData.socialNameInput) .type(selectors.clientFiscalData.socialNameInput, 'SMASH!') + .waitForTextInInput(selectors.clientFiscalData.socialNameInput, 'SMASH!') .clearInput(selectors.clientFiscalData.fiscalIdInput) .type(selectors.clientFiscalData.fiscalIdInput, '94980061C') .waitToClick(selectors.clientFiscalData.equalizationTaxCheckboxLabel) From 0c6ae08d4a5be2f649a57d1744c65d38d193600f Mon Sep 17 00:00:00 2001 From: Bernat Date: Wed, 1 Aug 2018 13:24:38 +0200 Subject: [PATCH 3/3] change idWorker from to users and fix back unit test --- services/db/install/dump/fixtures.sql | 107 +++++++++++------- .../methods/client/specs/listWorkers.spec.js | 2 +- 2 files changed, 66 insertions(+), 43 deletions(-) diff --git a/services/db/install/dump/fixtures.sql b/services/db/install/dump/fixtures.sql index 77dfcff38e..70a6e39236 100644 --- a/services/db/install/dump/fixtures.sql +++ b/services/db/install/dump/fixtures.sql @@ -13,24 +13,24 @@ DELETE FROM `vn`.`worker` where name ='customer'; INSERT INTO `account`.`user`(`id`,`name`,`password`,`role`,`active`,`email`) VALUES - (101, 'BruceWayne', 'ac754a330530832ba1bf7687f577da91', 2, 1, 'BruceWayne@verdnatura.es'), - (102, 'PetterParker', 'ac754a330530832ba1bf7687f577da91', 2, 1, 'PetterParker@verdnatura.es'), - (103, 'ClarkKent', 'ac754a330530832ba1bf7687f577da91', 2, 1, 'ClarkKent@verdnatura.es'), - (104, 'TonyStark', 'ac754a330530832ba1bf7687f577da91', 2, 1, 'TonyStark@verdnatura.es'), - (105, 'MaxEisenhardt', 'ac754a330530832ba1bf7687f577da91', 2, 1, 'MaxEisenhardt@verdnatura.es'), - (106, 'DavidCharlesHaller', 'ac754a330530832ba1bf7687f577da91', 2, 1, 'DavidCharlesHaller@verdnatura.es'), - (107, 'HankPym', 'ac754a330530832ba1bf7687f577da91', 2, 1, 'HankPym@verdnatura.es'), - (108, 'CharlesXavier', 'ac754a330530832ba1bf7687f577da91', 2, 1, 'CharlesXavier@verdnatura.es'), - (109, 'BruceBanner', 'ac754a330530832ba1bf7687f577da91', 2, 1, 'BruceBanner@verdnatura.es'), - (110, 'JessicaJones', 'ac754a330530832ba1bf7687f577da91' , 2, 1, 'JessicaJones@verdnatura.es'); + (101, 'BruceWayne', 'ac754a330530832ba1bf7687f577da91', 2 , 1, 'BruceWayne@verdnatura.es'), + (102, 'PetterParker', 'ac754a330530832ba1bf7687f577da91', 2 , 1, 'PetterParker@verdnatura.es'), + (103, 'ClarkKent', 'ac754a330530832ba1bf7687f577da91', 2 , 1, 'ClarkKent@verdnatura.es'), + (104, 'TonyStark', 'ac754a330530832ba1bf7687f577da91', 2 , 1, 'TonyStark@verdnatura.es'), + (105, 'MaxEisenhardt', 'ac754a330530832ba1bf7687f577da91', 2 , 1, 'MaxEisenhardt@verdnatura.es'), + (106, 'DavidCharlesHaller', 'ac754a330530832ba1bf7687f577da91', 2 , 1, 'DavidCharlesHaller@verdnatura.es'), + (107, 'HankPym', 'ac754a330530832ba1bf7687f577da91', 2 , 1, 'HankPym@verdnatura.es'), + (108, 'CharlesXavier', 'ac754a330530832ba1bf7687f577da91', 20, 1, 'CharlesXavier@verdnatura.es'), + (109, 'BruceBanner', 'ac754a330530832ba1bf7687f577da91', 2 , 1, 'BruceBanner@verdnatura.es'), + (110, 'JessicaJones', 'ac754a330530832ba1bf7687f577da91', 1 , 1, 'JessicaJones@verdnatura.es'); INSERT INTO `vn`.`worker`(`workerCode`, `id`, `firstName`, `name`, `userFk`) VALUES ('LGN', 106, 'David Charles', 'Haller', 106), ('ANT', 107, 'Hank' , 'Pym' , 107), - ('DCX', 108, 'Charles' , 'Xavier', 108), + ('DCX', 110, 'Charles' , 'Xavier', 108), ('HLK', 109, 'Bruce' , 'Banner', 109), - ('JJJ', 110, 'Jessica' , 'Jones' , 110); + ('JJJ', 108, 'Jessica' , 'Jones' , 110); INSERT INTO `vn`.`country`(`id`, `country`, `isUeeMember`, `code`, `currencyFk`) VALUES @@ -227,21 +227,21 @@ INSERT INTO `vn`.`address`(`id`, `nickname`, `street`, `city`, `postalCode`, `pr INSERT INTO `vn`.`clientCredit`(`id`, `clientFk`, `workerFk`, `amount`, `created`) VALUES - (1, 101, 5, 300, DATE_ADD(CURDATE(), INTERVAL -1 MONTH)), - (2, 101, 5, 900, DATE_ADD(CURDATE(), INTERVAL -2 MONTH)), - (3, 101, 5, 800, DATE_ADD(CURDATE(), INTERVAL -3 MONTH)), - (4, 101, 5, 700, DATE_ADD(CURDATE(), INTERVAL -4 MONTH)), - (5, 101, 5, 600, DATE_ADD(CURDATE(), INTERVAL -5 MONTH)), - (6, 101, 5, 500, DATE_ADD(CURDATE(), INTERVAL -6 MONTH)), - (7, 101, 5, 400, DATE_ADD(CURDATE(), INTERVAL -7 MONTH)), - (8, 101, 9, 300, DATE_ADD(CURDATE(), INTERVAL -8 MONTH)), - (9, 101, 9, 200, DATE_ADD(CURDATE(), INTERVAL -9 MONTH)), + (1 , 101, 5, 300, DATE_ADD(CURDATE(), INTERVAL -1 MONTH)), + (2 , 101, 5, 900, DATE_ADD(CURDATE(), INTERVAL -2 MONTH)), + (3 , 101, 5, 800, DATE_ADD(CURDATE(), INTERVAL -3 MONTH)), + (4 , 101, 5, 700, DATE_ADD(CURDATE(), INTERVAL -4 MONTH)), + (5 , 101, 5, 600, DATE_ADD(CURDATE(), INTERVAL -5 MONTH)), + (6 , 101, 5, 500, DATE_ADD(CURDATE(), INTERVAL -6 MONTH)), + (7 , 101, 5, 400, DATE_ADD(CURDATE(), INTERVAL -7 MONTH)), + (8 , 101, 9, 300, DATE_ADD(CURDATE(), INTERVAL -8 MONTH)), + (9 , 101, 9, 200, DATE_ADD(CURDATE(), INTERVAL -9 MONTH)), (10, 101, 9, 100, DATE_ADD(CURDATE(), INTERVAL -10 MONTH)), - (11, 101, 9, 50, DATE_ADD(CURDATE(), INTERVAL -11 MONTH)), + (11, 101, 9, 50 , DATE_ADD(CURDATE(), INTERVAL -11 MONTH)), (12, 102, 9, 800, CURDATE()), (13, 103, 9, 200, CURDATE()), - (14, 104, 9, 90, CURDATE()), - (15, 105, 9, 90, CURDATE()); + (14, 104, 9, 90 , CURDATE()), + (15, 105, 9, 90 , CURDATE()); INSERT INTO `vn`.`clientCreditLimit`(`id`, `maxAmount`, `roleFk`) VALUES @@ -312,11 +312,11 @@ INSERT INTO `vn`.`bankEntity`(`id`, `countryFk`, `name`, `bic`) INSERT INTO `vn`.`company`(`id`, `code`, `supplierAccountFk`, `workerManagerFk`, `companyCode`, `sage200Company`) VALUES - ( 69, 'CCs', NULL, 30, NULL, 1), - (442, 'VNL', 241, 30, 2, 2), - ( 567, 'VNH', NULL, 30, NULL, 3), - ( 791, 'FTH', NULL, 30, NULL, 4), - ( 1381, 'ORN', NULL, 30, NULL,5); + ( 69 , 'CCs', NULL, 30, NULL, 1), + ( 442 , 'VNL', 241, 30, 2 , 2), + ( 567 , 'VNH', NULL, 30, NULL, 3), + ( 791 , 'FTH', NULL, 30, NULL, 4), + ( 1381, 'ORN', NULL, 30, NULL, 5); INSERT INTO `vn`.`invoiceOut`(`id`, `ref`, `serial`, `amount`, `issued`,`clientFk`, `created`, `companyFk`, `dued`, `booked`, `bankFk`, `pdf`) VALUES @@ -428,14 +428,14 @@ INSERT INTO `vn`.`mandate`(`id`, `clientFk`, `companyFk`, `code`, `created`, `ma INSERT INTO `vn`.`itemCategory`(`id`, `name`, `display`, `color`) VALUES - (1, 'Plant', 1, 'B92A26'), - (2, 'Flower', 2, 'dcf711'); + (1, 'Plant' , 1, 'B92A26'), + (2, 'Flower', 2, 'dcf711'); INSERT INTO `vn`.`itemType`(`id`, `code`, `name`, `categoryFk`, `life`,`workerFk`) VALUES - (1, 'CRI', 'Crisantemo', 2, 15, 5), - (2, 'ITG', 'Anthurium', 1, 30, 5), - (3, 'WPN', 'Paniculata', 2, 30, 5), + (1, 'CRI', 'Crisantemo' , 2, 15, 5), + (2, 'ITG', 'Anthurium' , 1, 30, 5), + (3, 'WPN', 'Paniculata' , 2, 30, 5), (4, 'PRT', 'Delivery ports', 2, 30, 5); INSERT INTO `vn`.`ink`(`id`, `name`, `picture`, `showOrder`) @@ -457,14 +457,14 @@ INSERT INTO `vn`.`producer`(`id`, `name`) INSERT INTO `vn`.`taxType`(`id`, `nickname`, `isAccrued`, `serial`, `TIPOOPE`, `description`, `countryFk`) VALUES - (1, 'National', 1, 'R', 'I', 'national VAT',1), - (2, 'European', 0, 'E', 'I', 'europe VAT', 1); + (1, 'National', 1, 'R', 'I', 'national VAT', 1), + (2, 'European', 0, 'E', 'I', 'europe VAT' , 1); INSERT INTO `vn`.`taxCode`(`id`, `dated`, `code`, `taxTypeFk`, `rate`, `equalizationTax`, `type`, `link`, `isActive`, `updated`, `transactionCode`) VALUES - (1, CURDATE() , '1111111111', 1, 7.0 , 0.0, 'R', 1, 1, CURDATE(), 1), - (2, CURDATE() , '2222222222', 2, 16.0, 0.0, 'G', 2, 1, CURDATE(), 1), - (21, CURDATE() , '3333333333', 1, 18.0, 0.0, 'R', 3, 1, CURDATE(), 1), + (1 , CURDATE(), '1111111111', 1, 7.0 , 0.0, 'R', 1, 1, CURDATE(), 1), + (2 , CURDATE(), '2222222222', 2, 16.0, 0.0, 'G', 2, 1, CURDATE(), 1), + (21 , CURDATE(), '3333333333', 1, 18.0, 0.0, 'R', 3, 1, CURDATE(), 1), (108, CURDATE(), '4444444444', 2, 8.0 , 0.0, 'R', 4, 1, CURDATE(), 1); INSERT INTO `vn`.`taxClass`(`id`, `description`, `code`) @@ -474,7 +474,7 @@ INSERT INTO `vn`.`taxClass`(`id`, `description`, `code`) INSERT INTO `vn`.`intrastat`(`id`, `description`, `taxClassFk`, `taxCodeFk`) VALUES - (05080000, 'Coral y materiales similares' , 2, 2), + (05080000, 'Coral y materiales similares' , 2, 2), (06021010, 'Plantas vivas: Esqueje/injerto, Vid', 1, 1); INSERT INTO `vn`.`item`(`id`, `name`,`typeFk`,`size`,`inkFk`,`category`,`stems`,`originFk`,`description`,`producerFk`,`intrastatFk`,`isOnOffer`,`expenceFk`,`isBargain`,`comment`,`relevancy`,`image`,`taxClassFk`,`longName`,`subName`,`tag5`,`value5`,`tag6`,`value6`,`tag7`,`value7`,`tag8`,`value8`) @@ -484,7 +484,7 @@ INSERT INTO `vn`.`item`(`id`, `name`,`typeFk`,`size`,`inkFk`,`category`,`stems`, (3, 'Iron Patriot', 1, 60, 'AMR', 'EXT', 1 , 3, 'Rhodeys armor' , 1 , 05080000, 0, 4751000000, 0, NULL, 0, 61692, 1, 'Iron Patriot', NULL, 'Medida', '60', 'Color', 'Rosa/Amarillo', 'Categoria', 'EXT', 'Tallos', '1'), (4, 'Mark I', 1, 60, 'AMR', 'EXT', 1 , 1, 'Iron Mans first armor' , 1 , 05080000, 1, 4751000000, 0, NULL, 0, 66090, 2, 'Mark I' , NULL, 'Medida', '60', 'Color', 'Rosa/Amarillo', 'Categoria', 'EXT', 'Tallos', '1'), (5, 'Mjolnir', 3, 30, 'AZL', 'EXT', 1 , 2, 'Thors hammer!' , 2 , 06021010, 1, 4751000000, 0, NULL, 0, 67350, 2, 'Mjolnir' , NULL, 'Medida', '30', 'Color', 'Azul' , 'Categoria', 'EXT', 'Tallos', '1'), - (6, 'ShippingCost', 4, NULL, NULL, NULL, NULL, 2, NULL , NULL, 06021010, 1, 4751000000, 0, NULL, 0, 67350, 2, 'ShippingCost', NULL, 'Medida', NULL, 'Color', NULL , 'Categoria', NULL, 'Tallos', NULL); + (6, 'ShippingCost', 4, NULL, NULL, NULL, NULL, 2, NULL , NULL, 06021010, 1, 4751000000, 0, NULL, 0, 67350, 2, 'ShippingCost', NULL, 'Medida', NULL, 'Color', NULL , 'Categoria', NULL , 'Tallos', NULL); INSERT INTO `vn`.`expedition`(`id`, `agencyModeFk`, `ticketFk`, `isBox`, `created`, `itemFk`, `counter`, `checked`, `workerFk`) VALUES @@ -614,7 +614,30 @@ INSERT INTO `vn`.`tag`(`id`,`name`,`isFree`,`isQuantitatif`,`sourceTable`,`unit` (3, 'Shape', 0, 0, null, null), (4, 'Location', 1, 0, null, null), (5, 'Owner', 1, 1, null, null); - +/* +INSERT INTO `vn`.`itemTag`(`id`,`itemFk`,`tagFk`,`value`,`priority`) + VALUES + (1, 1, 1, 'Yellow', 5), + (2, 1, 2, 'Manipulates time', 4), + (3, 1, 3, 'round', 3), + (4, 1, 4, 'Gamoras hideout', 2), + (5, 1, 5, 'Gamora', 1), + (6, 2, 1, 'Red', 5), + (7, 2, 2, 'Manipulates mind', 4), + (8, 2, 3, 'square', 3), + (9, 2, 4, 'unknown location', 2), + (10, 2, 5, 'Thanos', 1), + (11, 3, 1, 'Green', 5), + (12, 3, 2, 'Save the children', 4), + (13, 3, 3, 'human shape', 3), + (14, 3, 4, 'Stark tower', 2), + (15, 3, 5, 'Tony Stark', 1), + (16, 4, 1, 'Blue', 5), + (17, 4, 2, 'Protect the citizen', 4), + (18, 4, 3, 'human shape', 3), + (19, 4, 4, 'Manhattan', 2), + (20, 4, 5, 'Tony Stark', 1); +*/ INSERT INTO `vn`.`itemTag`(`id`,`itemFk`,`tagFk`,`value`,`priority`) VALUES (1, 1, 1, 'Yellow', 5), diff --git a/services/loopback/common/methods/client/specs/listWorkers.spec.js b/services/loopback/common/methods/client/specs/listWorkers.spec.js index 199c5472c3..db61deab31 100644 --- a/services/loopback/common/methods/client/specs/listWorkers.spec.js +++ b/services/loopback/common/methods/client/specs/listWorkers.spec.js @@ -7,7 +7,7 @@ describe('Client listWorkers', () => { .then(result => { let amountOfEmployees = Object.keys(result).length; - expect(amountOfEmployees).toEqual(39); + expect(amountOfEmployees).toEqual(41); done(); }) .catch(catchErrors(done));