diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js index 940a6d261..c29dc9bb1 100644 --- a/e2e/helpers/selectors.js +++ b/e2e/helpers/selectors.js @@ -309,6 +309,13 @@ export default { ticketSales: { saleButton: `vn-menu-item a[ui-sref="ticket.card.sale"]`, firstSaleText: `vn-table div > vn-tbody > vn-tr:nth-child(1)`, + firstSaleThumbnailImage: 'vn-ticket-sale:nth-child(1) vn-td:nth-child(3) > img', + firstSaleZoomedImage: 'body > div > div > img', + firstSaleQuantity: `vn-textfield[model="sale.quantity"]:nth-child(1) input`, + firstSaleID: 'vn-ticket-sale:nth-child(1) vn-td:nth-child(4)', + firstSalePrice: 'vn-ticket-sale:nth-child(1) vn-td:nth-child(7)', + firstSaleDiscount: 'vn-ticket-sale:nth-child(1) vn-td:nth-child(8)', + firstSaleImport: 'vn-ticket-sale:nth-child(1) vn-td:nth-child(9)', secondSaleText: `vn-table div > vn-tbody > vn-tr:nth-child(2)` }, ticketTracking: { @@ -317,6 +324,9 @@ export default { firstSaleText: `vn-table div > vn-tbody > vn-tr:nth-child(1)`, secondSaleText: `vn-table div > vn-tbody > vn-tr:nth-child(2)` }, + ticketBasicData: { + basicDataButton: `vn-menu-item a[ui-sref="ticket.card.data.stepOne"]` + }, createStateView: { stateInput: `vn-autocomplete[field="$ctrl.ticket.stateFk"] > div > div > input`, stateInputOptionOne: `vn-autocomplete[field="$ctrl.ticket.stateFk"] vn-drop-down ul > li:nth-child(1)`, @@ -324,4 +334,3 @@ export default { saveStateButton: `${components.vnSubmit}` } }; - diff --git a/services/loopback/common/locale/en.json b/services/loopback/common/locale/en.json index 14b3b6c22..c6e8298c7 100644 --- a/services/loopback/common/locale/en.json +++ b/services/loopback/common/locale/en.json @@ -29,5 +29,6 @@ "Period cannot be blank": "Period cannot be blank", "The credit must be an integer greater than or equal to zero": "The credit must be an integer greater than or equal to zero", "The grade must be an integer greater than or equal to zero": "The grade must be an integer greater than or equal to zero", - "Sample type cannot be blank": "Sample type cannot be blank" + "Sample type cannot be blank": "Sample type cannot be blank", + "The new quantity should be smaller than the old one": "The new quantity should be smaller than the old one" } \ No newline at end of file