2017-09-15 10:24:37 +00:00
|
|
|
// eslint max-len: ["error", 500]
|
|
|
|
// eslint key-spacing: ["error", 500]
|
2017-11-08 14:43:34 +00:00
|
|
|
import components from './components_selectors.js';
|
2017-11-07 08:09:59 +00:00
|
|
|
|
2017-09-15 10:24:37 +00:00
|
|
|
export default {
|
2017-09-17 16:09:59 +00:00
|
|
|
globalItems: {
|
2018-02-20 12:48:25 +00:00
|
|
|
logOutButton: `#logout`,
|
|
|
|
applicationsMenuButton: `#apps`,
|
2018-03-12 11:31:50 +00:00
|
|
|
applicationsMenuVisible: `vn-main-menu [vn-id="apps-menu"] ul`,
|
2018-05-23 12:26:51 +00:00
|
|
|
clientsButton: `vn-main-menu [vn-id="apps-menu"] ul > li[ui-sref="client.index"]`,
|
2018-05-25 08:03:45 +00:00
|
|
|
ticketsButton: `vn-main-menu [vn-id="apps-menu"] ul > li[ui-sref="ticket.index"]`
|
2017-09-17 16:09:59 +00:00
|
|
|
},
|
|
|
|
moduleAccessView: {
|
2018-05-23 12:26:51 +00:00
|
|
|
clientsSectionButton: `vn-home a[ui-sref="client.index"]`,
|
2018-04-05 10:46:02 +00:00
|
|
|
itemsSectionButton: `vn-home a[ui-sref="item.index"]`,
|
2018-05-25 08:03:45 +00:00
|
|
|
ticketsSectionButton: `vn-home a[ui-sref="ticket.index"]`
|
2017-09-17 16:09:59 +00:00
|
|
|
},
|
2017-10-29 14:49:44 +00:00
|
|
|
clientsIndex: {
|
2017-11-07 08:09:59 +00:00
|
|
|
searchClientInput: `${components.vnTextfield}`,
|
2018-05-31 09:52:39 +00:00
|
|
|
searchButton: `vn-searchbar vn-icon-button[icon="search"]`,
|
2018-03-01 20:18:43 +00:00
|
|
|
searchResult: `vn-item-client a`,
|
2017-11-07 08:09:59 +00:00
|
|
|
createClientButton: `${components.vnFloatButton}`
|
2017-09-17 16:09:59 +00:00
|
|
|
},
|
|
|
|
createClientView: {
|
2017-11-08 14:43:34 +00:00
|
|
|
name: `${components.vnTextfield}[name="name"]`,
|
|
|
|
taxNumber: `${components.vnTextfield}[name="fi"]`,
|
|
|
|
socialName: `${components.vnTextfield}[name="socialName"]`,
|
|
|
|
userName: `${components.vnTextfield}[name="userName"]`,
|
|
|
|
email: `${components.vnTextfield}[name="email"]`,
|
2018-03-09 13:15:30 +00:00
|
|
|
salesPersonInput: `vn-autocomplete[field="$ctrl.client.salesPersonFk"] input`,
|
|
|
|
salesBruceBannerOption: `vn-autocomplete[field="$ctrl.client.salesPersonFk"] vn-drop-down ul > li:nth-child(1)`,
|
2018-04-22 14:25:44 +00:00
|
|
|
createButton: `${components.vnSubmit}`,
|
2018-05-23 12:26:51 +00:00
|
|
|
cancelButton: `button[href="#!/client/index"]`
|
2017-10-30 14:37:35 +00:00
|
|
|
},
|
2018-02-15 11:28:05 +00:00
|
|
|
clientBasicData: {
|
2018-05-31 09:52:39 +00:00
|
|
|
basicDataButton: `vn-menu-item a[ui-sref="client.card.basicData"]`,
|
2017-11-08 14:43:34 +00:00
|
|
|
nameInput: `${components.vnTextfield}[name="name"]`,
|
2017-12-05 14:28:48 +00:00
|
|
|
contactInput: `${components.vnTextfield}[name="contact"]`,
|
2017-11-08 14:43:34 +00:00
|
|
|
phoneInput: `${components.vnTextfield}[name="phone"]`,
|
|
|
|
mobileInput: `${components.vnTextfield}[name="mobile"]`,
|
|
|
|
faxInput: `${components.vnTextfield}[name="fax"]`,
|
|
|
|
emailInput: `${components.vnTextfield}[name="email"]`,
|
2018-05-31 09:52:39 +00:00
|
|
|
salesPersonInput: `vn-autocomplete[field="$ctrl.client.salesPersonFk"] input`,
|
|
|
|
salesPersonOptionOne: `vn-autocomplete[field="$ctrl.client.salesPersonFk"] vn-drop-down ul > li:nth-child(1)`,
|
|
|
|
channelInput: `vn-autocomplete[field="$ctrl.client.contactChannelFk"] input`,
|
|
|
|
channelMetropolisOption: `vn-autocomplete[field="$ctrl.client.contactChannelFk"] vn-drop-down ul > li:nth-child(3)`,
|
2017-11-08 14:43:34 +00:00
|
|
|
saveButton: `${components.vnSubmit}`
|
2017-10-31 07:14:33 +00:00
|
|
|
},
|
2018-02-15 11:28:05 +00:00
|
|
|
clientFiscalData: {
|
2018-05-31 09:52:39 +00:00
|
|
|
fiscalDataButton: `vn-menu-item a[ui-sref="client.card.fiscalData"]`,
|
2017-12-05 14:28:48 +00:00
|
|
|
socialNameInput: `${components.vnTextfield}[name="socialName"]`,
|
2017-12-07 12:35:40 +00:00
|
|
|
fiscalIdInput: `${components.vnTextfield}[name="fi"]`,
|
2018-05-31 09:52:39 +00:00
|
|
|
equalizationTaxCheckboxLabel: `vn-check[label='Is equalizated'] > label > input`,
|
2018-02-20 09:00:19 +00:00
|
|
|
acceptPropagationButton: `vn-client-fiscal-data > vn-confirm button[response=ACCEPT]`,
|
2017-11-08 14:43:34 +00:00
|
|
|
addressInput: `${components.vnTextfield}[name="street"]`,
|
2017-11-09 08:03:41 +00:00
|
|
|
cityInput: `${components.vnTextfield}[name="city"]`,
|
2017-11-09 12:29:51 +00:00
|
|
|
postcodeInput: `${components.vnTextfield}[name="postcode"]`,
|
2018-05-31 09:52:39 +00:00
|
|
|
provinceInput: `vn-autocomplete[field="$ctrl.client.provinceFk"] input`,
|
|
|
|
provinceFifthOption: `vn-autocomplete[field="$ctrl.client.provinceFk"] vn-drop-down ul > li:nth-child(5)`,
|
|
|
|
countryInput: `vn-autocomplete[field="$ctrl.client.countryFk"] input`,
|
|
|
|
countryThirdOption: `vn-autocomplete[field="$ctrl.client.countryFk"] vn-drop-down ul > li:nth-child(3)`,
|
|
|
|
activeCheckboxLabel: `vn-check[label="Active"] > label`,
|
|
|
|
frozenCheckboxLabel: `vn-check[label="Frozen"] > label`,
|
|
|
|
invoiceByAddressCheckboxInput: `vn-check[label='Invoice by address'] > label > input`,
|
|
|
|
verifiedDataCheckboxInput: `vn-check[label="Verified data"] > label > input`,
|
|
|
|
hasToInvoiceCheckboxLabel: `vn-check[label='Has to invoice'] > label`,
|
|
|
|
invoiceByMailCheckboxLabel: `vn-check[label='Invoice by mail'] > label`,
|
|
|
|
viesCheckboxInput: `vn-check[label='Vies'] > label > input`,
|
2017-11-13 07:36:15 +00:00
|
|
|
saveButton: `${components.vnSubmit}`
|
2017-12-11 11:33:27 +00:00
|
|
|
},
|
2018-02-15 11:28:05 +00:00
|
|
|
clientPayMethod: {
|
2018-05-31 09:52:39 +00:00
|
|
|
payMethodButton: `vn-menu-item a[ui-sref="client.card.billingData"]`,
|
|
|
|
payMethodInput: `vn-autocomplete[field="$ctrl.client.payMethodFk"] input`,
|
|
|
|
payMethodIBANOption: `vn-autocomplete[field="$ctrl.client.payMethodFk"] vn-drop-down ul > li:nth-child(5)`,
|
|
|
|
payMethodOptionOne: `vn-autocomplete[field="$ctrl.client.payMethodFk"] vn-drop-down ul > li:nth-child(2)`,
|
2017-12-11 11:33:27 +00:00
|
|
|
IBANInput: `${components.vnTextfield}[name="iban"]`,
|
|
|
|
dueDayInput: `${components.vnTextfield}[name="dueDay"]`,
|
2018-05-31 09:52:39 +00:00
|
|
|
receivedCoreVNHCheckbox: `vn-check[label='Received core VNH'] > label > input`,
|
|
|
|
receivedCoreVNLCheckbox: `vn-check[label='Received core VNL'] > label > input`,
|
|
|
|
receivedB2BVNLCheckbox: `vn-check[label='Received B2B VNL'] > label > input`,
|
2017-12-11 11:33:27 +00:00
|
|
|
saveButton: `${components.vnSubmit}`
|
2017-12-13 10:25:50 +00:00
|
|
|
},
|
2018-02-15 11:28:05 +00:00
|
|
|
clientAddresses: {
|
2018-05-31 09:52:39 +00:00
|
|
|
addressesButton: `vn-menu-item a[ui-sref="client.card.address.index"]`,
|
2018-05-29 11:36:41 +00:00
|
|
|
createAddress: `vn-client-address-index ${components.vnFloatButton}`,
|
2018-05-31 09:52:39 +00:00
|
|
|
defaultCheckboxInput: `vn-check[label='Default'] > label > input`,
|
2018-01-29 11:37:54 +00:00
|
|
|
consigneeInput: `${components.vnTextfield}[name="nickname"]`,
|
2017-12-13 10:25:50 +00:00
|
|
|
streetAddressInput: `${components.vnTextfield}[name="street"]`,
|
2018-02-15 12:20:01 +00:00
|
|
|
postcodeInput: `${components.vnTextfield}[name="postalCode"]`,
|
2017-12-13 10:25:50 +00:00
|
|
|
cityInput: `${components.vnTextfield}[name="city"]`,
|
2018-05-31 09:52:39 +00:00
|
|
|
provinceInput: `vn-autocomplete[field="$ctrl.address.provinceFk"] input`,
|
|
|
|
provinceSecondOption: `vn-autocomplete[field="$ctrl.address.provinceFk"] vn-drop-down ul > li:nth-child(2)`,
|
|
|
|
agencyInput: `vn-autocomplete[field="$ctrl.address.agencyModeFk"] input`,
|
|
|
|
agenctySecondOption: `vn-autocomplete[field="$ctrl.address.agencyModeFk"] vn-drop-down ul > li:nth-child(2)`,
|
2017-12-13 10:25:50 +00:00
|
|
|
phoneInput: `${components.vnTextfield}[name="phone"]`,
|
|
|
|
mobileInput: `${components.vnTextfield}[name="mobile"]`,
|
2018-05-29 11:36:41 +00:00
|
|
|
defaultAddress: 'vn-client-address-index vn-horizontal:nth-child(2) div[name="street"]',
|
2018-05-23 12:26:51 +00:00
|
|
|
secondMakeDefaultStar: 'vn-client-address-index > vn-vertical > vn-card > div > vn-horizontal:nth-child(3) > vn-one > vn-horizontal > vn-none > i',
|
2018-05-31 09:52:39 +00:00
|
|
|
firstEditButton: `vn-client-address-index vn-icon-button[icon='edit']`,
|
|
|
|
secondEditButton: `vn-client-address-index vn-horizontal:nth-child(3) vn-icon-button[icon='edit']`,
|
|
|
|
activeCheckbox: `vn-check[label='Enabled'] > label > input`,
|
|
|
|
equalizationTaxCheckboxLabel: `vn-client-address-edit vn-check[label='Is equalizated'] > label > input`,
|
|
|
|
firstObservationTypeSelect: `vn-client-address-edit [name=observations] :nth-child(1) [field="observation.observationTypeFk"] input`,
|
|
|
|
firstObservationTypeSelectOptionOne: `vn-client-address-edit [name=observations] :nth-child(1) [field="observation.observationTypeFk"] vn-drop-down ul > li:nth-child(1)`,
|
|
|
|
firstObservationDescriptionInput: `vn-client-address-edit [name=observations] :nth-child(1) [model="observation.description"] input`,
|
|
|
|
secondObservationTypeSelect: `vn-client-address-edit [name=observations] :nth-child(2) [field="observation.observationTypeFk"] input`,
|
|
|
|
secondObservationTypeSelectOptionTwo: `vn-client-address-edit [name=observations] :nth-child(2) [field="observation.observationTypeFk"] vn-drop-down ul > li:nth-child(2)`,
|
|
|
|
secondObservationDescriptionInput: `vn-client-address-edit [name=observations] :nth-child(2) [model="observation.description"] input`,
|
|
|
|
thirdObservationTypeSelect: `vn-client-address-edit [name=observations] :nth-child(3) [field="observation.observationTypeFk"] input`,
|
|
|
|
thirdObservationTypeSelectOptionThree: `vn-client-address-edit [name=observations] :nth-child(3) [field="observation.observationTypeFk"] vn-drop-down ul > li:nth-child(3)`,
|
|
|
|
thirdObservationDescriptionInput: `vn-client-address-edit [name=observations] :nth-child(3) [model="observation.description"] input`,
|
|
|
|
addObservationButton: `vn-client-address-edit vn-icon-button[icon="add_circle"]`,
|
2018-04-22 14:25:44 +00:00
|
|
|
saveButton: `${components.vnSubmit}`,
|
2018-05-23 12:26:51 +00:00
|
|
|
cancelButton: `button[ui-sref="client.card.address.index"]`
|
2017-12-15 09:07:52 +00:00
|
|
|
},
|
2018-02-15 11:28:05 +00:00
|
|
|
clientWebAccess: {
|
2018-05-31 09:52:39 +00:00
|
|
|
webAccessButton: `vn-menu-item a[ui-sref="client.card.webAccess"]`,
|
|
|
|
enableWebAccessCheckbox: `vn-check[label='Enable web access'] > label > input`,
|
2017-12-15 09:07:52 +00:00
|
|
|
userNameInput: `${components.vnTextfield}[name="name"]`,
|
|
|
|
saveButton: `${components.vnSubmit}`
|
2017-12-15 11:51:06 +00:00
|
|
|
},
|
2018-02-15 11:28:05 +00:00
|
|
|
clientNotes: {
|
2018-05-31 09:52:39 +00:00
|
|
|
notesButton: `vn-menu-item a[ui-sref="client.card.note.index"]`,
|
2017-12-15 11:51:06 +00:00
|
|
|
addNoteFloatButton: `${components.vnFloatButton}`,
|
2018-05-31 09:52:39 +00:00
|
|
|
noteInput: `vn-textarea[label="Note"]`,
|
2017-12-15 11:51:06 +00:00
|
|
|
saveButton: `${components.vnSubmit}`,
|
2018-05-23 12:26:51 +00:00
|
|
|
firstNoteText: 'vn-client-note .text'
|
2018-01-08 07:12:39 +00:00
|
|
|
},
|
2018-02-15 11:28:05 +00:00
|
|
|
clientCredit: {
|
2018-05-31 09:52:39 +00:00
|
|
|
creditButton: `vn-menu-item a[ui-sref="client.card.credit.index"]`,
|
2018-01-08 07:12:39 +00:00
|
|
|
addCreditFloatButton: `${components.vnFloatButton}`,
|
|
|
|
creditInput: `${components.vnTextfield}[name="credit"]`,
|
|
|
|
saveButton: `${components.vnSubmit}`,
|
2018-05-23 12:26:51 +00:00
|
|
|
firstCreditText: 'vn-client-credit-index .list-element'
|
2018-01-08 14:06:20 +00:00
|
|
|
},
|
2018-02-15 11:28:05 +00:00
|
|
|
clientGreuge: {
|
2018-05-31 09:52:39 +00:00
|
|
|
greugeButton: `vn-menu-item a[ui-sref="client.card.greuge.index"]`,
|
2018-01-08 14:06:20 +00:00
|
|
|
addGreugeFloatButton: `${components.vnFloatButton}`,
|
2018-01-11 14:25:03 +00:00
|
|
|
amountInput: `${components.vnTextfield}[name="amount"]`,
|
2018-01-12 08:47:51 +00:00
|
|
|
descriptionInput: `${components.vnTextfield}[name="description"]`,
|
2018-05-31 09:52:39 +00:00
|
|
|
typeInput: `vn-autocomplete[field="$ctrl.greuge.greugeTypeFk"] input`,
|
|
|
|
typeSecondOption: `vn-autocomplete[field="$ctrl.greuge.greugeTypeFk"] vn-drop-down ul > li`,
|
2018-01-12 08:47:51 +00:00
|
|
|
saveButton: `${components.vnSubmit}`,
|
2018-05-23 12:26:51 +00:00
|
|
|
firstGreugeText: 'vn-client-greuge-index .list-element'
|
2018-01-12 13:20:28 +00:00
|
|
|
},
|
2018-02-15 11:28:05 +00:00
|
|
|
clientMandate: {
|
2018-05-31 09:52:39 +00:00
|
|
|
mandateButton: `vn-menu-item a[ui-sref="client.card.mandate"]`,
|
2018-03-01 22:38:14 +00:00
|
|
|
firstMandateText: 'vn-client-mandate .list-element'
|
2018-02-15 11:28:05 +00:00
|
|
|
},
|
2018-03-02 13:45:22 +00:00
|
|
|
clientInvoices: {
|
2018-05-31 09:52:39 +00:00
|
|
|
invoicesButton: `vn-menu-item a[ui-sref="client.card.invoice"]`,
|
2018-05-23 12:26:51 +00:00
|
|
|
firstInvoiceText: 'vn-client-invoice .list-element'
|
2018-03-02 13:45:22 +00:00
|
|
|
},
|
2018-02-15 11:28:05 +00:00
|
|
|
itemsIndex: {
|
2018-02-15 12:20:01 +00:00
|
|
|
createItemButton: `${components.vnFloatButton}`,
|
2018-03-01 20:18:43 +00:00
|
|
|
searchResult: `vn-item-product a`,
|
2018-03-13 13:07:42 +00:00
|
|
|
searchResultPreviewButton: `vn-item-product .buttons > [icon="desktop_windows"]`,
|
|
|
|
searchResultCloneButton: `vn-item-product .buttons > [icon="icon-clone"]`,
|
2018-05-25 08:03:45 +00:00
|
|
|
acceptClonationAlertButton: `vn-item-index [vn-id="clone"] [response="ACCEPT"]`,
|
2018-02-15 12:20:01 +00:00
|
|
|
searchItemInput: `${components.vnTextfield}`,
|
2018-05-31 09:52:39 +00:00
|
|
|
searchButton: `vn-searchbar vn-icon-button[icon="search"]`,
|
2018-05-25 08:03:45 +00:00
|
|
|
closeItemSummaryPreview: 'vn-item-index [vn-id="preview"] button.close'
|
2018-02-15 12:20:01 +00:00
|
|
|
},
|
2018-02-26 15:06:49 +00:00
|
|
|
itemCreateView: {
|
|
|
|
name: `${components.vnTextfield}[name="name"]`,
|
2018-05-31 09:52:39 +00:00
|
|
|
typeSelect: `vn-autocomplete[field="$ctrl.item.typeFk"] input`,
|
|
|
|
typeSelectOptionOne: `vn-autocomplete[field="$ctrl.item.typeFk"] vn-drop-down ul > li:nth-child(2)`,
|
|
|
|
intrastatSelect: `vn-autocomplete[field="$ctrl.item.intrastatFk"] input`,
|
|
|
|
intrastatSelectOptionOne: `vn-autocomplete[field="$ctrl.item.intrastatFk"] vn-drop-down ul > li:nth-child(2)`,
|
|
|
|
originSelect: `vn-autocomplete[field="$ctrl.item.originFk"] input`,
|
|
|
|
originSelectOptionOne: `vn-autocomplete[field="$ctrl.item.originFk"] vn-drop-down ul > li:nth-child(2)`,
|
2018-04-22 14:25:44 +00:00
|
|
|
createButton: `${components.vnSubmit}`,
|
|
|
|
cancelButton: `button[ui-sref="item.index"]`
|
2018-02-26 15:06:49 +00:00
|
|
|
|
|
|
|
},
|
2018-02-19 10:55:45 +00:00
|
|
|
itemBasicData: {
|
2018-03-01 15:52:35 +00:00
|
|
|
goToItemIndexButton: 'vn-item-descriptor [ui-sref="item.index"]',
|
2018-05-31 09:52:39 +00:00
|
|
|
basicDataButton: `vn-menu-item a[ui-sref="item.card.data"]`,
|
|
|
|
typeSelect: `vn-autocomplete[field="$ctrl.item.typeFk"] input`,
|
|
|
|
typeSelectOptionTwo: `vn-autocomplete[field="$ctrl.item.typeFk"] vn-drop-down ul > li:nth-child(2)`,
|
|
|
|
intrastatSelect: `vn-autocomplete[field="$ctrl.item.intrastatFk"] input`,
|
|
|
|
intrastatSelectOptionOne: `vn-autocomplete[field="$ctrl.item.intrastatFk"] vn-drop-down ul > li:nth-child(1)`,
|
2018-02-22 10:26:32 +00:00
|
|
|
nameInput: `vn-horizontal:nth-child(2) > ${components.vnTextfield}`,
|
|
|
|
relevancyInput: `vn-horizontal:nth-child(3) > ${components.vnTextfield}`,
|
2018-05-31 09:52:39 +00:00
|
|
|
originSelect: `vn-autocomplete[field="$ctrl.item.originFk"] input`,
|
|
|
|
originSelectOptionTwo: `vn-autocomplete[field="$ctrl.item.originFk"] vn-drop-down ul > li:nth-child(2)`,
|
|
|
|
expenceSelect: `vn-autocomplete[field="$ctrl.item.expenceFk"] input`,
|
|
|
|
expenceSelectOptionTwo: `vn-autocomplete[field="$ctrl.item.expenceFk"] vn-drop-down ul > li:nth-child(2)`,
|
2018-02-22 10:26:32 +00:00
|
|
|
submitBasicDataButton: `${components.vnSubmit}`
|
2018-02-19 10:55:45 +00:00
|
|
|
},
|
2018-02-27 18:00:46 +00:00
|
|
|
itemTags: {
|
2018-03-01 15:52:35 +00:00
|
|
|
goToItemIndexButton: 'vn-item-descriptor [ui-sref="item.index"]',
|
2018-05-31 09:52:39 +00:00
|
|
|
tagsButton: `vn-menu-item a[ui-sref="item.card.tags"]`,
|
|
|
|
firstRemoveTagButton: `vn-item-tags vn-horizontal:nth-child(2) > vn-icon[icon="remove_circle_outline"]`,
|
|
|
|
firstTagSelect: `vn-item-tags vn-horizontal:nth-child(2) > vn-autocomplete[field="itemTag.tagFk"] input`,
|
2018-04-19 13:02:06 +00:00
|
|
|
firstTagDisabled: `vn-item-tags vn-horizontal:nth-child(2) > vn-autocomplete > div > div > input`,
|
2018-05-31 09:52:39 +00:00
|
|
|
firstTagSelectOptionOne: `vn-item-tags vn-horizontal:nth-child(2) > vn-autocomplete[field="itemTag.tagFk"] vn-drop-down ul > li:nth-child(1)`,
|
2018-03-02 09:51:01 +00:00
|
|
|
firstValueInput: `vn-item-tags vn-horizontal:nth-child(2) > vn-textfield[label="Value"] > div > input`,
|
|
|
|
firstRelevancyInput: `vn-horizontal:nth-child(2) > vn-textfield[label="Relevancy"] > div > input`,
|
2018-05-31 09:52:39 +00:00
|
|
|
secondTagSelect: `vn-item-tags vn-horizontal:nth-child(3) > vn-autocomplete[field="itemTag.tagFk"] input`,
|
2018-04-19 13:02:06 +00:00
|
|
|
secondTagDisabled: `vn-item-tags vn-horizontal:nth-child(3) > vn-autocomplete > div > div > input`,
|
2018-05-31 09:52:39 +00:00
|
|
|
secondTagSelectOptionOne: `vn-item-tags vn-horizontal:nth-child(3) > vn-autocomplete[field="itemTag.tagFk"] vn-drop-down ul > li:nth-child(1)`,
|
2018-03-02 09:51:01 +00:00
|
|
|
secondValueInput: `vn-item-tags vn-horizontal:nth-child(3) > vn-textfield[label="Value"] > div > input`,
|
|
|
|
secondRelevancyInput: `vn-horizontal:nth-child(3) > vn-textfield[label="Relevancy"] > div > input`,
|
2018-05-31 09:52:39 +00:00
|
|
|
thirdTagSelect: `vn-item-tags vn-horizontal:nth-child(4) > vn-autocomplete[field="itemTag.tagFk"] input`,
|
2018-04-19 13:02:06 +00:00
|
|
|
thirdTagDisabled: `vn-item-tags vn-horizontal:nth-child(4) > vn-autocomplete > div > div > input`,
|
2018-05-31 09:52:39 +00:00
|
|
|
thirdTagSelectOptionOne: `vn-item-tags vn-horizontal:nth-child(4) > vn-autocomplete[field="itemTag.tagFk"] vn-drop-down ul > li:nth-child(1)`,
|
2018-03-02 09:51:01 +00:00
|
|
|
thirdValueInput: `vn-item-tags vn-horizontal:nth-child(4) > vn-textfield[label="Value"] > div > input`,
|
|
|
|
thirdRelevancyInput: `vn-horizontal:nth-child(4) > vn-textfield[label="Relevancy"] > div > input`,
|
2018-05-31 09:52:39 +00:00
|
|
|
fourthTagSelect: `vn-item-tags vn-horizontal:nth-child(5) > vn-autocomplete[field="itemTag.tagFk"] input`,
|
2018-04-19 13:02:06 +00:00
|
|
|
fourthTagDisabled: `vn-item-tags vn-horizontal:nth-child(5) > vn-autocomplete > div > div > input`,
|
2018-05-31 09:52:39 +00:00
|
|
|
fourthTagSelectOptionOne: `vn-item-tags vn-horizontal:nth-child(5) > vn-autocomplete[field="itemTag.tagFk"] vn-drop-down ul > li:nth-child(1)`,
|
2018-03-02 09:51:01 +00:00
|
|
|
fourthValueInput: `vn-item-tags vn-horizontal:nth-child(5) > vn-textfield[label="Value"] > div > input`,
|
|
|
|
fourthRelevancyInput: `vn-horizontal:nth-child(5) > vn-textfield[label="Relevancy"] > div > input`,
|
2018-05-31 09:52:39 +00:00
|
|
|
fifthTagSelect: `vn-item-tags vn-horizontal:nth-child(6) > vn-autocomplete[field="itemTag.tagFk"] input`,
|
2018-04-19 13:02:06 +00:00
|
|
|
fifthTagDisabled: `vn-item-tags vn-horizontal:nth-child(6) > vn-autocomplete > div > div > input`,
|
2018-05-31 09:52:39 +00:00
|
|
|
fifthTagSelectOptionFive: `vn-item-tags vn-horizontal:nth-child(6) > vn-autocomplete[field="itemTag.tagFk"] vn-drop-down ul > li:nth-child(5)`,
|
2018-03-02 09:51:01 +00:00
|
|
|
fifthValueInput: `vn-item-tags vn-horizontal:nth-child(6) > vn-textfield[label="Value"] > div > input`,
|
|
|
|
fifthRelevancyInput: `vn-horizontal:nth-child(6) > vn-textfield[label="Relevancy"] > div > input`,
|
2018-05-31 09:52:39 +00:00
|
|
|
addItemTagButton: `vn-icon[icon="add_circle"]`,
|
2018-02-27 18:00:46 +00:00
|
|
|
submitItemTagsButton: `${components.vnSubmit}`
|
|
|
|
},
|
2018-02-26 12:43:07 +00:00
|
|
|
itemTax: {
|
2018-05-31 09:52:39 +00:00
|
|
|
taxButton: `vn-menu-item a[ui-sref="item.card.tax"]`,
|
|
|
|
firstClassSelect: `vn-horizontal:nth-child(2) > vn-autocomplete[field="tax.taxClassFk"] input`,
|
|
|
|
firstClassSelectOptionTwo: `vn-horizontal:nth-child(2) > vn-autocomplete vn-drop-down ul > li:nth-child(2)`,
|
|
|
|
secondClassSelect: `vn-horizontal:nth-child(3) > vn-autocomplete[field="tax.taxClassFk"] input`,
|
|
|
|
secondClassSelectOptionOne: `vn-horizontal:nth-child(3) > vn-autocomplete vn-drop-down ul > li:nth-child(1)`,
|
|
|
|
thirdClassSelect: `vn-horizontal:nth-child(4) > vn-autocomplete[field="tax.taxClassFk"] input`,
|
|
|
|
thirdClassSelectOptionTwo: `vn-horizontal:nth-child(4) > vn-autocomplete vn-drop-down ul > li:nth-child(2)`,
|
2018-02-26 12:43:07 +00:00
|
|
|
submitTaxButton: `${components.vnSubmit}`
|
|
|
|
},
|
2018-02-15 12:20:01 +00:00
|
|
|
itemBarcodes: {
|
2018-05-31 09:52:39 +00:00
|
|
|
barcodeButton: `vn-menu-item a[ui-sref="item.card.itemBarcode"]`,
|
|
|
|
addBarcodeButton: `vn-icon[icon="add_circle"]`,
|
2018-05-16 11:02:19 +00:00
|
|
|
thirdCodeInput: `vn-item-barcode vn-horizontal:nth-child(4) > ${components.vnTextfield}`,
|
2018-02-19 10:55:45 +00:00
|
|
|
submitBarcodesButton: `${components.vnSubmit}`,
|
2018-05-31 09:52:39 +00:00
|
|
|
firstCodeRemoveButton: `vn-horizontal:nth-child(2) > vn-icon[icon="remove_circle_outline"]`
|
2018-02-20 14:22:24 +00:00
|
|
|
},
|
|
|
|
itemNiches: {
|
2018-05-31 09:52:39 +00:00
|
|
|
nicheButton: `vn-menu-item a[ui-sref="item.card.niche"]`,
|
|
|
|
addNicheButton: `vn-icon[icon="add_circle"]`,
|
|
|
|
firstWarehouseSelect: `vn-autocomplete[field="itemNiche.warehouseFk"] input`,
|
2018-03-16 14:09:04 +00:00
|
|
|
firstWarehouseDisabled: `vn-horizontal:nth-child(2) > vn-textfield[label="Warehouse"] > div > input`,
|
2018-05-31 09:52:39 +00:00
|
|
|
firstWarehouseSelectSecondOption: `vn-autocomplete[field="itemNiche.warehouseFk"] vn-drop-down ul > li:nth-child(2)`,
|
2018-03-23 14:08:14 +00:00
|
|
|
firstCodeInput: `vn-horizontal:nth-child(2) > vn-textfield[label="Code"] > div > input`,
|
2018-05-31 09:52:39 +00:00
|
|
|
secondWarehouseSelect: `vn-horizontal:nth-child(3) > vn-autocomplete[field="itemNiche.warehouseFk"] input`,
|
2018-03-16 14:09:04 +00:00
|
|
|
secondWarehouseDisabled: `vn-horizontal:nth-child(3) > vn-textfield[label="Warehouse"] > div > input`,
|
2018-03-23 14:08:14 +00:00
|
|
|
secondCodeInput: `vn-horizontal:nth-child(3) > vn-textfield[label="Code"] > div > input`,
|
2018-05-31 09:52:39 +00:00
|
|
|
secondNicheRemoveButton: `vn-horizontal:nth-child(3) > vn-icon[icon="remove_circle_outline"]`,
|
|
|
|
thirdWarehouseSelect: `vn-horizontal:nth-child(4) > vn-autocomplete[field="itemNiche.warehouseFk"] input`,
|
2018-03-16 14:09:04 +00:00
|
|
|
thirdWarehouseDisabled: `vn-horizontal:nth-child(4) > vn-textfield[label="Warehouse"] > div > input`,
|
2018-05-31 09:52:39 +00:00
|
|
|
thirdWarehouseSelectFourthOption: `vn-horizontal:nth-child(4) > vn-autocomplete[field="itemNiche.warehouseFk"] vn-drop-down ul > li:nth-child(4)`,
|
2018-03-23 14:08:14 +00:00
|
|
|
thirdCodeInput: `vn-horizontal:nth-child(4) > vn-textfield[label="Code"] > div > input`,
|
2018-02-20 21:35:54 +00:00
|
|
|
submitNichesButton: `${components.vnSubmit}`
|
2018-02-21 10:03:55 +00:00
|
|
|
},
|
|
|
|
itemBotanical: {
|
2018-05-31 09:52:39 +00:00
|
|
|
botanicalButton: `vn-menu-item a[ui-sref="item.card.botanical"]`,
|
2018-02-21 10:03:55 +00:00
|
|
|
botanicalInput: `vn-horizontal:nth-child(2) > ${components.vnTextfield}`,
|
2018-05-31 09:52:39 +00:00
|
|
|
genusSelect: `vn-autocomplete[field="$ctrl.botanical.genusFk"] input`,
|
|
|
|
genusSelectOptionOne: `vn-autocomplete[field="$ctrl.botanical.genusFk"] vn-drop-down ul > li:nth-child(1)`,
|
|
|
|
genusSelectOptionTwo: `vn-autocomplete[field="$ctrl.botanical.genusFk"] vn-drop-down ul > li:nth-child(2)`,
|
|
|
|
speciesSelect: `vn-autocomplete[field="$ctrl.botanical.specieFk"] input`,
|
|
|
|
speciesSelectOptionOne: `vn-autocomplete[field="$ctrl.botanical.specieFk"] vn-drop-down ul > li:nth-child(1)`,
|
|
|
|
speciesSelectOptionTwo: `vn-autocomplete[field="$ctrl.botanical.specieFk"] vn-drop-down ul > li:nth-child(2)`,
|
2018-02-21 10:03:55 +00:00
|
|
|
submitBotanicalButton: `${components.vnSubmit}`
|
2018-02-22 10:26:32 +00:00
|
|
|
},
|
2018-02-22 15:44:14 +00:00
|
|
|
itemSummary: {
|
2018-05-31 09:52:39 +00:00
|
|
|
basicData: `vn-item-summary vn-vertical[name="basicData"]`,
|
|
|
|
vat: `vn-item-summary vn-vertical[name="tax"]`,
|
|
|
|
tags: `vn-item-summary vn-vertical[name="tags"]`,
|
|
|
|
niche: `vn-item-summary vn-vertical[name="niche"]`,
|
|
|
|
botanical: `vn-item-summary vn-vertical[name="botanical"]`,
|
|
|
|
barcode: `vn-item-summary vn-vertical[name="barcode"]`
|
2018-03-19 15:29:55 +00:00
|
|
|
},
|
|
|
|
ticketsIndex: {
|
|
|
|
createTicketButton: `${components.vnFloatButton}`,
|
2018-04-19 13:02:06 +00:00
|
|
|
searchResult: `table > tbody > tr`,
|
2018-03-19 15:29:55 +00:00
|
|
|
searchTicketInput: `${components.vnTextfield}`,
|
2018-05-31 09:52:39 +00:00
|
|
|
searchButton: `vn-searchbar vn-icon-button[icon="search"]`
|
2018-03-19 15:29:55 +00:00
|
|
|
},
|
|
|
|
ticketNotes: {
|
2018-05-31 09:52:39 +00:00
|
|
|
notesButton: `vn-menu-item a[ui-sref="ticket.card.observation"]`,
|
|
|
|
firstNoteRemoveButton: `vn-icon[icon="remove_circle_outline"]`,
|
|
|
|
addNoteButton: `vn-icon[icon="add_circle"]`,
|
|
|
|
firstNoteSelect: `vn-autocomplete[field="ticketObservation.observationTypeFk"] input`,
|
|
|
|
firstNoteSelectSecondOption: `vn-autocomplete[field="ticketObservation.observationTypeFk"] vn-drop-down ul > li:nth-child(2)`,
|
2018-03-19 15:29:55 +00:00
|
|
|
firstNoteDisabled: `vn-textfield[label="Observation type"] > div > input`,
|
|
|
|
firstDescriptionInput: `vn-textfield[label="Description"] > div > input`,
|
|
|
|
submitNotesButton: `${components.vnSubmit}`
|
|
|
|
},
|
2018-03-22 14:01:36 +00:00
|
|
|
ticketExpedition: {
|
2018-05-31 09:52:39 +00:00
|
|
|
expeditionButton: `vn-menu-item a[ui-sref="ticket.card.expedition"]`,
|
2018-04-04 07:21:33 +00:00
|
|
|
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`,
|
2018-03-22 14:01:36 +00:00
|
|
|
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)`
|
|
|
|
},
|
2018-03-19 15:29:55 +00:00
|
|
|
ticketPackages: {
|
2018-05-31 09:52:39 +00:00
|
|
|
packagesButton: `vn-menu-item a[ui-sref="ticket.card.package.index"]`,
|
|
|
|
firstPackageSelect: `vn-autocomplete[label="Package"] > div > div > input`,
|
|
|
|
firstPackageSelectOptionThree: `vn-autocomplete[label="Package"] vn-drop-down ul > li:nth-child(3)`,
|
2018-04-04 14:41:06 +00:00
|
|
|
firstQuantityInput: `vn-textfield[label="Quantity"] > div > input`,
|
|
|
|
firstRemovePackageButton: `vn-icon[vn-tooltip="Remove package"]`,
|
|
|
|
addPackageButton: `vn-icon[vn-tooltip="Add package"]`,
|
2018-05-31 09:52:39 +00:00
|
|
|
clearPackageSelectButton: `vn-autocomplete[label="Package"] > div > div > div > vn-icon > i`,
|
2018-04-04 14:41:06 +00:00
|
|
|
savePackagesButton: `${components.vnSubmit}`
|
2018-04-04 09:56:07 +00:00
|
|
|
},
|
|
|
|
ticketSales: {
|
2018-05-31 09:52:39 +00:00
|
|
|
saleButton: `vn-menu-item a[ui-sref="ticket.card.sale"]`,
|
2018-04-04 09:56:07 +00:00
|
|
|
firstSaleText: `table > tbody > tr:nth-child(1)`,
|
|
|
|
secondSaleText: `table > tbody > tr:nth-child(2)`
|
2018-04-05 12:14:34 +00:00
|
|
|
},
|
|
|
|
ticketTracking: {
|
2018-05-31 09:52:39 +00:00
|
|
|
trackingButton: `vn-menu-item a[ui-sref="ticket.card.tracking.index"]`,
|
2018-04-05 12:14:34 +00:00
|
|
|
createStateButton: `${components.vnFloatButton}`,
|
|
|
|
firstSaleText: `table > tbody > tr:nth-child(1)`,
|
|
|
|
secondSaleText: `table > tbody > tr:nth-child(2)`
|
|
|
|
},
|
|
|
|
createStateView: {
|
2018-05-31 09:52:39 +00:00
|
|
|
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)`,
|
|
|
|
clearStateInputButton: `vn-autocomplete[field="$ctrl.ticket.stateFk"] > div > div > div > vn-icon > i`,
|
2018-04-05 12:14:34 +00:00
|
|
|
saveStateButton: `${components.vnSubmit}`
|
2017-09-15 10:24:37 +00:00
|
|
|
}
|
|
|
|
};
|
2018-04-04 14:41:06 +00:00
|
|
|
|