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`,
|
|
|
|
clientsButton: `vn-main-menu [vn-id="apps-menu"] ul > li:nth-child(1)`
|
2017-09-17 16:09:59 +00:00
|
|
|
},
|
|
|
|
moduleAccessView: {
|
2018-02-15 11:28:05 +00:00
|
|
|
clientsSectionButton: `${components.vnModuleContainer}[ui-sref="clients"]`,
|
2018-03-19 15:29:55 +00:00
|
|
|
itemsSectionButton: `${components.vnModuleContainer}[ui-sref="item.index"]`,
|
|
|
|
ticketsSectionButton: `${components.vnModuleContainer}[ui-sref="ticket.list"]`
|
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}`,
|
|
|
|
searchButton: `${components.vnSearchBar} > vn-icon-button > button`,
|
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)`,
|
2017-11-07 08:09:59 +00:00
|
|
|
createButton: `${components.vnSubmit}`
|
2017-10-30 14:37:35 +00:00
|
|
|
},
|
2018-02-15 11:28:05 +00:00
|
|
|
clientBasicData: {
|
2017-11-08 14:43:34 +00:00
|
|
|
basicDataButton: `${components.vnMenuItem}[ui-sref="clientCard.basicData"]`,
|
|
|
|
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-03-09 13:15:30 +00:00
|
|
|
salesPersonInput: `${components.vnAutocomplete}[field="$ctrl.client.salesPersonFk"] input`,
|
|
|
|
salesPersonOptionOne: `${components.vnAutocomplete}[field="$ctrl.client.salesPersonFk"] vn-drop-down ul > li:nth-child(1)`,
|
|
|
|
channelInput: `${components.vnAutocomplete}[field="$ctrl.client.contactChannelFk"] input`,
|
|
|
|
channelMetropolisOption: `${components.vnAutocomplete}[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: {
|
2017-11-08 14:43:34 +00:00
|
|
|
fiscalDataButton: `${components.vnMenuItem}[ui-sref="clientCard.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"]`,
|
2017-12-14 13:56:20 +00:00
|
|
|
equalizationTaxCheckboxLabel: `${components.vnCheck}[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-03-09 13:15:30 +00:00
|
|
|
provinceInput: `${components.vnAutocomplete}[field="$ctrl.client.provinceFk"] input`,
|
|
|
|
provinceFifthOption: `${components.vnAutocomplete}[field="$ctrl.client.provinceFk"] vn-drop-down ul > li:nth-child(5)`,
|
|
|
|
countryInput: `${components.vnAutocomplete}[field="$ctrl.client.countryFk"] input`,
|
|
|
|
countryThirdOption: `${components.vnAutocomplete}[field="$ctrl.client.countryFk"] vn-drop-down ul > li:nth-child(3)`,
|
2017-12-07 12:35:40 +00:00
|
|
|
activeCheckboxLabel: `${components.vnCheck}[label='Active'] > label`,
|
|
|
|
invoiceByAddressCheckboxInput: `${components.vnCheck}[label='Invoice by address'] > label > input`,
|
|
|
|
verifiedDataCheckboxInput: `${components.vnCheck}[label='Verified data'] > label > input`,
|
|
|
|
hasToInvoiceCheckboxLabel: `${components.vnCheck}[label='Has to invoice'] > label`,
|
|
|
|
invoiceByMailCheckboxLabel: `${components.vnCheck}[label='Invoice by mail'] > label`,
|
|
|
|
viesCheckboxInput: `${components.vnCheck}[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: {
|
2017-12-11 11:33:27 +00:00
|
|
|
payMethodButton: `${components.vnMenuItem}[ui-sref="clientCard.billingData"]`,
|
2018-03-09 13:15:30 +00:00
|
|
|
payMethodInput: `${components.vnAutocomplete}[field="$ctrl.client.payMethodFk"] input`,
|
|
|
|
payMethodIBANOption: `${components.vnAutocomplete}[field="$ctrl.client.payMethodFk"] vn-drop-down ul > li:nth-child(5)`,
|
|
|
|
payMethodOptionOne: `${components.vnAutocomplete}[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-02-20 09:00:19 +00:00
|
|
|
cancelNotificationButton: 'vn-client-billing-data > vn-confirm button[response=CANCEL]',
|
2018-01-09 12:51:41 +00:00
|
|
|
receivedCoreVNHCheckbox: `${components.vnCheck}[label='Received core VNH'] > label > input`,
|
|
|
|
receivedCoreVNLCheckbox: `${components.vnCheck}[label='Received core VNL'] > label > input`,
|
|
|
|
receivedB2BVNLCheckbox: `${components.vnCheck}[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: {
|
2017-12-13 10:25:50 +00:00
|
|
|
addressesButton: `${components.vnMenuItem}[ui-sref="clientCard.addresses.list"]`,
|
|
|
|
createAddress: `${components.vnFloatButton}`,
|
|
|
|
defaultCheckboxInput: `${components.vnCheck}[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-03-09 13:15:30 +00:00
|
|
|
provinceInput: `${components.vnAutocomplete}[field="$ctrl.address.provinceFk"] input`,
|
|
|
|
provinceSecondOption: `${components.vnAutocomplete}[field="$ctrl.address.provinceFk"] vn-drop-down ul > li:nth-child(2)`,
|
|
|
|
agencyInput: `${components.vnAutocomplete}[field="$ctrl.address.agencyModeFk"] input`,
|
|
|
|
agenctySecondOption: `${components.vnAutocomplete}[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-03-01 22:38:14 +00:00
|
|
|
defaultAddress: 'vn-client-addresses > vn-vertical > vn-card > div > vn-horizontal:nth-child(2) > vn-one > vn-horizontal > vn-one > div:nth-child(2)',
|
|
|
|
secondMakeDefaultStar: 'vn-client-addresses > vn-vertical > vn-card > div > vn-horizontal:nth-child(3) > vn-one > vn-horizontal > vn-none > i',
|
2017-12-13 10:25:50 +00:00
|
|
|
firstEditButton: `${components.vnIconButton}[icon='edit']`,
|
2017-12-14 13:56:20 +00:00
|
|
|
secondEditButton: `vn-horizontal:nth-child(3) > vn-one > vn-horizontal > a > ${components.vnIconButton}[icon='edit']`,
|
2017-12-14 13:57:11 +00:00
|
|
|
activeCheckbox: `${components.vnCheck}[label='Enabled'] > label > input`,
|
2017-12-14 13:56:20 +00:00
|
|
|
equalizationTaxCheckboxLabel: `${components.vnCheck}[label='Is equalizated'] > label > input`,
|
2018-03-09 13:15:30 +00:00
|
|
|
firstObservationTypeSelect: `${components.vnAutocomplete}[field="observation.observationTypeFk"]:nth-child(1) input`,
|
|
|
|
firstObservationTypeSelectOptionOne: `${components.vnAutocomplete}[field="observation.observationTypeFk"] vn-drop-down ul > li:nth-child(1)`,
|
2018-02-26 12:43:07 +00:00
|
|
|
firstObservationDescriptionInput: `vn-horizontal:nth-child(3) > vn-textfield[label="Description"] > div > input`,
|
2018-03-09 13:15:30 +00:00
|
|
|
secondObservationTypeSelect: `${components.vnAutocomplete}[field="observation.observationTypeFk"]:nth-child(2) input`,
|
|
|
|
secondObservationTypeSelectOptionTwo: `${components.vnAutocomplete}[field="observation.observationTypeFk"] vn-drop-down ul > li:nth-child(2)`,
|
2018-02-26 12:43:07 +00:00
|
|
|
secondObservationDescriptionInput: `vn-horizontal:nth-child(4) > vn-textfield[label="Description"] > div > input`,
|
2018-03-09 13:15:30 +00:00
|
|
|
thirdObservationTypeSelect: `${components.vnAutocomplete}[field="observation.observationTypeFk"]:nth-child(3) input`,
|
|
|
|
thirdObservationTypeSelectOptionThree: `${components.vnAutocomplete}[field="observation.observationTypeFk"] vn-drop-down ul > li:nth-child(3)`,
|
2018-02-26 12:43:07 +00:00
|
|
|
thirdObservationDescriptionInput: `vn-horizontal:nth-child(5) > vn-textfield[label="Description"] > div > input`,
|
2018-03-09 16:45:17 +00:00
|
|
|
addObservationButton: `${components.vnIcon}[icon="add_circle"]`,
|
2017-12-13 10:25:50 +00:00
|
|
|
saveButton: `${components.vnSubmit}`
|
2017-12-15 09:07:52 +00:00
|
|
|
},
|
2018-02-15 11:28:05 +00:00
|
|
|
clientWebAccess: {
|
2017-12-15 09:07:52 +00:00
|
|
|
webAccessButton: `${components.vnMenuItem}[ui-sref="clientCard.webAccess"]`,
|
|
|
|
enableWebAccessCheckbox: `${components.vnCheck}[label='Enable web access'] > label > input`,
|
|
|
|
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: {
|
2017-12-15 11:51:06 +00:00
|
|
|
notesButton: `${components.vnMenuItem}[ui-sref="clientCard.notes.list"]`,
|
|
|
|
addNoteFloatButton: `${components.vnFloatButton}`,
|
|
|
|
noteInput: `${components.vnTextarea}[label="Note"]`,
|
|
|
|
saveButton: `${components.vnSubmit}`,
|
2018-03-01 22:38:14 +00:00
|
|
|
firstNoteText: 'vn-client-notes .text'
|
2018-01-08 07:12:39 +00:00
|
|
|
},
|
2018-02-15 11:28:05 +00:00
|
|
|
clientCredit: {
|
2018-01-08 07:12:39 +00:00
|
|
|
creditButton: `${components.vnMenuItem}[ui-sref="clientCard.credit.list"]`,
|
|
|
|
addCreditFloatButton: `${components.vnFloatButton}`,
|
|
|
|
creditInput: `${components.vnTextfield}[name="credit"]`,
|
|
|
|
saveButton: `${components.vnSubmit}`,
|
2018-03-06 14:14:49 +00:00
|
|
|
firstCreditText: 'vn-client-credit-list .list-element'
|
2018-01-08 14:06:20 +00:00
|
|
|
},
|
2018-02-15 11:28:05 +00:00
|
|
|
clientGreuge: {
|
2018-01-08 14:06:20 +00:00
|
|
|
greugeButton: `${components.vnMenuItem}[ui-sref="clientCard.greuge.list"]`,
|
|
|
|
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-03-09 13:15:30 +00:00
|
|
|
typeInput: `${components.vnAutocomplete}[field="$ctrl.greuge.greugeTypeFk"] input`,
|
|
|
|
typeSecondOption: `${components.vnAutocomplete}[field="$ctrl.greuge.greugeTypeFk"] vn-drop-down ul > li`,
|
2018-01-12 08:47:51 +00:00
|
|
|
saveButton: `${components.vnSubmit}`,
|
2018-03-01 22:38:14 +00:00
|
|
|
firstGreugeText: 'vn-client-greuge-list .list-element'
|
2018-01-12 13:20:28 +00:00
|
|
|
},
|
2018-02-15 11:28:05 +00:00
|
|
|
clientMandate: {
|
2018-01-12 13:20:28 +00:00
|
|
|
mandateButton: `${components.vnMenuItem}[ui-sref="clientCard.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: {
|
|
|
|
invoicesButton: `${components.vnMenuItem}[ui-sref="clientCard.invoices"]`,
|
|
|
|
firstInvoiceText: 'vn-client-invoices .list-element'
|
|
|
|
},
|
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-03-01 20:18:43 +00:00
|
|
|
acceptClonationAlertButton: `vn-item-list [vn-id="clone"] [response="ACCEPT"]`,
|
2018-02-15 12:20:01 +00:00
|
|
|
searchItemInput: `${components.vnTextfield}`,
|
2018-02-22 15:44:14 +00:00
|
|
|
searchButton: `${components.vnSearchBar} > vn-icon-button > button`,
|
2018-03-01 20:18:43 +00:00
|
|
|
closeItemSummaryPreview: 'vn-item-list [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-03-09 13:15:30 +00:00
|
|
|
typeSelect: `${components.vnAutocomplete}[field="$ctrl.item.typeFk"] input`,
|
|
|
|
typeSelectOptionOne: `${components.vnAutocomplete}[field="$ctrl.item.typeFk"] vn-drop-down ul > li:nth-child(2)`,
|
|
|
|
intrastatSelect: `${components.vnAutocomplete}[field="$ctrl.item.intrastatFk"] input`,
|
|
|
|
intrastatSelectOptionOne: `${components.vnAutocomplete}[field="$ctrl.item.intrastatFk"] vn-drop-down ul > li:nth-child(2)`,
|
|
|
|
originSelect: `${components.vnAutocomplete}[field="$ctrl.item.originFk"] input`,
|
|
|
|
originSelectOptionOne: `${components.vnAutocomplete}[field="$ctrl.item.originFk"] vn-drop-down ul > li:nth-child(2)`,
|
|
|
|
expenceSelect: `${components.vnAutocomplete}[field="$ctrl.item.expenceFk"] input`,
|
|
|
|
expenceSelectOptionOne: `${components.vnAutocomplete}[field="$ctrl.item.expenceFk"] vn-drop-down ul > li:nth-child(2)`,
|
2018-02-26 15:06:49 +00:00
|
|
|
createButton: `${components.vnSubmit}`
|
|
|
|
|
|
|
|
},
|
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-02-22 10:26:32 +00:00
|
|
|
basicDataButton: `${components.vnMenuItem}[ui-sref="item.card.data"]`,
|
2018-03-09 13:15:30 +00:00
|
|
|
typeSelect: `${components.vnAutocomplete}[field="$ctrl.item.typeFk"] input`,
|
|
|
|
typeSelectOptionTwo: `${components.vnAutocomplete}[field="$ctrl.item.typeFk"] vn-drop-down ul > li:nth-child(2)`,
|
|
|
|
intrastatSelect: `${components.vnAutocomplete}[field="$ctrl.item.intrastatFk"] input`,
|
|
|
|
intrastatSelectOptionOne: `${components.vnAutocomplete}[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-03-09 13:15:30 +00:00
|
|
|
originSelect: `${components.vnAutocomplete}[field="$ctrl.item.originFk"] input`,
|
|
|
|
originSelectOptionTwo: `${components.vnAutocomplete}[field="$ctrl.item.originFk"] vn-drop-down ul > li:nth-child(2)`,
|
|
|
|
expenceSelect: `${components.vnAutocomplete}[field="$ctrl.item.expenceFk"] input`,
|
|
|
|
expenceSelectOptionTwo: `${components.vnAutocomplete}[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-02-27 18:00:46 +00:00
|
|
|
tagsButton: `${components.vnMenuItem}[ui-sref="item.card.tags"]`,
|
2018-03-16 14:09:04 +00:00
|
|
|
firstRemoveTagButton: `vn-item-tags vn-horizontal:nth-child(2) > ${components.vnIcon}[icon="remove_circle_outline"]`,
|
2018-03-09 13:15:30 +00:00
|
|
|
firstTagSelect: `vn-item-tags vn-horizontal:nth-child(2) > ${components.vnAutocomplete}[field="itemTag.tagFk"] input`,
|
2018-03-16 14:09:04 +00:00
|
|
|
firstTagDisabled: `vn-item-tags vn-horizontal:nth-child(2) > vn-textfield[label="Tag"] > div > input`,
|
2018-03-09 13:15:30 +00:00
|
|
|
firstTagSelectOptionOne: `vn-item-tags vn-horizontal:nth-child(2) > ${components.vnAutocomplete}[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-03-09 13:15:30 +00:00
|
|
|
secondTagSelect: `vn-item-tags vn-horizontal:nth-child(3) > ${components.vnAutocomplete}[field="itemTag.tagFk"] input`,
|
2018-03-16 14:09:04 +00:00
|
|
|
secondTagDisabled: `vn-item-tags vn-horizontal:nth-child(3) > vn-textfield[label="Tag"] > div > input`,
|
2018-03-09 13:15:30 +00:00
|
|
|
secondTagSelectOptionOne: `vn-item-tags vn-horizontal:nth-child(3) > ${components.vnAutocomplete}[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-03-09 13:15:30 +00:00
|
|
|
thirdTagSelect: `vn-item-tags vn-horizontal:nth-child(4) > ${components.vnAutocomplete}[field="itemTag.tagFk"] input`,
|
2018-03-16 14:09:04 +00:00
|
|
|
thirdTagDisabled: `vn-item-tags vn-horizontal:nth-child(4) > vn-textfield[label="Tag"] > div > input`,
|
2018-03-09 13:15:30 +00:00
|
|
|
thirdTagSelectOptionOne: `vn-item-tags vn-horizontal:nth-child(4) > ${components.vnAutocomplete}[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-03-09 13:15:30 +00:00
|
|
|
fourthTagSelect: `vn-item-tags vn-horizontal:nth-child(5) > ${components.vnAutocomplete}[field="itemTag.tagFk"] input`,
|
2018-03-16 14:09:04 +00:00
|
|
|
fourthTagDisabled: `vn-item-tags vn-horizontal:nth-child(5) > vn-textfield[label="Tag"] > div > input`,
|
2018-03-09 13:15:30 +00:00
|
|
|
fourthTagSelectOptionOne: `vn-item-tags vn-horizontal:nth-child(5) > ${components.vnAutocomplete}[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-03-09 13:15:30 +00:00
|
|
|
fifthTagSelect: `vn-item-tags vn-horizontal:nth-child(6) > ${components.vnAutocomplete}[field="itemTag.tagFk"] input`,
|
2018-03-16 14:09:04 +00:00
|
|
|
fifthTagDisabled: `vn-item-tags vn-horizontal:nth-child(6) > vn-textfield[label="Tag"] > div > input`,
|
2018-03-09 13:15:30 +00:00
|
|
|
fifthTagSelectOptionFive: `vn-item-tags vn-horizontal:nth-child(6) > ${components.vnAutocomplete}[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`,
|
|
|
|
addItemTagButton: `${components.vnIcon}[icon="add_circle"]`,
|
2018-02-27 18:00:46 +00:00
|
|
|
submitItemTagsButton: `${components.vnSubmit}`
|
|
|
|
},
|
2018-02-26 12:43:07 +00:00
|
|
|
itemTax: {
|
|
|
|
taxButton: `${components.vnMenuItem}[ui-sref="item.card.tax"]`,
|
2018-03-09 13:15:30 +00:00
|
|
|
firstClassSelect: `vn-horizontal:nth-child(2) > ${components.vnAutocomplete}[field="tax.taxClassFk"] input`,
|
|
|
|
firstClassSelectOptionTwo: `vn-horizontal:nth-child(2) > ${components.vnAutocomplete} vn-drop-down ul > li:nth-child(2)`,
|
|
|
|
secondClassSelect: `vn-horizontal:nth-child(3) > ${components.vnAutocomplete}[field="tax.taxClassFk"] input`,
|
|
|
|
secondClassSelectOptionOne: `vn-horizontal:nth-child(3) > ${components.vnAutocomplete} vn-drop-down ul > li:nth-child(1)`,
|
|
|
|
thirdClassSelect: `vn-horizontal:nth-child(4) > ${components.vnAutocomplete}[field="tax.taxClassFk"] input`,
|
|
|
|
thirdClassSelectOptionTwo: `vn-horizontal:nth-child(4) > ${components.vnAutocomplete} 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-02-19 10:55:45 +00:00
|
|
|
barcodeButton: `${components.vnMenuItem}[ui-sref="item.card.itemBarcode"]`,
|
|
|
|
addBarcodeButton: `${components.vnIcon}[icon="add_circle"]`,
|
2018-02-20 14:22:24 +00:00
|
|
|
thirdCodeInput: `vn-horizontal:nth-child(4) > ${components.vnTextfield}`,
|
2018-02-19 10:55:45 +00:00
|
|
|
submitBarcodesButton: `${components.vnSubmit}`,
|
2018-02-20 14:22:24 +00:00
|
|
|
firstCodeRemoveButton: `vn-horizontal:nth-child(2) > vn-one > ${components.vnIcon}[icon="remove_circle_outline"]`
|
|
|
|
},
|
|
|
|
itemNiches: {
|
|
|
|
nicheButton: `${components.vnMenuItem}[ui-sref="item.card.niche"]`,
|
2018-02-20 21:35:54 +00:00
|
|
|
addNicheButton: `${components.vnIcon}[icon="add_circle"]`,
|
2018-03-09 13:15:30 +00:00
|
|
|
firstWarehouseSelect: `${components.vnAutocomplete}[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-03-09 13:15:30 +00:00
|
|
|
firstWarehouseSelectSecondOption: `${components.vnAutocomplete}[field="itemNiche.warehouseFk"] vn-drop-down ul > li:nth-child(2)`,
|
2018-03-16 14:09:04 +00:00
|
|
|
firstCodeInput: `vn-horizontal:nth-child(2) > vn-textfield[label="code"] > div > input`,
|
2018-03-09 13:15:30 +00:00
|
|
|
secondWarehouseSelect: `vn-horizontal:nth-child(3) > ${components.vnAutocomplete}[field="itemNiche.warehouseFk"] input`,
|
2018-03-16 14:09:04 +00:00
|
|
|
secondWarehouseDisabled: `vn-horizontal:nth-child(3) > vn-textfield[label="Warehouse"] > div > input`,
|
|
|
|
secondCodeInput: `vn-horizontal:nth-child(3) > vn-textfield[label="code"] > div > input`,
|
|
|
|
secondNicheRemoveButton: `vn-horizontal:nth-child(3) > vn-one > ${components.vnIcon}[icon="remove_circle_outline"]`,
|
2018-03-09 13:15:30 +00:00
|
|
|
thirdWarehouseSelect: `vn-horizontal:nth-child(4) > ${components.vnAutocomplete}[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-03-09 13:15:30 +00:00
|
|
|
thirdWarehouseSelectFourthOption: `vn-horizontal:nth-child(4) > ${components.vnAutocomplete}[field="itemNiche.warehouseFk"] vn-drop-down ul > li:nth-child(4)`,
|
2018-03-16 14:09:04 +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: {
|
|
|
|
botanicalButton: `${components.vnMenuItem}[ui-sref="item.card.botanical"]`,
|
|
|
|
botanicalInput: `vn-horizontal:nth-child(2) > ${components.vnTextfield}`,
|
2018-03-09 13:15:30 +00:00
|
|
|
genusSelect: `${components.vnAutocomplete}[field="$ctrl.botanical.genusFk"] input`,
|
|
|
|
genusSelectOptionOne: `${components.vnAutocomplete}[field="$ctrl.botanical.genusFk"] vn-drop-down ul > li:nth-child(1)`,
|
|
|
|
genusSelectOptionTwo: `${components.vnAutocomplete}[field="$ctrl.botanical.genusFk"] vn-drop-down ul > li:nth-child(2)`,
|
|
|
|
speciesSelect: `${components.vnAutocomplete}[field="$ctrl.botanical.specieFk"] input`,
|
|
|
|
speciesSelectOptionOne: `${components.vnAutocomplete}[field="$ctrl.botanical.specieFk"] vn-drop-down ul > li:nth-child(1)`,
|
|
|
|
speciesSelectOptionTwo: `${components.vnAutocomplete}[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: {
|
|
|
|
basicData: `${components.vnItemSummary} > vn-horizontal:nth-child(1) > vn-one:nth-child(2) > vn-vertical > p:nth-child(2)`,
|
2018-03-08 12:38:55 +00:00
|
|
|
vat: `${components.vnItemSummary} > vn-horizontal:nth-child(1) > vn-one:nth-child(3) > vn-vertical > p`,
|
|
|
|
tags: `${components.vnItemSummary} > vn-horizontal:nth-child(2) > vn-one:nth-child(1) > p`,
|
|
|
|
niche: `${components.vnItemSummary} > vn-horizontal:nth-child(2) > vn-one:nth-child(2) > vn-vertical > p:nth-child(2)`,
|
|
|
|
botanical: `${components.vnItemSummary} > vn-horizontal:nth-child(2) > vn-one:nth-child(3) > vn-vertical > p`,
|
|
|
|
barcode: `${components.vnItemSummary} > vn-horizontal:nth-child(2) > vn-one:nth-child(4) > vn-vertical > p`
|
2018-03-19 15:29:55 +00:00
|
|
|
},
|
|
|
|
ticketsIndex: {
|
|
|
|
createTicketButton: `${components.vnFloatButton}`,
|
|
|
|
searchResult: `vn-ticket-item a`,
|
|
|
|
searchTicketInput: `${components.vnTextfield}`,
|
|
|
|
searchButton: `${components.vnSearchBar} > vn-icon-button > button`
|
|
|
|
},
|
|
|
|
ticketNotes: {
|
|
|
|
notesButton: `${components.vnMenuItem}[ui-sref="ticket.card.observations"]`,
|
|
|
|
firstNoteRemoveButton: `${components.vnIcon}[icon="remove_circle_outline"]`,
|
|
|
|
addNoteButton: `${components.vnIcon}[icon="add_circle"]`,
|
|
|
|
firstNoteSelect: `${components.vnAutocomplete}[field="ticketObservation.observationTypeFk"] input`,
|
|
|
|
firstNoteSelectSecondOption: `${components.vnAutocomplete}[field="ticketObservation.observationTypeFk"] vn-drop-down ul > li:nth-child(2)`,
|
|
|
|
firstNoteDisabled: `vn-textfield[label="Observation type"] > div > input`,
|
|
|
|
firstDescriptionInput: `vn-textfield[label="Description"] > div > input`,
|
|
|
|
submitNotesButton: `${components.vnSubmit}`
|
|
|
|
},
|
|
|
|
ticketPackages: {
|
|
|
|
packagesButton: `${components.vnMenuItem}[ui-sref="ticket.card.package.list"]`,
|
|
|
|
firstPackageSelect: `${components.vnAutocomplete}[label="Package"] input`
|
2017-09-15 10:24:37 +00:00
|
|
|
}
|
|
|
|
};
|