diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js index 217309f4c..84fbec4c6 100644 --- a/e2e/helpers/selectors.js +++ b/e2e/helpers/selectors.js @@ -288,11 +288,11 @@ export default { }, ticketExpedition: { expeditionButton: `${components.vnMenuItem}[ui-sref="ticket.card.expedition"]`, - secondExpeditionRemoveButton: `body > vn-app > vn-vertical > vn-vertical > ui-view > vn-ticket-card > vn-main-block > vn-horizontal > vn-one > vn-vertical > vn-ticket-expedition > vn-vertical > vn-card > div > vn-vertical > vn-one > vn-horizontal:nth-child(2) > vn-none > i`, + secondExpeditionRemoveButton: `body > vn-app > vn-vertical > vn-vertical > ui-view > vn-ticket-card > vn-main-block > vn-horizontal > vn-one > vn-vertical > vn-ticket-expedition > vn-vertical > vn-card > div > vn-vertical > vn-one > vn-horizontal:nth-child(2) > vn-one:nth-child(1) > i`, secondExpeditionText: `body > vn-app > vn-vertical > vn-vertical > ui-view > vn-ticket-card > vn-main-block > vn-horizontal > vn-one > vn-vertical > vn-ticket-expedition > vn-vertical > vn-card > div > vn-vertical > vn-one > vn-horizontal:nth-child(2)` }, ticketPackages: { - packagesButton: `${components.vnMenuItem}[ui-sref="ticket.card.package"]`, + packagesButton: `${components.vnMenuItem}[ui-sref="ticket.card.package.index"]`, firstPackageSelect: `${components.vnAutocomplete}[label="Package"] input` } }; diff --git a/e2e/paths/item-module/01_item_summary.spec.js b/e2e/paths/item-module/01_item_summary.spec.js index 5100a84c5..db25c163b 100644 --- a/e2e/paths/item-module/01_item_summary.spec.js +++ b/e2e/paths/item-module/01_item_summary.spec.js @@ -110,30 +110,42 @@ describe('Item summary path', () => { }); }); - it(`should check the item summary shows fields from all its sections`, () => { + it(`should check the item summary shows fields from basic data section`, () => { return nightmare .waitForTextInElement(selectors.itemSummary.basicData, 'Name: Gem of Time') .getInnerText(selectors.itemSummary.basicData) .then(result => { expect(result).toContain('Name: Gem of Time'); - return nightmare - .getInnerText(selectors.itemSummary.tags); - }) + }); + }); + + it(`should check the item summary shows fields from tags section`, () => { + return nightmare + .getInnerText(selectors.itemSummary.tags) .then(result => { expect(result).toContain('Color: Yellow'); - return nightmare - .getInnerText(selectors.itemSummary.niche); - }) + }); + }); + + it(`should check the item summary shows fields from niches section`, () => { + return nightmare + .getInnerText(selectors.itemSummary.niche) .then(result => { expect(result).toContain('Warehouse One: A1'); - return nightmare - .getInnerText(selectors.itemSummary.botanical); - }) + }); + }); + + it(`should check the item summary shows fields from botanical section`, () => { + return nightmare + .getInnerText(selectors.itemSummary.botanical) .then(result => { expect(result).toContain('Botanical: Hedera helix'); - return nightmare - .getInnerText(selectors.itemSummary.barcode); - }) + }); + }); + + it(`should check the item summary shows fields from barcodes section`, () => { + return nightmare + .getInnerText(selectors.itemSummary.barcode) .then(result => { expect(result).toContain('1'); }); diff --git a/services/db/04-fixtures.sql b/services/db/04-fixtures.sql index 768f0715d..28a82e378 100644 --- a/services/db/04-fixtures.sql +++ b/services/db/04-fixtures.sql @@ -128,7 +128,7 @@ INSERT INTO `vn`.`contactChannel`(`id`, `name`) INSERT INTO `vn`.`client`(`id`,`name`,`fi`,`socialName`,`contact`,`street`,`city`,`postcode`,`phone`,`mobile`,`fax`,`isRelevant`,`email`,`iban`,`dueDay`,`accountingAccount`,`isEqualizated`,`provinceFk`,`hasToInvoice`,`credit`,`countryFk`,`isActive`,`gestdocFk`,`quality`,`payMethodFk`,`created`,`isToBeMailed`,`contactChannelFk`,`hasSepaVnl`,`hasCoreVnl`,`hasCoreVnh`,`riskCalculated`,`clientTypeFk`,`mailAddress`,`cplusTerIdNifFk`,`hasToInvoiceByAddress`,`isTaxDataChecked`,`isFreezed`,`creditInsurance`,`isCreatedAsServed`,`hasInvoiceSimplified`,`salesPersonFk`,`isVies`,`eypbc`) VALUES - (101, 'Bruce Wayne', '74451390E', 'Batman', 'Alfred', '1007 Mountain Drive, Gotham', 'Silla', 46460, 1111111111, 222222222, 333333333, 1, 'BruceWayne@verdnatura.es', NULL, 0, 1234567890, 0, 1, 1, 300, 1, 1,NULL, 10, 5,CURDATE(), 1, 5, 1, 1, 1,'0000-00-00', 1, NULL, 1, 1, 1, 1, NULL, 0, 0, 18, 0, 1), + (101, 'Bruce Wayne', '84612325V', 'Batman', 'Alfred', '1007 Mountain Drive, Gotham', 'Silla', 46460, 1111111111, 222222222, 333333333, 1, 'BruceWayne@verdnatura.es', NULL, 0, 1234567890, 0, 1, 1, 300, 1, 1,NULL, 10, 5,CURDATE(), 1, 5, 1, 1, 1,'0000-00-00', 1, NULL, 1, 1, 1, 1, NULL, 0, 0, 18, 0, 1), (102, 'Petter Parker', '87945234L', 'Spider-Man', 'Aunt May', '20 Ingram Street', 'Silla', 46460, 1111111111, 222222222, 333333333, 1, 'PetterParker@verdnatura.es', NULL, 0, 1234567890, 0, 1, 1, 300, 1, 1,NULL, 10, 5,CURDATE(), 1, 5, 1, 1, 1,'0000-00-00', 1, NULL, 1, 1, 0, 1, NULL, 0, 0, 18, 0, 1), (103, 'Clark Kent', '06815934E', 'Super-Man', 'lois lane', '344 Clinton Street', 'Silla', 46460, 1111111111, 222222222, 333333333, 1, 'ClarkKent@verdnatura.es', NULL, 0, 1234567890, 0, 1, 1, 300, 1, 1,NULL, 10, 5,CURDATE(), 1, 5, 1, 1, 1,'0000-00-00', 1, NULL, 1, 1, 1, 1, NULL, 0, 0, 18, 0, 1), (104, 'Tony Stark', '06089160W', 'Iron-Man', 'Pepper Potts', '10880 Malibu Point', 'Silla', 46460, 1111111111, 222222222, 333333333, 1, 'TonyStark@verdnatura.es', NULL, 0, 1234567890, 0, 1, 1, 300, 1, 1,NULL, 10, 5,CURDATE(), 1, 5, 1, 1, 1,'0000-00-00', 1, NULL, 1, 1, 1, 1, NULL, 0, 0, 18, 0, 1),