diff --git a/back/models/warehouse.json b/back/models/warehouse.json
index eb86e2114..dcbf7f2d2 100644
--- a/back/models/warehouse.json
+++ b/back/models/warehouse.json
@@ -24,9 +24,6 @@
},
"isManaged":{
"type": "boolean"
- },
- "hasStowaway":{
- "type": "boolean"
}
},
"acls": [
diff --git a/db/changes/10480-june/00-item.sql b/db/changes/10480-june/00-item.sql
new file mode 100644
index 000000000..a08d3f4c1
--- /dev/null
+++ b/db/changes/10480-june/00-item.sql
@@ -0,0 +1 @@
+ALTER TABLE `vn`.`item` MODIFY COLUMN description TEXT CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL NULL;
diff --git a/db/dump/fixtures.sql b/db/dump/fixtures.sql
index cee45c3df..5a2188cb5 100644
--- a/db/dump/fixtures.sql
+++ b/db/dump/fixtures.sql
@@ -139,14 +139,14 @@ INSERT INTO `vn`.`warehouseAlias`(`id`, `name`)
(1, 'Main Warehouse'),
(2, 'Gotham');
-INSERT INTO `vn`.`warehouse`(`id`, `name`, `code`, `isComparative`, `isInventory`, `hasAvailable`, `isManaged`, `hasStowaway`, `hasDms`, `hasComission`, `aliasFk`, `countryFk`, `hasProduction`)
+INSERT INTO `vn`.`warehouse`(`id`, `name`, `code`, `isComparative`, `isInventory`, `hasAvailable`, `isManaged`, `hasDms`, `hasComission`, `aliasFk`, `countryFk`, `hasProduction`)
VALUES
- (1, 'Warehouse One', 'ALG', 1, 1, 1, 1, 1, 1, 1, 2, 1, 1),
- (2, 'Warehouse Two', NULL, 1, 1, 1, 1, 0, 0, 1, 2, 13, 1),
- (3, 'Warehouse Three', NULL, 1, 1, 1, 1, 0, 0, 0, 2, 1, 1),
- (4, 'Warehouse Four', NULL, 1, 1, 1, 1, 0, 0, 0, 2, 1, 1),
- (5, 'Warehouse Five', NULL, 1, 1, 1, 1, 0, 0, 0, 2, 1, 1),
- (13, 'Inventory', NULL, 1, 1, 1, 0, 0, 0, 0, 2, 1, 0);
+ (1, 'Warehouse One', 'ALG', 1, 1, 1, 1, 1, 1, 2, 1, 1),
+ (2, 'Warehouse Two', NULL, 1, 1, 1, 1, 0, 1, 2, 13, 1),
+ (3, 'Warehouse Three', NULL, 1, 1, 1, 1, 0, 0, 2, 1, 1),
+ (4, 'Warehouse Four', NULL, 1, 1, 1, 1, 0, 0, 2, 1, 1),
+ (5, 'Warehouse Five', NULL, 1, 1, 1, 1, 0, 0, 2, 1, 1),
+ (13, 'Inventory', NULL, 1, 1, 1, 0, 0, 0, 2, 1, 0);
INSERT INTO `vn`.`sector`(`id`, `description`, `warehouseFk`, `isPreviousPreparedByPacking`, `code`)
VALUES
@@ -698,10 +698,6 @@ INSERT INTO `vn`.`ticketTracking`(`ticketFk`, `stateFk`, `workerFk`, `created`)
(23, 16, 21, util.VN_NOW()),
(24, 16, 21, util.VN_NOW());
-INSERT INTO `vn`.`stowaway`(`id`, `shipFk`, `created`)
- VALUES
- (12, 13, util.VN_CURDATE());
-
INSERT INTO `vn`.`deliveryPoint` (`id`, `name`, `ubication`)
VALUES
(1, 'Gotham','1007 Mountain Drive, Gotham');
@@ -1967,7 +1963,8 @@ INSERT INTO `postgresql`.`calendar_employee` (`business_id`, `calendar_state_id`
(1107, 1, IF(MONTH(util.VN_CURDATE()) = 12 AND DAY(util.VN_CURDATE()) > 10, DATE_ADD(util.VN_CURDATE(), INTERVAL -20 DAY), DATE_ADD(util.VN_CURDATE(), INTERVAL 20 DAY))),
(1107, 2, IF(MONTH(util.VN_CURDATE()) >= 1 AND DAY(util.VN_CURDATE()) > 20, DATE_ADD(util.VN_CURDATE(), INTERVAL -13 DAY), DATE_ADD(util.VN_CURDATE(), INTERVAL 8 DAY))),
(1107, 1, IF(MONTH(util.VN_CURDATE()) >= 1 AND DAY(util.VN_CURDATE()) > 20, DATE_ADD(util.VN_CURDATE(), INTERVAL -14 DAY), DATE_ADD(util.VN_CURDATE(), INTERVAL 9 DAY))),
- (1107, 2, IF(MONTH(util.VN_CURDATE()) >= 1 AND DAY(util.VN_CURDATE()) > 20, DATE_ADD(util.VN_CURDATE(), INTERVAL -15 DAY), DATE_ADD(util.VN_CURDATE(), INTERVAL 7 DAY)));
+ (1107, 2, IF(MONTH(util.VN_CURDATE()) >= 1 AND DAY(util.VN_CURDATE()) > 20, DATE_ADD(util.VN_CURDATE(), INTERVAL -15 DAY), DATE_ADD(util.VN_CURDATE(), INTERVAL 7 DAY))),
+ (1107, 2, DATE_ADD(util.VN_CURDATE(), INTERVAL - 16 DAY));
INSERT INTO `vn`.`smsConfig` (`id`, `uri`, `title`, `apiKey`)
VALUES
@@ -2237,8 +2234,8 @@ INSERT INTO `vn`.`workerTimeControl`(`userFk`, `timed`, `manual`, `direction`)
VALUES
(1106, CONCAT(util.VN_CURDATE(), ' 07:00'), TRUE, 'in'),
(1106, CONCAT(util.VN_CURDATE(), ' 10:00'), TRUE, 'middle'),
- (1106, CONCAT(util.VN_CURDATE(), ' 10:10'), TRUE, 'middle'),
- (1106, CONCAT(util.VN_CURDATE(), ' 15:00'), TRUE, 'out');
+ (1106, CONCAT(util.VN_CURDATE(), ' 10:20'), TRUE, 'middle'),
+ (1106, CONCAT(util.VN_CURDATE(), ' 14:50'), TRUE, 'out');
INSERT INTO `vn`.`dmsType`(`id`, `name`, `path`, `readRoleFk`, `writeRoleFk`, `code`)
VALUES
@@ -2606,3 +2603,7 @@ INSERT INTO `vn`.`sectorCollection` (`userFk`, `sectorFk`)
INSERT INTO `vn`.`sectorCollectionSaleGroup` (`sectorCollectionFk`, `saleGroupFk`)
VALUES
(1, 1);
+
+INSERT INTO `vn`.`workerTimeControlConfig` (`id`, `dayBreak`, `dayBreakDriver`, `shortWeekBreak`, `longWeekBreak`, `weekScope`, `mailPass`, `mailHost`, `mailSuccessFolder`, `mailErrorFolder`, `mailUser`, `minHoursToBreak`, `breakHours`, `hoursCompleteWeek`, `startNightlyHours`, `endNightlyHours`, `maxTimePerDay`, `breakTime`, `timeToBreakTime`, `dayMaxTime`, `shortWeekDays`, `longWeekDays`)
+ VALUES
+ (1, 43200, 32400, 129600, 259200, 604800, '', '', 'Leidos.exito', 'Leidos.error', 'timeControl', 5.33, 0.33, 40, '22:00:00', '06:00:00', 57600, 1200, 18000, 57600, 6, 13);
\ No newline at end of file
diff --git a/db/dump/structure.sql b/db/dump/structure.sql
index 24333ff64..2c0e8231a 100644
--- a/db/dump/structure.sql
+++ b/db/dump/structure.sql
@@ -44093,6 +44093,7 @@ WHERE
RETURN vPhyto;
END ;;
DELIMITER ;
+
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js
index cbcf11746..e939838cb 100644
--- a/e2e/helpers/selectors.js
+++ b/e2e/helpers/selectors.js
@@ -565,8 +565,6 @@ export default {
isDeletedIcon: 'vn-ticket-descriptor vn-icon[icon="icon-deletedTicket"]',
goBackToModuleIndexButton: 'vn-ticket-descriptor a[ui-sref="ticket.index"]',
moreMenu: 'vn-ticket-descriptor vn-ticket-descriptor-menu > vn-icon-button[icon=more_vert]',
- moreMenuAddStowaway: '.vn-menu [name="addStowaway"]',
- moreMenuDeleteStowawayButton: '.vn-menu [name="deleteStowaway"]',
moreMenuAddToTurn: '.vn-menu [name="addTurn"]',
moreMenuDeleteTicket: '.vn-menu [name="deleteTicket"]',
moreMenuRestoreTicket: '.vn-menu [name="restoreTicket"]',
@@ -579,8 +577,6 @@ export default {
sendSMSbutton: 'button[response="accept"]',
changeShippedHourDialog: '.vn-dialog.shown',
changeShippedHour: '.vn-dialog.shown vn-input-time[ng-model="$ctrl.newShipped"]',
- addStowawayDialogFirstTicket: '.vn-dialog.shown vn-table vn-tbody vn-tr',
- shipButton: 'vn-ticket-descriptor vn-icon[icon="icon-stowaway"]',
thursdayButton: '.vn-popup.shown vn-tool-bar > vn-button:nth-child(4)',
saturdayButton: '.vn-popup.shown vn-tool-bar > vn-button:nth-child(6)',
acceptDialog: '.vn-dialog.shown button[response="accept"]',
@@ -588,7 +584,6 @@ export default {
descriptorDeliveryDate: 'vn-ticket-descriptor slot-body > .attributes > vn-label-value:nth-child(4) > section > span',
descriptorDeliveryAgency: 'vn-ticket-descriptor slot-body > .attributes > vn-label-value:nth-child(5) > section > span',
acceptInvoiceOutButton: '.vn-confirm.shown button[response="accept"]',
- acceptDeleteStowawayButton: '.vn-dialog.shown button[response="accept"]'
},
ticketNotes: {
firstNoteRemoveButton: 'vn-icon[icon="delete"]',
@@ -911,52 +906,16 @@ export default {
dialogTimeInput: '.vn-dialog.shown vn-input-time[ng-model="$ctrl.newTimeEntry.timed"]',
dialogTimeDirection: '.vn-dialog.shown vn-autocomplete[ng-model="$ctrl.newTimeEntry.direction"]',
mondayAddTimeButton: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(1) > vn-icon-button',
- tuesdayAddTimeButton: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(2) > vn-icon-button',
- wednesdayAddTimeButton: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(3) > vn-icon-button',
- thursdayAddTimeButton: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(4) > vn-icon-button',
- fridayAddTimeButton: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(5) > vn-icon-button',
- saturdayAddTimeButton: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(6) > vn-icon-button',
- sundayAddTimeButton: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(7) > vn-icon-button',
firstEntryOfMonday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > section:nth-child(1) > vn-chip > div:nth-child(2)',
- firstEntryOfTuesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > section:nth-child(1) > vn-chip > div:nth-child(2)',
- firstEntryOfWednesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(3) > section:nth-child(1) > vn-chip > div:nth-child(2)',
- firstEntryOfThursday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(4) > section:nth-child(1) > vn-chip > div:nth-child(2)',
- firstEntryOfFriday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(5) > section:nth-child(1) > vn-chip > div:nth-child(2)',
- firstEntryOfSaturday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(6) > section:nth-child(1) > vn-chip > div:nth-child(2)',
- firstEntryOfSunday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(7) > section:nth-child(1) > vn-chip > div:nth-child(2)',
+ firstEntryOfMondayDelete: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > section:nth-child(1) > vn-chip > vn-icon[icon="cancel"]',
secondEntryOfMonday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > section:nth-child(2) > vn-chip > div:nth-child(2)',
- secondEntryOfTuesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > section:nth-child(2) > vn-chip > div:nth-child(2)',
- secondEntryOfWednesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(3) > section:nth-child(2) > vn-chip > div:nth-child(2)',
- secondEntryOfThursday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(4) > section:nth-child(2) > vn-chip > div:nth-child(2)',
- secondEntryOfFriday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(5) > section:nth-child(2) > vn-chip > div:nth-child(2)',
- secondEntryOfSaturday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(6) > section:nth-child(2) > vn-chip > div:nth-child(2)',
- secondEntryOfSunday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(7) > section:nth-child(2) > vn-chip > div:nth-child(2)',
- thirdEntryOfMonday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > section:nth-child(3) > vn-chip > div:nth-child(2)',
- thirdEntryOfMondayDelete: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > section:nth-child(3) > vn-chip > vn-icon[icon="cancel"]',
- thirdEntryOfTuesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > section:nth-child(3) > vn-chip > div:nth-child(2)',
- thirdEntryOfWednesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(3) > section:nth-child(3) > vn-chip > div:nth-child(2)',
- thirdEntryOfThursday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(4) > section:nth-child(3) > vn-chip > div:nth-child(2)',
- thirdEntryOfFriday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(5) > section:nth-child(3) > vn-chip > div:nth-child(2)',
- thirdEntryOfSaturday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(6) > section:nth-child(3) > vn-chip > div:nth-child(2)',
- thirdEntryOfSunday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(7) > section:nth-child(3) > vn-chip > div:nth-child(2)',
- fourthEntryOfMonday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > section:nth-child(4) > vn-chip > div:nth-child(2)',
- fourthEntryOfTuesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > section:nth-child(4) > vn-chip > div:nth-child(2)',
- fourthEntryOfWednesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(3) > section:nth-child(4) > vn-chip > div:nth-child(2)',
- fourthEntryOfThursday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(4) > section:nth-child(4) > vn-chip > div:nth-child(2)',
- fourthEntryOfFriday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(5) > section:nth-child(4) > vn-chip > div:nth-child(2)',
- fourthEntryOfSaturday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(6) > section:nth-child(4) > vn-chip > div:nth-child(2)',
- fourthEntryOfSunday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(7) > section:nth-child(4) > vn-chip > div:nth-child(2)',
mondayWorkedHours: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(1)',
- tuesdayWorkedHours: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(2)',
- wednesdayWorkedHours: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(3)',
- thursdayWorkedHours: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(4)',
- fridayWorkedHours: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(5)',
- saturdayWorkedHours: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(6)',
- sundayWorkedHours: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(7)',
weekWorkedHours: 'vn-worker-time-control vn-side-menu vn-label-value > section > span',
nextMonthButton: 'vn-worker-time-control vn-side-menu vn-calendar vn-button[icon=keyboard_arrow_right]',
previousMonthButton: 'vn-worker-time-control vn-side-menu vn-calendar vn-button[icon=keyboard_arrow_left]',
+ monthName: 'vn-worker-time-control vn-side-menu vn-calendar div > .title',
secondWeekDay: 'vn-worker-time-control vn-side-menu vn-calendar .day:nth-child(8) > .day-number',
+ thrirdWeekDay: 'vn-worker-time-control vn-side-menu vn-calendar .day:nth-child(15) > .day-number',
navigateBackToIndex: 'vn-worker-descriptor [name="goToModuleIndex"]'
},
workerCalendar: {
diff --git a/e2e/paths/02-client/05_add_address.spec.js b/e2e/paths/02-client/05_add_address.spec.js
index c35237ab4..0581635d0 100644
--- a/e2e/paths/02-client/05_add_address.spec.js
+++ b/e2e/paths/02-client/05_add_address.spec.js
@@ -45,7 +45,7 @@ describe('Client Add address path', () => {
expect(province).toContain('Province five');
});
- it(`should receive an error after clicking save button as consignee, incoterms and customsAgent are empty`, async() => {
+ it(`should throw after clicking save button as consignee, incoterms and customsAgent are empty`, async() => {
await page.write(selectors.clientAddresses.consignee, 'Bruce Bunner');
await page.write(selectors.clientAddresses.streetAddress, '320 Park Avenue New York');
await page.waitToClick(selectors.clientAddresses.saveButton);
diff --git a/e2e/paths/03-worker/04_time_control.spec.js b/e2e/paths/03-worker/04_time_control.spec.js
index 5709e6207..be8df3cf0 100644
--- a/e2e/paths/03-worker/04_time_control.spec.js
+++ b/e2e/paths/03-worker/04_time_control.spec.js
@@ -1,3 +1,4 @@
+/* eslint max-len: ["error", { "code": 150 }]*/
import selectors from '../../helpers/selectors.js';
import getBrowser from '../../helpers/puppeteer';
@@ -10,414 +11,105 @@ describe('Worker time control path', () => {
await page.loginAndModule('salesBoss', 'worker');
await page.accessToSearchResult('HankPym');
await page.accessToSection('worker.card.timeControl');
- await page.waitToClick(selectors.workerTimeControl.previousMonthButton);
- await page.waitToClick(selectors.workerTimeControl.secondWeekDay);
});
afterAll(async() => {
await browser.close();
});
- describe('as salesBoss', () => {
- describe('on Monday', () => {
- it('should scan in Hank Pym', async() => {
- const scanTime = '07:00';
+ const eightAm = '08:00';
+ const fourPm = '16:00';
+ const hankPymId = 1107;
- await page.waitToClick(selectors.workerTimeControl.mondayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'in');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.firstEntryOfMonday, 'innerText');
+ it('should go to the next month', async() => {
+ const date = new Date();
+ date.setMonth(date.getMonth() + 1);
+ const month = date.toLocaleString('default', {month: 'long'});
- expect(result).toEqual(scanTime);
- });
+ await page.waitToClick(selectors.workerTimeControl.nextMonthButton);
+ const result = await page.waitToGetProperty(selectors.workerTimeControl.monthName, 'innerText');
- it(`should scan out Hank Pym for break`, async() => {
- const scanTime = '10:00';
-
- await page.waitToClick(selectors.workerTimeControl.mondayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'intermediate');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.secondEntryOfMonday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should scan in Hank Pym for a wrong hour and forget to scan in from the break`, async() => {
- const scanTime = '18:00';
-
- await page.waitToClick(selectors.workerTimeControl.mondayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'intermediate');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.thirdEntryOfMonday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should delete the wrong entry for Hank Pym`, async() => {
- const wrongScanTime = '18:00';
-
- await page.waitForTextInElement(selectors.workerTimeControl.thirdEntryOfMonday, wrongScanTime);
- await page.waitToClick(selectors.workerTimeControl.thirdEntryOfMondayDelete);
- await page.respondToDialog('accept');
- const message = await page.waitForSnackbar();
-
- expect(message.text).toContain('Entry removed');
- });
-
- it(`should scan out Hank Pym to leave early`, async() => {
- const scanTime = '14:00';
-
- await page.waitToClick(selectors.workerTimeControl.mondayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'out');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.thirdEntryOfMonday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should add the break's scan in for Hank Pym and be in the right order`, async() => {
- const scanTime = '10:20';
-
- await page.waitToClick(selectors.workerTimeControl.mondayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'intermediate');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.fourthEntryOfMonday, 'innerText');
-
- expect(result).toEqual('14:00');
- });
-
- it(`should the third entry be the scan in from break`, async() => {
- const scanTime = '10:20';
-
- const result = await page
- .waitToGetProperty(selectors.workerTimeControl.thirdEntryOfMonday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should check Hank Pym worked 6:40 hours`, async() => {
- await page.waitForTextInElement(selectors.workerTimeControl.mondayWorkedHours, '06:40 h.');
- });
- });
-
- describe('on Tuesday', () => {
- it('should happily scan in Hank Pym', async() => {
- const scanTime = '08:00';
-
- await page.waitToClick(selectors.workerTimeControl.tuesdayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'in');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.firstEntryOfTuesday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should happily scan out Hank Pym for break`, async() => {
- const scanTime = '10:00';
-
- await page.waitToClick(selectors.workerTimeControl.tuesdayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'intermediate');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.secondEntryOfTuesday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should happily scan in Hank Pym from the break`, async() => {
- const scanTime = '10:20';
-
- await page.waitToClick(selectors.workerTimeControl.tuesdayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'intermediate');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.thirdEntryOfTuesday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should happily scan out Hank Pym for the day`, async() => {
- const scanTime = '16:00';
-
- await page.waitToClick(selectors.workerTimeControl.tuesdayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'out');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.fourthEntryOfTuesday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should check Hank Pym worked 7:40 hours`, async() => {
- await page.waitForTextInElement(selectors.workerTimeControl.tuesdayWorkedHours, '07:40 h.');
- });
- });
-
- describe('on Wednesday', () => {
- it('should cheerfully scan in Hank Pym', async() => {
- const scanTime = '09:00';
-
- await page.waitToClick(selectors.workerTimeControl.wednesdayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'in');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.firstEntryOfWednesday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should cheerfully scan out Hank Pym for break`, async() => {
- const scanTime = '10:00';
-
- await page.waitToClick(selectors.workerTimeControl.wednesdayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'intermediate');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.secondEntryOfWednesday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should cheerfully scan in Hank Pym from the break`, async() => {
- const scanTime = '10:20';
-
- await page.waitToClick(selectors.workerTimeControl.wednesdayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'intermediate');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.thirdEntryOfWednesday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should cheerfully scan out Hank Pym for the day`, async() => {
- const scanTime = '17:00';
-
- await page.waitToClick(selectors.workerTimeControl.wednesdayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'out');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.fourthEntryOfWednesday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should check Hank Pym worked 7:40 cheerfull hours`, async() => {
- await page.waitForTextInElement(selectors.workerTimeControl.wednesdayWorkedHours, '07:40 h.');
- });
- });
-
- describe('on Thursday', () => {
- it('should joyfully scan in Hank Pym', async() => {
- const scanTime = '09:59';
-
- await page.waitToClick(selectors.workerTimeControl.thursdayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'in');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.firstEntryOfThursday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should joyfully scan out Hank Pym for break`, async() => {
- const scanTime = '10:00';
- await page.waitToClick(selectors.workerTimeControl.thursdayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'intermediate');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.secondEntryOfThursday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should joyfully scan in Hank Pym from the break`, async() => {
- const scanTime = '10:20';
- await page.waitToClick(selectors.workerTimeControl.thursdayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'intermediate');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.thirdEntryOfThursday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should joyfully scan out Hank Pym for the day`, async() => {
- const scanTime = '17:59';
- await page.waitToClick(selectors.workerTimeControl.thursdayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'out');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.fourthEntryOfThursday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should check Hank Pym worked 7:40 joyfull hours`, async() => {
- await page.waitForTextInElement(selectors.workerTimeControl.thursdayWorkedHours, '07:40 h.');
- });
- });
-
- describe('on Friday', () => {
- it('should smilingly scan in Hank Pym', async() => {
- const scanTime = '07:30';
- await page.waitToClick(selectors.workerTimeControl.fridayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'in');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.firstEntryOfFriday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should smilingly scan out Hank Pym for break`, async() => {
- const scanTime = '10:00';
- await page.waitToClick(selectors.workerTimeControl.fridayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'intermediate');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.secondEntryOfFriday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should smilingly scan in Hank Pym from the break`, async() => {
- const scanTime = '10:20';
- await page.waitToClick(selectors.workerTimeControl.fridayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'intermediate');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.thirdEntryOfFriday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should smilingly scan out Hank Pym for the day`, async() => {
- const scanTime = '15:30';
- await page.waitToClick(selectors.workerTimeControl.fridayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'out');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.fourthEntryOfFriday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should check Hank Pym worked 7:40 hours with a smile on his face`, async() => {
- await page.waitForTextInElement(selectors.workerTimeControl.fridayWorkedHours, '07:40 h.');
- });
- });
+ expect(result).toContain(month);
});
- describe('as HHRR', () => {
- describe('on Saturday', () => {
- it('should log in as hr and pick the worker module', async() => {
- await page.loginAndModule('hr', 'worker');
- });
+ it('should go to current month', async() => {
+ const date = new Date();
+ const month = date.toLocaleString('default', {month: 'long'});
- it('should search for a worker and access to its summary', async() => {
- await page.accessToSearchResult('HankPym');
- await page.waitForState('worker.card.summary');
- });
+ await page.waitToClick(selectors.workerTimeControl.previousMonthButton);
+ const result = await page.waitToGetProperty(selectors.workerTimeControl.monthName, 'innerText');
- it('should access to the time control section', async() => {
- await page.accessToSection('worker.card.timeControl');
- await page.waitForState('worker.card.timeControl');
- await page.waitToClick(selectors.workerTimeControl.previousMonthButton);
- await page.waitToClick(selectors.workerTimeControl.secondWeekDay);
- });
-
- it('should lovingly scan in Hank Pym', async() => {
- const scanTime = '06:00';
- await page.waitForTimeout(1000); // without this timeout the dialog doesn't pop up
- await page.waitToClick(selectors.workerTimeControl.saturdayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'in');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.firstEntryOfSaturday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should lovingly scan out Hank Pym for the day with no break to leave a bit early`, async() => {
- const scanTime = '13:40';
- await page.waitToClick(selectors.workerTimeControl.saturdayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'out');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.secondEntryOfSaturday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should check Hank Pym worked 7:40 hours with all his will`, async() => {
- await page.waitForTextInElement(selectors.workerTimeControl.saturdayWorkedHours, '07:40 h.');
- });
- });
-
- describe('on Sunday', () => {
- it('should gladly scan in Hank Pym', async() => {
- const scanTime = '05:00';
- await page.waitToClick(selectors.workerTimeControl.sundayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'in');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.firstEntryOfSunday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should gladly scan out Hank Pym for the day with no break to leave a bit early`, async() => {
- const scanTime = '12:40';
- await page.waitToClick(selectors.workerTimeControl.sundayAddTimeButton);
- await page.pickTime(selectors.workerTimeControl.dialogTimeInput, scanTime);
- await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'out');
- await page.respondToDialog('accept');
- const result = await page.waitToGetProperty(selectors.workerTimeControl.secondEntryOfSunday, 'innerText');
-
- expect(result).toEqual(scanTime);
- });
-
- it(`should check Hank Pym worked 7:40 glad hours`, async() => {
- await page.waitForTextInElement(selectors.workerTimeControl.sundayWorkedHours, '07:40 h.');
- });
-
- it(`should check Hank Pym doesn't have hours set on the next months second week`, async() => {
- await page.waitToClick(selectors.workerTimeControl.nextMonthButton);
- await page.waitToClick(selectors.workerTimeControl.secondWeekDay);
- await page.waitForTextInElement(selectors.workerTimeControl.weekWorkedHours, '00:00 h.');
- });
-
- it(`should check he didn't scan in this week yet`, async() => {
- await page.waitToClick(selectors.workerTimeControl.navigateBackToIndex);
- await page.accessToSearchResult('salesBoss');
- await page.accessToSection('worker.card.timeControl');
-
- const wholeWeekHours = await page
- .waitToGetProperty(selectors.workerTimeControl.weekWorkedHours, 'innerText');
-
- expect(wholeWeekHours).toEqual('00:00 h.');
- });
- });
+ expect(result).toContain(month);
});
- describe('after all this amazing week', () => {
- it('should log in Hank', async() => {
- await page.loginAndModule('HankPym', 'worker');
- await page.accessToSearchResult('HankPym');
- await page.accessToSection('worker.card.timeControl');
- await page.waitToClick(selectors.workerTimeControl.previousMonthButton);
- await page.waitToClick(selectors.workerTimeControl.secondWeekDay);
- });
+ it('should go 1 month in the past', async() => {
+ const date = new Date();
+ date.setMonth(date.getMonth() - 1);
+ const timestamp = Math.round(date.getTime() / 1000);
+ const month = date.toLocaleString('default', {month: 'long'});
- it('should check his weekly hours are alright', async() => {
- await page.waitForTextInElement(selectors.workerTimeControl.weekWorkedHours, '52:40 h.');
- });
+ await page.loginAndModule('salesBoss', 'worker');
+ await page.goto(`http://localhost:5000/#!/worker/${hankPymId}/time-control?timestamp=${timestamp}`);
+ await page.waitToClick(selectors.workerTimeControl.secondWeekDay);
+
+ const result = await page.waitToGetProperty(selectors.workerTimeControl.monthName, 'innerText');
+
+ expect(result).toContain(month);
+ });
+
+ it(`should return error when insert 'out' of first entry`, async() => {
+ await page.waitToClick(selectors.workerTimeControl.mondayAddTimeButton);
+ await page.pickTime(selectors.workerTimeControl.dialogTimeInput, eightAm);
+ await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'out');
+ await page.respondToDialog('accept');
+ const message = await page.waitForSnackbar();
+
+ expect(message.text).toBeDefined();
+ });
+
+ it(`should insert 'in' monday`, async() => {
+ await page.waitToClick(selectors.workerTimeControl.mondayAddTimeButton);
+ await page.pickTime(selectors.workerTimeControl.dialogTimeInput, eightAm);
+ await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'in');
+ await page.respondToDialog('accept');
+ const result = await page.waitToGetProperty(selectors.workerTimeControl.firstEntryOfMonday, 'innerText');
+
+ expect(result).toEqual(eightAm);
+ });
+
+ it(`should insert 'out' monday`, async() => {
+ await page.waitToClick(selectors.workerTimeControl.mondayAddTimeButton);
+ await page.pickTime(selectors.workerTimeControl.dialogTimeInput, fourPm);
+ await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'out');
+ await page.respondToDialog('accept');
+ const result = await page.waitToGetProperty(selectors.workerTimeControl.secondEntryOfMonday, 'innerText');
+
+ expect(result).toEqual(fourPm);
+ });
+
+ it(`should check Hank Pym worked 8:20 hours`, async() => {
+ await page.waitForTextInElement(selectors.workerTimeControl.mondayWorkedHours, '08:20 h.');
+ await page.waitForTextInElement(selectors.workerTimeControl.weekWorkedHours, '08:20 h.');
+ });
+
+ it('should remove first entry of monday', async() => {
+ await page.waitForTextInElement(selectors.workerTimeControl.firstEntryOfMonday, eightAm);
+ await page.waitForTextInElement(selectors.workerTimeControl.secondEntryOfMonday, fourPm);
+ await page.waitToClick(selectors.workerTimeControl.firstEntryOfMondayDelete);
+ await page.respondToDialog('accept');
+ const message = await page.waitForSnackbar();
+
+ expect(message.text).toContain('Entry removed');
+ });
+
+ it(`should be the 'out' the first entry of monday`, async() => {
+ const result = await page.waitToGetProperty(selectors.workerTimeControl.firstEntryOfMonday, 'innerText');
+
+ expect(result).toEqual(fourPm);
+ });
+
+ it('should change week of month', async() => {
+ await page.waitToClick(selectors.workerTimeControl.thrirdWeekDay);
+ await page.waitForTextInElement(selectors.workerTimeControl.mondayWorkedHours, '00:00 h.');
});
});
diff --git a/e2e/paths/05-ticket/12_descriptor.spec.js b/e2e/paths/05-ticket/12_descriptor.spec.js
index 3429acc89..ca6fb8290 100644
--- a/e2e/paths/05-ticket/12_descriptor.spec.js
+++ b/e2e/paths/05-ticket/12_descriptor.spec.js
@@ -75,59 +75,6 @@ describe('Ticket descriptor path', () => {
});
});
- describe('Add stowaway', () => {
- it('should search for a ticket', async() => {
- await page.accessToSearchResult('16');
- await page.waitForState('ticket.card.summary');
- });
-
- it('should open the add stowaway dialog', async() => {
- await page.waitForFunction(() => {
- let element = document.querySelector('vn-ticket-descriptor-menu');
- return element.$ctrl.canShowStowaway === true;
- });
- await page.waitToClick(selectors.ticketDescriptor.moreMenu);
- await page.waitToClick(selectors.ticketDescriptor.moreMenuAddStowaway);
- await page.waitForSelector(selectors.ticketDescriptor.addStowawayDialogFirstTicket);
- const isVisible = await page.isVisible(selectors.ticketDescriptor.addStowawayDialogFirstTicket);
-
- expect(isVisible).toBeTruthy();
- });
-
- it('should add a ticket as stowaway', async() => {
- await page.waitToClick(selectors.ticketDescriptor.addStowawayDialogFirstTicket);
- const message = await page.waitForSnackbar();
-
- expect(message.text).toContain('Data saved!');
- });
-
- it(`should check the state of the stowaway ticket is embarked`, async() => {
- await page.waitForState('ticket.card.summary');
- const state = await page.waitToGetProperty(selectors.ticketDescriptor.stateLabelValue, 'innerText');
-
- expect(state).toEqual('State Embarcando');
- });
-
- it(`should navigate back to the added ticket using the descriptors ship button`, async() => {
- await page.waitToClick(selectors.ticketDescriptor.shipButton);
- await page.waitForState('ticket.card.summary');
- });
-
- it('should delete the stowaway', async() => {
- await page.waitToClick(selectors.ticketDescriptor.moreMenu);
- await page.waitForContentLoaded();
- await page.waitToClick(selectors.ticketDescriptor.moreMenuDeleteStowawayButton);
- await page.waitToClick(selectors.ticketDescriptor.acceptDeleteStowawayButton);
- const message = await page.waitForSnackbar();
-
- expect(message.text).toContain('Data saved!');
- });
-
- it(`should confirm the ship buton doesn't exisist any more`, async() => {
- await page.waitForSelector(selectors.ticketDescriptor.shipButton, {hidden: true});
- });
- });
-
describe('Make invoice', () => {
it('should login as administrative role then search for a ticket', async() => {
const invoiceableTicketId = '14';
diff --git a/e2e/paths/05-ticket/14_create_ticket.spec.js b/e2e/paths/05-ticket/14_create_ticket.spec.js
index d72557f99..48b4ebdd0 100644
--- a/e2e/paths/05-ticket/14_create_ticket.spec.js
+++ b/e2e/paths/05-ticket/14_create_ticket.spec.js
@@ -6,7 +6,6 @@ describe('Ticket create path', () => {
let page;
let nextMonth = new Date();
nextMonth.setMonth(nextMonth.getMonth() + 1);
- let stowawayTicketId;
beforeAll(async() => {
browser = await getBrowser();
@@ -36,8 +35,6 @@ describe('Ticket create path', () => {
it('should check the url is now the summary of the ticket', async() => {
await page.waitForState('ticket.card.summary');
- stowawayTicketId = await page.waitToGetProperty(selectors.ticketSummary.descriptorTicketId, 'innerText');
- stowawayTicketId = stowawayTicketId.substring(1);
});
it('should again open the new ticket form', async() => {
@@ -61,15 +58,6 @@ describe('Ticket create path', () => {
await page.waitForState('ticket.card.summary');
});
- it('should make the previously created ticket the stowaway of the current ticket', async() => {
- await page.waitToClick(selectors.ticketDescriptor.moreMenu);
- await page.waitToClick(selectors.ticketDescriptor.moreMenuAddStowaway);
- await page.waitToClick(selectors.ticketDescriptor.addStowawayDialogFirstTicket);
- const message = await page.waitForSnackbar();
-
- expect(message.text).toContain('Data saved!');
- });
-
it('should delete the current ticket', async() => {
await page.waitToClick(selectors.ticketDescriptor.moreMenu);
await page.waitToClick(selectors.ticketDescriptor.moreMenuDeleteTicket);
@@ -78,11 +66,4 @@ describe('Ticket create path', () => {
expect(message.text).toContain('Ticket deleted. You can undo this action within the first hour');
});
-
- it('should search for the stowaway ticket of the previously deleted ticket', async() => {
- await page.accessToSearchResult(stowawayTicketId);
- const result = await page.countElement(selectors.ticketDescriptor.shipButton);
-
- expect(result).toBe(0);
- });
});
diff --git a/front/core/styles/icons/salixfont.css b/front/core/styles/icons/salixfont.css
index c500f976d..2dee94c3b 100644
--- a/front/core/styles/icons/salixfont.css
+++ b/front/core/styles/icons/salixfont.css
@@ -343,9 +343,6 @@
.icon-splur:before {
content: "\e970";
}
-.icon-stowaway:before {
- content: "\e94f";
-}
.icon-supplier:before {
content: "\e925";
}
diff --git a/front/core/styles/icons/salixfont.svg b/front/core/styles/icons/salixfont.svg
index 2b8b1ac8a..96a584734 100644
--- a/front/core/styles/icons/salixfont.svg
+++ b/front/core/styles/icons/salixfont.svg
@@ -85,8 +85,6 @@
+ {{$ctrl.summary.item.description}} +
+{{ticket.description}}
-{{$t('stowaway')}}: {{ticket.shipFk}}