505 lines
36 KiB
JavaScript
505 lines
36 KiB
JavaScript
import components from './components_selectors.js';
|
|
|
|
export default {
|
|
globalItems: {
|
|
logOutButton: `#logout`,
|
|
applicationsMenuButton: `#apps`,
|
|
applicationsMenuVisible: `vn-main-menu [vn-id="apps-menu"] ul`,
|
|
clientsButton: `vn-main-menu [vn-id="apps-menu"] ul > li[ui-sref="client.index"]`,
|
|
itemsButton: `vn-main-menu [vn-id="apps-menu"] ul > li[ui-sref="item.index"]`,
|
|
ticketsButton: `vn-main-menu [vn-id="apps-menu"] ul > li[ui-sref="ticket.index"]`,
|
|
claimsButton: `vn-main-menu [vn-id="apps-menu"] ul > li[ui-sref="claim.index"]`,
|
|
returnToModuleIndexButton: `a[translate-attr="{title: 'Return to module index'}"]`,
|
|
acceptVnConfirm: `vn-confirm button[response=ACCEPT]`
|
|
},
|
|
moduleAccessView: {
|
|
clientsSectionButton: `vn-home a[ui-sref="client.index"]`,
|
|
itemsSectionButton: `vn-home a[ui-sref="item.index"]`,
|
|
ticketsSectionButton: `vn-home a[ui-sref="ticket.index"]`
|
|
},
|
|
clientsIndex: {
|
|
searchClientInput: `${components.vnTextfield}`,
|
|
searchButton: `vn-searchbar vn-icon[icon="search"]`,
|
|
searchResult: `vn-item-client a`,
|
|
createClientButton: `${components.vnFloatButton}`,
|
|
othersButton: `vn-left-menu li[name="Others"] > a`
|
|
},
|
|
createClientView: {
|
|
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"]`,
|
|
salesPersonAutocomplete: `vn-autocomplete[field="$ctrl.client.salesPersonFk"]`,
|
|
createButton: `${components.vnSubmit}`,
|
|
cancelButton: `vn-button[href="#!/client/index"]`
|
|
},
|
|
clientDescriptor: {
|
|
moreMenu: `vn-client-descriptor > vn-card > div vn-icon-menu > div > vn-icon`,
|
|
simpleTicketButton: 'vn-client-descriptor vn-popover > div > div.content > div > div.list > ul > li'
|
|
},
|
|
clientBasicData: {
|
|
basicDataButton: `vn-left-menu a[ui-sref="client.card.basicData"]`,
|
|
nameInput: `${components.vnTextfield}[name="name"]`,
|
|
contactInput: `${components.vnTextfield}[name="contact"]`,
|
|
phoneInput: `${components.vnTextfield}[name="phone"]`,
|
|
mobileInput: `${components.vnTextfield}[name="mobile"]`,
|
|
faxInput: `${components.vnTextfield}[name="fax"]`,
|
|
emailInput: `${components.vnTextfield}[name="email"]`,
|
|
salesPersonAutocomplete: `vn-autocomplete[field="$ctrl.client.salesPersonFk"]`,
|
|
channelAutocomplete: `vn-autocomplete[field="$ctrl.client.contactChannelFk"]`,
|
|
saveButton: `${components.vnSubmit}`
|
|
},
|
|
clientFiscalData: {
|
|
fiscalDataButton: `vn-left-menu a[ui-sref="client.card.fiscalData"]`,
|
|
socialNameInput: `${components.vnTextfield}[name="socialName"]`,
|
|
fiscalIdInput: `${components.vnTextfield}[name="fi"]`,
|
|
equalizationTaxCheckboxLabel: `vn-check[label='Is equalizated'] > label > input`,
|
|
acceptPropagationButton: `vn-client-fiscal-data > vn-confirm button[response=ACCEPT]`,
|
|
addressInput: `${components.vnTextfield}[name="street"]`,
|
|
cityInput: `${components.vnTextfield}[name="city"]`,
|
|
postcodeInput: `${components.vnTextfield}[name="postcode"]`,
|
|
provinceAutocomplete: `vn-autocomplete[field="$ctrl.client.provinceFk"]`,
|
|
countryAutocomplete: `vn-autocomplete[field="$ctrl.client.countryFk"]`,
|
|
activeCheckboxLabel: `vn-check[label="Active"] > label`,
|
|
activeCheckboxInput: `vn-check[label="Active"] input`,
|
|
frozenCheckboxLabel: `vn-check[label="Frozen"] > label`,
|
|
frozenCheckboxInput: `vn-check[label="Frozen"] input`,
|
|
invoiceByAddressCheckboxInput: `vn-check[label='Invoice by address'] > label > input`,
|
|
verifiedDataCheckbox: `vn-check[label="Verified data"] input`,
|
|
verifiedDataCheckboxInput: `vn-check[label="Verified data"] > label > input`,
|
|
hasToInvoiceCheckboxLabel: `vn-check[label='Has to invoice'] > label`,
|
|
hasToInvoiceCheckboxInput: `vn-check[label='Has to invoice'] input`,
|
|
invoiceByMailCheckboxLabel: `vn-check[label='Invoice by mail'] > label`,
|
|
invoiceByMailCheckboxInput: `vn-check[label='Invoice by mail'] input`,
|
|
viesCheckboxInput: `vn-check[label='Vies'] > label > input`,
|
|
saveButton: `${components.vnSubmit}`
|
|
},
|
|
clientPayMethod: {
|
|
payMethodButton: `vn-left-menu a[ui-sref="client.card.billingData"]`,
|
|
payMethodAutocomplete: `vn-autocomplete[field="$ctrl.client.payMethodFk"]`,
|
|
IBANInput: `${components.vnTextfield}[name="iban"]`,
|
|
dueDayInput: `${components.vnTextfield}[name="dueDay"]`,
|
|
receivedCoreLCRCheckbox: `vn-check[label='Received LCR'] > label > input`,
|
|
receivedCoreVNLCheckbox: `vn-check[label='Received core VNL'] > label > input`,
|
|
receivedB2BVNLCheckbox: `vn-check[label='Received B2B VNL'] > label > input`,
|
|
swiftBicAutocomplete: 'vn-client-billing-data vn-autocomplete[field="$ctrl.client.bankEntityFk"]',
|
|
clearswiftBicButton: `vn-client-billing-data vn-autocomplete[field="$ctrl.client.bankEntityFk"] > div > div > div > vn-icon > i`,
|
|
newBankEntityButton: 'vn-client-billing-data vn-icon-button[vn-tooltip="New bank entity"] > button',
|
|
newBankEntityName: 'vn-client-billing-data > vn-dialog vn-textfield[label="Name"] input',
|
|
newBankEntityBIC: 'vn-client-billing-data > vn-dialog vn-textfield[label="Swift / BIC"] input',
|
|
acceptBankEntityButton: 'vn-client-billing-data > vn-dialog button[response="ACCEPT"]',
|
|
saveButton: `${components.vnSubmit}`
|
|
},
|
|
clientAddresses: {
|
|
addressesButton: `vn-left-menu a[ui-sref="client.card.address.index"]`,
|
|
createAddress: `vn-client-address-index ${components.vnFloatButton}`,
|
|
defaultCheckboxInput: `vn-check[label='Default'] > label > input`,
|
|
consigneeInput: `${components.vnTextfield}[name="nickname"]`,
|
|
streetAddressInput: `${components.vnTextfield}[name="street"]`,
|
|
postcodeInput: `${components.vnTextfield}[name="postalCode"]`,
|
|
cityInput: `${components.vnTextfield}[name="city"]`,
|
|
provinceAutocomplete: `vn-autocomplete[field="$ctrl.address.provinceFk"]`,
|
|
agencyAutocomplete: `vn-autocomplete[field="$ctrl.address.agencyModeFk"]`,
|
|
phoneInput: `${components.vnTextfield}[name="phone"]`,
|
|
mobileInput: `${components.vnTextfield}[name="mobile"]`,
|
|
defaultAddress: 'vn-client-address-index vn-horizontal:nth-child(2) div[name="street"]',
|
|
secondMakeDefaultStar: 'vn-client-address-index > vn-vertical > vn-card > div > vn-horizontal:nth-child(3) vn-icon-button[icon="star_border"]',
|
|
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`,
|
|
firstObservationTypeAutocomplete: `vn-client-address-edit [name=observations] :nth-child(1) [field="observation.observationTypeFk"]`,
|
|
firstObservationDescriptionInput: `vn-client-address-edit [name=observations] :nth-child(1) [model="observation.description"] input`,
|
|
secondObservationTypeAutocomplete: `vn-client-address-edit [name=observations] :nth-child(2) [field="observation.observationTypeFk"]`,
|
|
secondObservationDescriptionInput: `vn-client-address-edit [name=observations] :nth-child(2) [model="observation.description"] input`,
|
|
addObservationButton: `vn-client-address-edit vn-icon-button[icon="add_circle"]`,
|
|
saveButton: `${components.vnSubmit}`,
|
|
cancelButton: `button[ui-sref="client.card.address.index"]`
|
|
},
|
|
clientWebAccess: {
|
|
webAccessButton: `vn-left-menu a[ui-sref="client.card.webAccess"]`,
|
|
enableWebAccessCheckbox: `vn-check[label='Enable web access'] > label > input`,
|
|
userNameInput: `${components.vnTextfield}[name="name"]`,
|
|
saveButton: `${components.vnSubmit}`
|
|
},
|
|
clientNotes: {
|
|
notesButton: `vn-left-menu a[ui-sref="client.card.note.index"]`,
|
|
addNoteFloatButton: `${components.vnFloatButton}`,
|
|
noteInput: `vn-textarea[label="Note"]`,
|
|
saveButton: `${components.vnSubmit}`,
|
|
firstNoteText: 'vn-client-note .text'
|
|
},
|
|
clientCredit: {
|
|
creditButton: `vn-left-menu a[ui-sref="client.card.credit.index"]`,
|
|
addCreditFloatButton: `${components.vnFloatButton}`,
|
|
creditInput: `${components.vnTextfield}[name="credit"]`,
|
|
saveButton: `${components.vnSubmit}`,
|
|
firstCreditText: 'vn-client-credit-index vn-card > div vn-table vn-tbody > vn-tr'
|
|
},
|
|
clientGreuge: {
|
|
greugeButton: `vn-left-menu a[ui-sref="client.card.greuge.index"]`,
|
|
addGreugeFloatButton: `${components.vnFloatButton}`,
|
|
amountInput: `${components.vnTextfield}[name="amount"]`,
|
|
descriptionInput: `${components.vnTextfield}[name="description"]`,
|
|
typeAutocomplete: `vn-autocomplete[field="$ctrl.greuge.greugeTypeFk"]`,
|
|
saveButton: `${components.vnSubmit}`,
|
|
firstGreugeText: 'vn-client-greuge-index vn-card > div vn-table vn-tbody > vn-tr'
|
|
},
|
|
clientMandate: {
|
|
mandateButton: `vn-left-menu a[ui-sref="client.card.mandate"]`,
|
|
firstMandateText: 'vn-client-mandate vn-card > div vn-table vn-tbody > vn-tr'
|
|
},
|
|
clientInvoices: {
|
|
invoicesButton: `vn-left-menu a[ui-sref="client.card.invoice"]`,
|
|
firstInvoiceText: 'vn-client-invoice vn-card > div vn-table vn-tbody > vn-tr'
|
|
},
|
|
clientLog: {
|
|
logButton: `vn-left-menu a[ui-sref="client.card.log"]`,
|
|
lastModificationPreviousValue: 'vn-client-log vn-table vn-td.before',
|
|
lastModificationCurrentValue: 'vn-client-log vn-table vn-td.after'
|
|
|
|
},
|
|
clientRisk: {
|
|
riskButton: `vn-left-menu a[ui-sref="client.card.risk.index"]`,
|
|
newPaymentButton: `${components.vnFloatButton}`,
|
|
newPaymentBankInut: `vn-client-risk-create > form > vn-card > div > vn-horizontal:nth-child(3) > vn-textfield:nth-child(1) > div > div > div.infix > input`,
|
|
newPaymentAmountInput: `vn-client-risk-create > form > vn-card > div > vn-horizontal:nth-child(3) > vn-textfield:nth-child(2) > div > div > div.infix > input`,
|
|
saveButton: `${components.vnSubmit}`,
|
|
firstRiskLineBalance: 'vn-client-risk-index > vn-vertical > vn-card > div > vn-vertical > vn-table > div > vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(8)'
|
|
|
|
},
|
|
itemsIndex: {
|
|
goBackToModuleIndexButton: `vn-ticket-descriptor a[href="#!/ticket/index"]`,
|
|
createItemButton: `${components.vnFloatButton}`,
|
|
searchResult: `vn-item-product a`,
|
|
searchResultPreviewButton: `vn-item-product .buttons > [icon="desktop_windows"]`,
|
|
searchResultCloneButton: `vn-item-product .buttons > [icon="icon-clone"]`,
|
|
acceptClonationAlertButton: `vn-item-index [vn-id="clone"] [response="ACCEPT"]`,
|
|
searchItemInput: `vn-searchbar vn-textfield input`,
|
|
searchButton: `vn-searchbar vn-icon[icon="search"]`,
|
|
closeItemSummaryPreview: 'vn-item-index [vn-id="preview"] button.close'
|
|
},
|
|
itemCreateView: {
|
|
temporalName: `${components.vnTextfield}[name="provisionalName"]`,
|
|
typeAutocomplete: `vn-autocomplete[field="$ctrl.item.typeFk"]`,
|
|
intrastatAutocomplete: `vn-autocomplete[field="$ctrl.item.intrastatFk"]`,
|
|
originAutocomplete: `vn-autocomplete[field="$ctrl.item.originFk"]`,
|
|
createButton: `${components.vnSubmit}`,
|
|
cancelButton: `button[ui-sref="item.index"]`
|
|
},
|
|
itemDescriptor: {
|
|
moreMenu: `vn-item-descriptor > vn-card > div vn-icon-menu > div > vn-icon`,
|
|
moreMenuRegularizeButton: `vn-item-descriptor vn-icon-menu > div > vn-drop-down > vn-popover ul > li:nth-child(1)`,
|
|
regularizeQuantityInput: `vn-item-descriptor > vn-dialog > div > form > div.body > tpl-body > div > vn-textfield > div > div > div.infix > input`,
|
|
regularizeWarehouseAutocomplete: `#warehouse`,
|
|
regularizeSaveButton: `vn-item-descriptor > vn-dialog > div > form > div.buttons > tpl-buttons > button`
|
|
},
|
|
itemBasicData: {
|
|
goToItemIndexButton: 'vn-item-descriptor [ui-sref="item.index"]',
|
|
basicDataButton: `vn-left-menu a[ui-sref="item.card.data"]`,
|
|
typeAutocomplete: `vn-autocomplete[field="$ctrl.item.typeFk"]`,
|
|
intrastatAutocomplete: `vn-autocomplete[field="$ctrl.item.intrastatFk"]`,
|
|
nameInput: `vn-textfield[label="Name"] input`,
|
|
relevancyInput: `vn-textfield[label="Relevancy"] input`,
|
|
originAutocomplete: `vn-autocomplete[field="$ctrl.item.originFk"]`,
|
|
expenceAutocomplete: `vn-autocomplete[field="$ctrl.item.expenceFk"]`,
|
|
longNameInput: `vn-textfield[field="$ctrl.item.longName"] input`,
|
|
isActiveCheckbox: `vn-check[label='Active'] > label > input`,
|
|
submitBasicDataButton: `${components.vnSubmit}`
|
|
},
|
|
itemTags: {
|
|
goToItemIndexButton: 'vn-item-descriptor [ui-sref="item.index"]',
|
|
tagsButton: `vn-left-menu a[ui-sref="item.card.tags"]`,
|
|
fourthTagAutocomplete: `vn-item-tags vn-horizontal:nth-child(5) > vn-autocomplete[field="itemTag.tagFk"]`,
|
|
fourthValueInput: `vn-item-tags vn-horizontal:nth-child(5) > vn-textfield[label="Value"] input`,
|
|
fourthRelevancyInput: `vn-horizontal:nth-child(5) > vn-textfield[label="Relevancy"] input`,
|
|
fourthRemoveTagButton: `vn-item-tags vn-horizontal:nth-child(5) vn-icon-button[icon="delete"]`,
|
|
fifthTagAutocomplete: `vn-item-tags vn-horizontal:nth-child(6) > vn-autocomplete[field="itemTag.tagFk"]`,
|
|
fifthValueInput: `vn-item-tags vn-horizontal:nth-child(6) > vn-textfield[label="Value"] input`,
|
|
fifthRelevancyInput: `vn-horizontal:nth-child(6) > vn-textfield[label="Relevancy"] input`,
|
|
sixthTagAutocomplete: `vn-item-tags vn-horizontal:nth-child(7) > vn-autocomplete[field="itemTag.tagFk"]`,
|
|
sixthValueInput: `vn-item-tags vn-horizontal:nth-child(7) > vn-textfield[label="Value"] input`,
|
|
sixthRelevancyInput: `vn-horizontal:nth-child(7) > vn-textfield[label="Relevancy"] input`,
|
|
seventhTagAutocomplete: `vn-item-tags vn-horizontal:nth-child(8) > vn-autocomplete[field="itemTag.tagFk"]`,
|
|
seventhValueInput: `vn-item-tags vn-horizontal:nth-child(8) > vn-textfield[label="Value"] input`,
|
|
seventhRelevancyInput: `vn-horizontal:nth-child(8) > vn-textfield[label="Relevancy"] input`,
|
|
addItemTagButton: `vn-icon-button[icon="add_circle"]`,
|
|
submitItemTagsButton: `${components.vnSubmit}`
|
|
},
|
|
itemTax: {
|
|
taxButton: `vn-left-menu a[ui-sref="item.card.tax"]`,
|
|
firstClassAutocomplete: `vn-horizontal:nth-child(2) > vn-autocomplete[field="tax.taxClassFk"]`,
|
|
secondClassAutocomplete: `vn-horizontal:nth-child(3) > vn-autocomplete[field="tax.taxClassFk"]`,
|
|
thirdClassAutocomplete: `vn-horizontal:nth-child(4) > vn-autocomplete[field="tax.taxClassFk"]`,
|
|
submitTaxButton: `${components.vnSubmit}`
|
|
},
|
|
itemBarcodes: {
|
|
barcodeButton: `vn-left-menu a[ui-sref="item.card.itemBarcode"]`,
|
|
addBarcodeButton: `vn-icon[icon="add_circle"]`,
|
|
thirdCodeInput: `vn-item-barcode vn-horizontal:nth-child(4) > ${components.vnTextfield}`,
|
|
submitBarcodesButton: `${components.vnSubmit}`,
|
|
firstCodeRemoveButton: `vn-item-barcode vn-horizontal vn-none vn-icon[icon="delete"]`
|
|
},
|
|
itemNiches: {
|
|
nicheButton: `vn-left-menu a[ui-sref="item.card.niche"]`,
|
|
addNicheButton: `vn-icon[icon="add_circle"]`,
|
|
firstWarehouseAutocomplete: `vn-autocomplete[field="niche.warehouseFk"]`,
|
|
firstCodeInput: `vn-horizontal:nth-child(2) > vn-textfield[label="Code"] input`,
|
|
secondWarehouseAutocomplete: `vn-horizontal:nth-child(3) > vn-autocomplete[field="niche.warehouseFk"]`,
|
|
secondCodeInput: `vn-horizontal:nth-child(3) > vn-textfield[label="Code"] input`,
|
|
secondNicheRemoveButton: `vn-horizontal:nth-child(3) > vn-none > vn-icon[icon="delete"]`,
|
|
thirdWarehouseAutocomplete: `vn-horizontal:nth-child(4) > vn-autocomplete[field="niche.warehouseFk"]`,
|
|
thirdCodeInput: `vn-horizontal:nth-child(4) > vn-textfield[label="Code"] input`,
|
|
submitNichesButton: `${components.vnSubmit}`
|
|
},
|
|
itemBotanical: {
|
|
botanicalButton: `vn-left-menu a[ui-sref="item.card.botanical"]`,
|
|
botanicalInput: `vn-horizontal:nth-child(2) > ${components.vnTextfield}`,
|
|
genusAutocomplete: `vn-autocomplete[field="$ctrl.botanical.genusFk"]`,
|
|
speciesAutocomplete: `vn-autocomplete[field="$ctrl.botanical.specieFk"]`,
|
|
submitBotanicalButton: `${components.vnSubmit}`
|
|
},
|
|
itemSummary: {
|
|
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"]`
|
|
},
|
|
itemDiary: {
|
|
thirdTicketId: 'vn-item-diary > vn-vertical > vn-card > div > vn-vertical > vn-table > div > vn-tbody > vn-tr:nth-child(3) > vn-td:nth-child(2) > span',
|
|
firstBalance: 'vn-item-diary > vn-vertical > vn-card > div > vn-vertical > vn-table > div > vn-tbody > vn-tr:nth-child(1) > vn-td.balance',
|
|
fifthBalance: 'vn-item-diary > vn-vertical > vn-card > div > vn-vertical > vn-table > div > vn-tbody > vn-tr.ng-scope.isToday.isIn > vn-td.balance > span',
|
|
warehouseAutocomplete: 'vn-item-diary vn-autocomplete[field="$ctrl.warehouseFk"]',
|
|
},
|
|
ticketSummary: {
|
|
sale: 'vn-ticket-summary > vn-card > div > vn-vertical > vn-horizontal:nth-child(3) > vn-one > table > tbody > tr',
|
|
firstSaleItemId: 'vn-ticket-summary > vn-card > div > vn-vertical > vn-horizontal:nth-child(3) > vn-one > table > tbody > tr > td:nth-child(2) > span',
|
|
popoverDiaryButton: 'vn-ticket-summary > vn-item-descriptor-popover vn-item-descriptor vn-icon[icon="icon-transaction"]',
|
|
firstSaleQuantity: 'vn-ticket-summary > vn-card > div > vn-vertical > vn-horizontal:nth-child(3) > vn-one > table > tbody > tr > td:nth-child(4)',
|
|
firstSaleDiscount: 'vn-ticket-summary > vn-card > div > vn-vertical > vn-horizontal:nth-child(3) > vn-one > table > tbody > tr > td:nth-child(6)'
|
|
},
|
|
ticketsIndex: {
|
|
newTicketButton: 'body > vn-app > vn-vertical > vn-vertical > ui-view > vn-ticket-index > a',
|
|
searchResult: `vn-ticket-index vn-card > div > vn-table > div > vn-tbody > a.vn-tr`,
|
|
searchResultDate: `vn-ticket-index vn-table vn-tbody > a:nth-child(1) > vn-td:nth-child(4)`,
|
|
searchResultAddress: `vn-ticket-index vn-table vn-tbody > a:nth-child(1) > vn-td:nth-child(6)`,
|
|
searchTicketInput: `vn-ticket-index ${components.vnTextfield}`,
|
|
searchButton: `vn-ticket-index vn-searchbar vn-icon[icon="search"]`,
|
|
moreMenu: `vn-ticket-index vn-icon-menu[vn-id="more-button"] > div > vn-icon`,
|
|
moreMenuTurns: `vn-ticket-index vn-icon-menu vn-drop-down > vn-popover li`,
|
|
sixthWeeklyTicketTurn: `vn-ticket-weekly > form > div > vn-card > div > vn-table > div > vn-tbody > vn-tr:nth-child(6) > vn-td:nth-child(3) > vn-autocomplete > div > div > input`,
|
|
weeklyTicket: `vn-ticket-weekly vn-table > div > vn-tbody > vn-tr`,
|
|
sixthWeeklyTicketDeleteIcon: `vn-ticket-weekly > form vn-tbody > vn-tr:nth-child(6) > vn-td:nth-child(6) > vn-icon-button[icon="delete"]`
|
|
},
|
|
createTicketView: {
|
|
clientAutocomplete: 'vn-ticket-create vn-autocomplete[field="$ctrl.clientFk"]',
|
|
addressAutocomplete: 'vn-ticket-create vn-autocomplete[field="$ctrl.addressFk"]',
|
|
deliveryDateInput: 'vn-ticket-create > div > div > vn-card > div > vn-ticket-create-card > vn-date-picker > div > input',
|
|
warehouseAutocomplete: 'vn-ticket-create vn-autocomplete[field="$ctrl.warehouseFk"]',
|
|
agencyAutocomplete: 'vn-ticket-create vn-autocomplete[field="$ctrl.ticket.agencyModeFk"]',
|
|
createButton: `${components.vnSubmit}`
|
|
},
|
|
ticketDescriptor: {
|
|
moreMenu: `vn-ticket-descriptor > vn-card > div vn-icon-menu > div > vn-icon`,
|
|
moreMenuAddToTurn: `vn-ticket-descriptor vn-icon-menu > div > vn-drop-down > vn-popover ul > li:nth-child(1)`,
|
|
moreMenuDeleteTicket: `vn-ticket-descriptor vn-icon-menu > div > vn-drop-down > vn-popover ul > li:nth-child(2)`,
|
|
acceptDeleteTicketButton: `vn-ticket-descriptor button[response="ACCEPT"]`,
|
|
thursdayButton: `vn-ticket-descriptor > vn-dialog > div > form > div.body > tpl-body > div > vn-tool-bar > vn-button:nth-child(4)`,
|
|
saturdayButton: `vn-ticket-descriptor > vn-dialog > div > form > div.body > tpl-body > div > vn-tool-bar > vn-button:nth-child(6)`
|
|
},
|
|
ticketNotes: {
|
|
notesButton: `vn-left-menu a[ui-sref="ticket.card.observation"]`,
|
|
firstNoteRemoveButton: `vn-icon[icon="delete"]`,
|
|
addNoteButton: `vn-icon[icon="add_circle"]`,
|
|
firstNoteTypeAutocomplete: `vn-autocomplete[field="observation.observationTypeFk"]`,
|
|
firstDescriptionInput: `vn-textfield[label="Description"] input`,
|
|
submitNotesButton: `${components.vnSubmit}`
|
|
},
|
|
ticketExpedition: {
|
|
expeditionButton: `vn-left-menu a[ui-sref="ticket.card.expedition"]`,
|
|
secondExpeditionRemoveButton: `vn-ticket-expedition vn-table div > vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(1) > vn-icon-button[icon="delete"]`,
|
|
acceptDeleteRowButton: `vn-ticket-expedition > vn-confirm[vn-id="delete-expedition"] button[response=ACCEPT]`,
|
|
expeditionRow: `vn-ticket-expedition vn-table vn-tbody > vn-tr`
|
|
},
|
|
ticketPackages: {
|
|
packagesButton: `vn-left-menu a[ui-sref="ticket.card.package.index"]`,
|
|
firstPackageAutocomplete: `vn-autocomplete[label="Package"]`,
|
|
firstQuantityInput: `vn-textfield[label="Quantity"] input`,
|
|
firstRemovePackageButton: `vn-icon[vn-tooltip="Remove package"]`,
|
|
addPackageButton: `vn-icon-button[vn-tooltip="Add package"]`,
|
|
clearPackageAutocompleteButton: `vn-autocomplete[label="Package"] > div > div > div > vn-icon > i`,
|
|
savePackagesButton: `${components.vnSubmit}`
|
|
},
|
|
ticketSales: {
|
|
saleLine: `vn-table div > vn-tbody > vn-tr`,
|
|
saleDescriptorPopover: 'vn-ticket-sale vn-item-descriptor-popover > vn-popover',
|
|
saleDescriptorPopoverSummaryButton: 'vn-item-descriptor-popover a[href="#!/item/1/summary"]',
|
|
saleButton: `vn-left-menu a[ui-sref="ticket.card.sale"]`,
|
|
descriptorItemDiaryButton: `vn-item-descriptor > vn-card > div > vn-horizontal.quicklinks.ng-scope > vn-horizontal > a > vn-icon > i`,
|
|
newItemButton: 'vn-float-button[icon="add"]',
|
|
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`,
|
|
firstSaleQuantityClearInput: `vn-textfield[model="sale.quantity"] div.suffix > i`,
|
|
firstSaleID: 'vn-ticket-sale:nth-child(1) vn-td:nth-child(4) > span',
|
|
firstSalePrice: 'vn-ticket-sale:nth-child(1) vn-td:nth-child(7)',
|
|
firstSalePriceInput: 'vn-ticket-sale:nth-child(1) > vn-vertical > vn-popover.edit.dialog-summary.ng-isolate-scope.vn-popover.shown > div > div.content > div > vn-textfield',
|
|
firstSaleDiscount: 'vn-ticket-sale:nth-child(1) vn-td:nth-child(8)',
|
|
firstSaleDiscountInput: 'vn-ticket-sale:nth-child(1) vn-ticket-sale-edit-discount > div > vn-textfield > div > div > div.infix > input.ng-not-empty',
|
|
firstSaleImport: 'vn-ticket-sale:nth-child(1) vn-td:nth-child(9)',
|
|
firstSaleReservedIcon: 'vn-ticket-sale vn-tr:nth-child(1) > vn-td:nth-child(2) > vn-icon:nth-child(3)',
|
|
firstSaleColour: `vn-ticket-sale vn-tr:nth-child(1) vn-td:nth-child(5) section:nth-child(1)`,
|
|
firstSaleLength: `vn-ticket-sale vn-tr:nth-child(1) vn-td:nth-child(5) section:nth-child(3)`,
|
|
firstSaleCheckbox: `vn-ticket-sale vn-tr:nth-child(1) vn-check[field="sale.checked"] label`,
|
|
secondSaleClaimId: 'vn-ticket-sale > vn-vertical > vn-card > div > vn-vertical > vn-table > div > vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(2) > a > vn-icon',
|
|
secondSaleColour: `vn-ticket-sale vn-tr:nth-child(2) vn-td:nth-child(5) section:nth-child(5)`,
|
|
secondSalePrice: `vn-ticket-sale vn-tr:nth-child(2) vn-td:nth-child(7)`,
|
|
secondSaleDiscount: `vn-ticket-sale vn-tr:nth-child(2) vn-td:nth-child(8)`,
|
|
secondSaleImport: `vn-ticket-sale vn-tr:nth-child(2) vn-td:nth-child(9)`,
|
|
secondSaleText: `vn-table div > vn-tbody > vn-tr:nth-child(2)`,
|
|
totalImport: 'vn-ticket-sale > vn-vertical > vn-card > div > vn-vertical > div > p:nth-child(3) > strong',
|
|
selectAllSalesCheckbox: `vn-ticket-sale vn-thead vn-check label`,
|
|
secondSaleCheckbox: `vn-ticket-sale vn-tr:nth-child(2) vn-check[field="sale.checked"] label`,
|
|
thirdSaleCheckbox: `vn-ticket-sale vn-tr:nth-child(3) vn-check[field="sale.checked"] label`,
|
|
deleteSaleButton: 'vn-ticket-sale vn-tool-bar > vn-button[icon="delete"]',
|
|
transferSaleButton: 'vn-ticket-sale vn-tool-bar > vn-button[icon="call_split"]',
|
|
moveToTicketInput: 'vn-ticket-sale vn-popover.transfer vn-textfield[model="$ctrl.moveToTicketFk"] input',
|
|
moveToTicketInputClearButton: 'vn-popover.shown i[title="Clear"]',
|
|
moveToTicketButton: 'vn-ticket-sale vn-popover.transfer vn-icon[icon="arrow_forward_ios"]',
|
|
moveToNewTicketButton: 'vn-ticket-sale vn-popover.transfer vn-button[label="New ticket"]',
|
|
acceptDeleteLineButton: `vn-ticket-sale > vn-confirm[vn-id="delete-lines"] button[response=ACCEPT]`,
|
|
acceptDeleteTicketButton: `vn-ticket-sale > vn-confirm[vn-id="deleteConfirmation"] button[response=ACCEPT]`,
|
|
stateMenuButton: 'vn-ticket-sale vn-tool-bar > vn-button-menu[label="State"] button',
|
|
stateMenuOptions: 'vn-ticket-sale vn-drop-down > vn-popover ul > li:nth-child(1)',
|
|
moreMenuButton: 'vn-ticket-sale vn-tool-bar > vn-button-menu[label="More"] button',
|
|
moreMenuReseveOption: 'vn-ticket-sale vn-drop-down > vn-popover ul > li:nth-child(2)',
|
|
moreMenuUnmarkResevedOption: 'vn-ticket-sale vn-drop-down > vn-popover ul > li:nth-child(3)',
|
|
moreMenuUpdateDiscount: 'vn-ticket-sale vn-drop-down > vn-popover ul > li:nth-child(4)',
|
|
moreMenuUpdateDiscountInput: 'vn-ticket-sale vn-dialog.shown vn-ticket-sale-edit-discount input',
|
|
moreMenuCreateClaim: 'vn-ticket-sale vn-drop-down > vn-popover ul > li:nth-child(1)'
|
|
},
|
|
ticketTracking: {
|
|
trackingButton: `vn-left-menu a[ui-sref="ticket.card.tracking.index"]`,
|
|
createStateButton: `${components.vnFloatButton}`,
|
|
stateAutocomplete: 'vn-ticket-tracking-edit vn-autocomplete[field="$ctrl.ticket.stateFk"]',
|
|
saveButton: `${components.vnSubmit}`
|
|
},
|
|
ticketBasicData: {
|
|
basicDataButton: `vn-left-menu a[ui-sref="ticket.card.data.stepOne"]`,
|
|
clientAutocomplete: `vn-autocomplete[field="$ctrl.clientFk"]`,
|
|
addressAutocomplete: `vn-autocomplete[field="$ctrl.ticket.addressFk"]`,
|
|
agencyAutocomplete: `vn-autocomplete[field="$ctrl.ticket.agencyModeFk"]`,
|
|
nextStepButton: `vn-step-control > section > section.buttons > section:nth-child(2) > vn-button`,
|
|
finalizeButton: `vn-step-control > section > section.buttons > section:nth-child(2) > vn-submit`,
|
|
stepTwoTotalPriceDif: `vn-ticket-data-step-two > form > vn-card > div > vn-horizontal > table > tfoot > tr > td:nth-child(4)`,
|
|
chargesReasonAutocomplete: `vn-autocomplete[field="$ctrl.ticket.option"]`,
|
|
},
|
|
ticketComponents: {
|
|
componentsButton: `vn-left-menu a[ui-sref="ticket.card.components"]`,
|
|
base: 'vn-ticket-components tfoot > tr:nth-child(1) > td',
|
|
margin: 'vn-ticket-components tfoot > tr:nth-child(2) > td',
|
|
total: 'vn-ticket-components tfoot > tr:nth-child(3) > td'
|
|
},
|
|
ticketRequests: {
|
|
requestButton: `vn-left-menu a[ui-sref="ticket.card.request.index"]`,
|
|
addRequestButton: `vn-ticket-request-index > a > vn-float-button > button`,
|
|
request: 'vn-ticket-request-index > form > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr',
|
|
descriptionInput: `vn-ticket-request-create > form > div > vn-card > div > vn-horizontal:nth-child(2) > vn-textfield > div > div > div.infix > input`,
|
|
atenderSelect: `vn-ticket-request-create > form > div > vn-card > div > vn-horizontal:nth-child(2) > vn-autocomplete > div > div > input`,
|
|
atenderSelectFirstOption: `vn-ticket-request-create > form > div > vn-card > div > vn-horizontal:nth-child(2) > vn-autocomplete > vn-drop-down > vn-popover > div > div.content > div > div.list > ul > li:nth-child(1)`,
|
|
atenderSelectSecondOption: `vn-ticket-request-create > form > div > vn-card > div > vn-horizontal:nth-child(2) > vn-autocomplete > vn-drop-down > vn-popover > div > div.content > div > div.list > ul > li:nth-child(2)`,
|
|
quantityInput: `vn-ticket-request-create > form > div > vn-card > div > vn-horizontal:nth-child(3) > vn-textfield:nth-child(1) > div > div > div.infix > input`,
|
|
priceInput: `vn-ticket-request-create > form > div > vn-card > div > vn-horizontal:nth-child(3) > vn-textfield:nth-child(2) > div > div > div.infix > input`,
|
|
firstRemoveRequestButton: `vn-ticket-request-index vn-icon[icon="delete"]:nth-child(1)`,
|
|
saveButton: `vn-ticket-request-create > form > div > vn-button-bar > vn-submit[label="Create"] input`,
|
|
firstDescription: 'vn-ticket-request-index > form > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(2)',
|
|
|
|
},
|
|
ticketLog: {
|
|
logButton: `vn-left-menu a[ui-sref="ticket.card.log"]`,
|
|
changedBy: 'vn-ticket-log > vn-log > vn-vertical > vn-card > div > vn-vertical > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > div > div:nth-child(1) > span.value.ng-scope.ng-binding',
|
|
actionTaken: 'vn-ticket-log > vn-log > vn-vertical > vn-card > div > vn-vertical > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > div > div:nth-child(3) > span.value.ng-scope.ng-binding',
|
|
id: 'vn-ticket-log > vn-log > vn-vertical > vn-card > div > vn-vertical > vn-table > div > vn-tbody > vn-tr > vn-td.before > vn-one:nth-child(1) > div > span.value.ng-scope.ng-binding'
|
|
},
|
|
ticketService: {
|
|
serviceButton: 'vn-left-menu a[ui-sref="ticket.card.service"]',
|
|
addServiceButton: 'vn-ticket-service > form > vn-card > div > vn-one:nth-child(3) > vn-icon-button > button > vn-icon',
|
|
firstDescriptionInput: 'vn-ticket-service vn-textfield[label="Description"] input',
|
|
firstQuantityInput: 'vn-ticket-service vn-textfield[label="Quantity"] input',
|
|
firstPriceInput: 'vn-ticket-service vn-textfield[label="Price"] input',
|
|
firstVatTypeAutocomplete: 'vn-ticket-service vn-autocomplete[label="Tax class"]',
|
|
fistDeleteServiceButton: 'vn-ticket-service > form > vn-card > div > vn-one:nth-child(2) > vn-horizontal > vn-auto > vn-icon',
|
|
serviceLine: 'vn-ticket-service > form > vn-card > div > vn-one:nth-child(2) > vn-horizontal',
|
|
saveServiceButton: `${components.vnSubmit}`
|
|
},
|
|
createStateView: {
|
|
stateAutocomplete: `vn-autocomplete[field="$ctrl.ticket.stateFk"]`,
|
|
clearStateInputButton: `vn-autocomplete[field="$ctrl.ticket.stateFk"] > div > div > div > vn-icon > i`,
|
|
saveStateButton: `${components.vnSubmit}`
|
|
},
|
|
claimsIndex: {
|
|
searchClaimInput: `vn-claim-index ${components.vnTextfield}`,
|
|
searchResult: `vn-claim-index vn-card > div > vn-table > div > vn-tbody > a`,
|
|
searchButton: `vn-claim-index vn-searchbar vn-icon[icon="search"]`
|
|
},
|
|
claimBasicData: {
|
|
basicDataButton: `vn-left-menu a[ui-sref="claim.card.basicData"]`,
|
|
claimStateAutocomplete: 'vn-claim-basic-data vn-autocomplete[field="$ctrl.claim.claimStateFk"]',
|
|
isPaidWithManaCheckbox: `vn-check[field="$ctrl.claim.isChargedToMana"] > label > input`,
|
|
responsabilityInputRange: `vn-input-range`,
|
|
observationInput: `vn-textarea[label="Observation"] textarea`,
|
|
saveButton: `${components.vnSubmit}`
|
|
},
|
|
claimDetails: {
|
|
detailsButton: `vn-left-menu a[ui-sref="claim.card.detail"]`,
|
|
addItemButton: `vn-claim-detail a vn-float-button`
|
|
},
|
|
claimDevelopment: {
|
|
developmentButton: 'vn-left-menu a[ui-sref="claim.card.development"]',
|
|
addDevelopmentButton: 'vn-claim-development > vn-vertical > vn-card > div > vn-vertical > vn-one > vn-icon-button > button > vn-icon',
|
|
firstDeleteDevelopmentButton: 'vn-claim-development > vn-vertical > vn-card > div > vn-vertical > form > vn-horizontal:nth-child(2) > vn-icon-button > button > vn-icon',
|
|
firstClaimReasonAutocomplete: 'vn-claim-development vn-horizontal:nth-child(2) vn-autocomplete[field="claimDevelopment.claimReasonFk"]',
|
|
firstClaimResultAutocomplete: 'vn-claim-development vn-horizontal:nth-child(2) vn-autocomplete[field="claimDevelopment.claimResultFk"]',
|
|
firstClaimResponsibleAutocomplete: 'vn-claim-development vn-horizontal:nth-child(2) vn-autocomplete[field="claimDevelopment.claimResponsibleFk"]',
|
|
firstClaimWorkerAutocomplete: 'vn-claim-development vn-horizontal:nth-child(2) vn-autocomplete[field="claimDevelopment.workerFk"]',
|
|
firstClaimRedeliveryAutocomplete: 'vn-claim-development vn-horizontal:nth-child(2) vn-autocomplete[field="claimDevelopment.claimRedeliveryFk"]',
|
|
secondClaimReasonAutocomplete: 'vn-claim-development vn-horizontal:nth-child(3) vn-autocomplete[field="claimDevelopment.claimReasonFk"]',
|
|
secondClaimResultAutocomplete: 'vn-claim-development vn-horizontal:nth-child(3) vn-autocomplete[field="claimDevelopment.claimResultFk"]',
|
|
secondClaimResponsibleAutocomplete: 'vn-claim-development vn-horizontal:nth-child(3) vn-autocomplete[field="claimDevelopment.claimResponsibleFk"]',
|
|
secondClaimWorkerAutocomplete: 'vn-claim-development vn-horizontal:nth-child(3) vn-autocomplete[field="claimDevelopment.workerFk"]',
|
|
secondClaimRedeliveryAutocomplete: 'vn-claim-development vn-horizontal:nth-child(3) vn-autocomplete[field="claimDevelopment.claimRedeliveryFk"]',
|
|
saveDevelopmentButton: `${components.vnSubmit}`
|
|
},
|
|
ordersIndex: {
|
|
searchResult: `vn-order-index vn-card > div > vn-table > div > vn-tbody > a.vn-tr`,
|
|
searchResultDate: `vn-order-index vn-table vn-tbody > a:nth-child(1) > vn-td:nth-child(4)`,
|
|
searchResultAddress: `vn-order-index vn-table vn-tbody > a:nth-child(1) > vn-td:nth-child(6)`,
|
|
searchOrderInput: `vn-order-index ${components.vnTextfield}`,
|
|
searchButton: `vn-order-index vn-searchbar vn-icon[icon="search"]`,
|
|
createOrderButton: `${components.vnFloatButton}`,
|
|
},
|
|
createOrderView: {
|
|
clientAutocomplete: `vn-autocomplete[label="Client"]`,
|
|
addressAutocomplete: `vn-autocomplete[label="Address"]`,
|
|
agencyAutocomplete: `vn-autocomplete[label="Agency"]`,
|
|
landedDatePicker: `vn-date-picker[label="Landed"]`,
|
|
createButton: `${components.vnSubmit}`,
|
|
cancelButton: `vn-button[href="#!/client/index"]`
|
|
},
|
|
orderCatalog: {
|
|
catalogButton: `vn-left-menu a[ui-sref="order.card.catalog"]`,
|
|
orderByAutocomplete: `vn-autocomplete[label="Order by"]`,
|
|
},
|
|
orderBasicData: {
|
|
basicDataButton: `vn-left-menu a[ui-sref="order.card.basicData"]`,
|
|
clientAutocomplete: `vn-autocomplete[label=Client]`,
|
|
companyAutocomplete: `vn-autocomplete[label=Company]`,
|
|
observationInput: `vn-textarea[label="Observation"] textarea`,
|
|
saveButton: `${components.vnSubmit}`
|
|
},
|
|
};
|