salix/e2e/helpers/selectors.js

871 lines
62 KiB
JavaScript
Raw Normal View History

2017-11-07 08:09:59 +00:00
2017-09-15 10:24:37 +00:00
export default {
globalItems: {
2019-04-26 12:15:37 +00:00
applicationsMenuButton: '#apps',
2020-03-25 19:44:59 +00:00
userMenuButton: '#user',
logoutButton: '#logout',
2019-09-30 09:30:54 +00:00
applicationsMenuVisible: '.modules-menu',
2020-05-06 12:38:09 +00:00
clientsButton: '.modules-menu [ui-sref="client.index"]',
itemsButton: '.modules-menu [ui-sref="item.index"]',
ticketsButton: '.modules-menu [ui-sref="ticket.index"]',
invoiceOutButton: '.modules-menu [ui-sref="invoiceOut.index"]',
claimsButton: '.modules-menu [ui-sref="claim.index"]',
2019-06-19 07:03:45 +00:00
returnToModuleIndexButton: 'a[ui-sref="order.index"]',
2020-03-02 12:16:46 +00:00
homeButton: 'vn-topbar > div.side.start > a',
2019-10-09 22:47:29 +00:00
userLocalWarehouse: '.user-popover vn-autocomplete[ng-model="$ctrl.localWarehouseFk"]',
userLocalBank: '.user-popover vn-autocomplete[ng-model="$ctrl.localBankFk"]',
userLocalCompany: '.user-popover vn-autocomplete[ng-model="$ctrl.localCompanyFk"]',
userWarehouse: '.user-popover vn-autocomplete[ng-model="$ctrl.warehouseFk"]',
userCompany: '.user-popover vn-autocomplete[ng-model="$ctrl.companyFk"]',
2019-12-31 11:00:16 +00:00
userConfigFirstAutocomplete: '#localWarehouse',
userConfigSecondAutocomplete: '#localBank',
userConfigThirdAutocomplete: '#localCompany',
2019-10-30 15:57:14 +00:00
acceptButton: '.vn-confirm.shown button[response=accept]'
},
2017-10-29 14:49:44 +00:00
clientsIndex: {
2020-02-03 14:55:11 +00:00
topbarSearch: 'vn-topbar',
2019-04-26 12:15:37 +00:00
searchButton: 'vn-searchbar vn-icon[icon="search"]',
2019-11-10 13:13:55 +00:00
searchResult: 'vn-client-index .vn-item',
2019-10-18 19:36:30 +00:00
createClientButton: `vn-float-button`,
2019-04-26 12:15:37 +00:00
othersButton: 'vn-left-menu li[name="Others"] > a'
},
2020-02-13 08:47:05 +00:00
clientSummary: {
header: 'vn-client-summary > vn-card > h5',
email: 'vn-client-summary vn-label-value[label="Email"]',
street: 'vn-client-summary vn-label-value[label="Street"]',
verifiedData: 'vn-client-summary > vn-card > vn-horizontal vn-check[ng-model="$ctrl.summary.isTaxDataChecked"]',
payMethod: 'vn-client-summary vn-label-value[label="Pay method"]',
defaultAdressName: 'vn-client-summary vn-label-value[label="Name"]',
userName: 'vn-client-summary vn-label-value[label="User"]',
rate: 'vn-client-summary vn-label-value[label="Rate"]',
credit: 'vn-client-summary vn-label-value[label="Credit"]',
},
createClientView: {
2020-02-03 14:55:11 +00:00
name: 'vn-client-create vn-textfield[ng-model="$ctrl.client.name"]',
taxNumber: 'vn-client-create vn-textfield[ng-model="$ctrl.client.fi"]',
socialName: 'vn-client-create vn-textfield[ng-model="$ctrl.client.socialName"]',
street: 'vn-client-create vn-textfield[ng-model="$ctrl.client.street"]',
2020-03-02 08:30:54 +00:00
postcode: 'vn-client-create vn-datalist[ng-model="$ctrl.client.postcode"]',
city: 'vn-client-create vn-datalist[ng-model="$ctrl.client.city"]',
2020-02-03 14:55:11 +00:00
province: 'vn-client-create vn-autocomplete[ng-model="$ctrl.client.provinceFk"]',
country: 'vn-client-create vn-autocomplete[ng-model="$ctrl.client.countryFk"]',
userName: 'vn-client-create vn-textfield[ng-model="$ctrl.client.userName"]',
email: 'vn-client-create vn-textfield[ng-model="$ctrl.client.email"]',
salesPerson: 'vn-client-create vn-autocomplete[ng-model="$ctrl.client.salesPersonFk"]',
createButton: 'vn-client-create button[type=submit]',
2019-04-26 12:15:37 +00:00
cancelButton: 'vn-button[href="#!/client/index"]'
},
2019-01-16 14:02:50 +00:00
clientDescriptor: {
2020-05-06 12:38:09 +00:00
moreMenu: 'vn-client-descriptor vn-icon-button[icon=more_vert]',
simpleTicketButton: '.vn-menu [name="simpleTicket"]'
2019-01-16 14:02:50 +00:00
},
clientBasicData: {
2019-04-26 12:15:37 +00:00
basicDataButton: 'vn-left-menu a[ui-sref="client.card.basicData"]',
2020-02-03 14:55:11 +00:00
name: 'vn-client-basic-data vn-textfield[ng-model="$ctrl.client.name"]',
contact: 'vn-client-basic-data vn-textfield[ng-model="$ctrl.client.contact"]',
email: 'vn-client-basic-data vn-textfield[ng-model="$ctrl.client.email"]',
2020-02-06 12:00:41 +00:00
phone: 'vn-client-basic-data vn-textfield[ng-model="$ctrl.client.phone"]',
mobile: 'vn-client-basic-data vn-textfield[ng-model="$ctrl.client.mobile"]',
2020-02-03 14:55:11 +00:00
salesPerson: 'vn-client-basic-data vn-autocomplete[ng-model="$ctrl.client.salesPersonFk"]',
channel: 'vn-client-basic-data vn-autocomplete[ng-model="$ctrl.client.contactChannelFk"]',
saveButton: 'vn-client-basic-data button[type=submit]'
},
clientFiscalData: {
2019-04-26 12:15:37 +00:00
fiscalDataButton: 'vn-left-menu a[ui-sref="client.card.fiscalData"]',
2020-02-03 14:55:11 +00:00
socialName: 'vn-client-fiscal-data vn-textfield[ng-model="$ctrl.client.socialName"]',
fiscalId: 'vn-client-fiscal-data vn-textfield[ng-model="$ctrl.client.fi"]',
2020-02-05 07:43:46 +00:00
equalizationTaxCheckbox: 'vn-client-fiscal-data vn-check[ng-model="$ctrl.client.isEqualizated"]',
2019-10-30 15:57:14 +00:00
acceptPropagationButton: '.vn-confirm.shown button[response=accept]',
2020-02-03 14:55:11 +00:00
address: 'vn-client-fiscal-data vn-textfield[ng-model="$ctrl.client.street"]',
2020-03-02 08:30:54 +00:00
postcode: 'vn-client-fiscal-data vn-datalist[ng-model="$ctrl.client.postcode"]',
city: 'vn-client-fiscal-data vn-datalist[ng-model="$ctrl.client.city"]',
2020-02-03 14:55:11 +00:00
province: 'vn-client-fiscal-data vn-autocomplete[ng-model="$ctrl.client.provinceFk"]',
country: 'vn-client-fiscal-data vn-autocomplete[ng-model="$ctrl.client.countryFk"]',
activeCheckbox: 'vn-client-fiscal-data vn-check[label="Active"]',
frozenCheckbox: 'vn-client-fiscal-data vn-check[label="Frozen"]',
invoiceByAddressCheckbox: 'vn-client-fiscal-data vn-check[label="Invoice by address"]',
verifiedDataCheckbox: 'vn-client-fiscal-data vn-check[label="Verified data"]',
hasToInvoiceCheckbox: 'vn-client-fiscal-data vn-check[label="Has to invoice"]',
2020-06-03 11:42:36 +00:00
notifyByMailCheckbox: 'vn-client-fiscal-data vn-check[label="Notify by email"]',
2020-02-03 14:55:11 +00:00
viesCheckbox: 'vn-client-fiscal-data vn-check[label="Vies"]',
saveButton: 'button[type=submit]',
2020-02-04 10:25:15 +00:00
acceptDuplicationButton: '.vn-confirm.shown button[response=accept]',
2019-11-28 11:54:34 +00:00
watcher: 'vn-client-fiscal-data vn-watcher'
2017-12-11 11:33:27 +00:00
},
clientBillingData: {
2020-02-03 14:55:11 +00:00
payMethod: 'vn-client-billing-data vn-autocomplete[ng-model="$ctrl.client.payMethodFk"]',
IBAN: 'vn-client-billing-data vn-textfield[ng-model="$ctrl.client.iban"]',
dueDay: 'vn-client-billing-data vn-input-number[ng-model="$ctrl.client.dueDay"]',
receivedCoreLCRCheckbox: 'vn-client-billing-data vn-check[label="Received LCR"]',
receivedCoreVNLCheckbox: 'vn-client-billing-data vn-check[label="Received core VNL"]',
receivedB2BVNLCheckbox: 'vn-client-billing-data vn-check[label="Received B2B VNL"]',
2020-02-03 14:55:11 +00:00
swiftBic: 'vn-client-billing-data vn-autocomplete[ng-model="$ctrl.client.bankEntityFk"]',
newBankEntityButton: 'vn-client-billing-data vn-icon-button[vn-tooltip="New bank entity"] > button',
2020-02-03 14:55:11 +00:00
newBankEntityName: '.vn-dialog.shown vn-textfield[ng-model="$ctrl.newBankEntity.name"]',
newBankEntityBIC: '.vn-dialog.shown vn-textfield[ng-model="$ctrl.newBankEntity.bic"]',
newBankEntityCode: '.vn-dialog.shown vn-textfield[ng-model="$ctrl.newBankEntity.id"]',
2019-10-30 15:57:14 +00:00
acceptBankEntityButton: '.vn-dialog.shown button[response="accept"]',
2020-02-10 11:57:00 +00:00
saveButton: 'vn-client-billing-data button[type=submit]',
2019-11-28 11:54:34 +00:00
watcher: 'vn-client-billing-data vn-watcher'
},
clientAddresses: {
2019-04-26 12:15:37 +00:00
addressesButton: 'vn-left-menu a[ui-sref="client.card.address.index"]',
2020-02-03 14:55:11 +00:00
createAddress: 'vn-client-address-index vn-float-button',
defaultCheckbox: 'vn-check[label="Default"]',
consignee: 'vn-textfield[ng-model="$ctrl.address.nickname"]',
streetAddress: 'vn-textfield[ng-model="$ctrl.address.street"]',
2020-03-02 08:30:54 +00:00
postcode: 'vn-datalist[ng-model="$ctrl.address.postalCode"]',
city: 'vn-datalist[ng-model="$ctrl.address.city"]',
2020-02-03 14:55:11 +00:00
province: 'vn-autocomplete[ng-model="$ctrl.address.provinceId"]',
agency: 'vn-autocomplete[ng-model="$ctrl.address.agencyModeId"]',
phone: 'vn-textfield[ng-model="$ctrl.address.phone"]',
mobileInput: 'vn-textfield[ng-model="$ctrl.address.mobile"]',
2019-09-02 07:25:18 +00:00
defaultAddress: 'vn-client-address-index div:nth-child(1) div[name="street"]',
2020-02-03 14:55:11 +00:00
incoterms: 'vn-autocomplete[ng-model="$ctrl.address.incotermsId"]',
2020-05-28 07:54:31 +00:00
addNewCustomsAgent: 'vn-client-address-create vn-autocomplete[ng-model="$ctrl.address.customsAgentId"] vn-icon-button[icon="add_circle"]',
newCustomsAgentFiscalID: 'vn-textfield[ng-model="$ctrl.newCustomsAgent.nif"]',
newCustomsAgentFiscalName: 'vn-textfield[ng-model="$ctrl.newCustomsAgent.fiscalName"]',
newCustomsAgentStreet: 'vn-textfield[ng-model="$ctrl.newCustomsAgent.street"]',
newCustomsAgentPhone: 'vn-textfield[ng-model="$ctrl.newCustomsAgent.phone"]',
saveNewCustomsAgentButton: 'button[response="accept"]',
2020-02-03 14:55:11 +00:00
customsAgent: 'vn-autocomplete[ng-model="$ctrl.address.customsAgentId"]',
2019-09-02 07:25:18 +00:00
secondMakeDefaultStar: 'vn-client-address-index vn-card div:nth-child(2) vn-icon-button[icon="star_border"]',
firstEditAddress: 'vn-client-address-index div:nth-child(1) > a',
secondEditAddress: 'vn-client-address-index div:nth-child(2) > a',
activeCheckbox: 'vn-check[label="Enabled"]',
equalizationTaxCheckbox: 'vn-client-address-edit vn-check[label="Is equalizated"]',
2020-02-03 14:55:11 +00:00
firstObservationType: 'vn-client-address-edit [name=observations] vn-horizontal:nth-child(1) vn-autocomplete[ng-model="observation.observationTypeFk"]',
firstObservationDescription: 'vn-client-address-edit [name=observations] vn-horizontal:nth-child(1) vn-textfield[ng-model="observation.description"]',
secondObservationType: 'vn-client-address-edit [name=observations] vn-horizontal:nth-child(2) vn-autocomplete[ng-model="observation.observationTypeFk"]',
secondObservationDescription: 'vn-client-address-edit [name=observations] vn-horizontal:nth-child(2) vn-textfield[ng-model="observation.description"]',
2019-07-08 12:07:09 +00:00
addObservationButton: 'vn-client-address-edit div[name="observations"] vn-icon-button[icon="add_circle"]',
2019-12-11 13:14:44 +00:00
saveButton: 'button[type=submit]',
2019-04-26 12:15:37 +00:00
cancelCreateAddressButton: 'button[ui-sref="client.card.address.index"]',
2019-11-19 13:33:25 +00:00
cancelEditAddressButton: 'vn-client-address-edit > form > vn-button-bar > vn-button > button',
watcher: 'vn-client-address-edit vn-watcher'
2017-12-15 09:07:52 +00:00
},
clientWebAccess: {
2019-04-26 12:15:37 +00:00
webAccessButton: 'vn-left-menu a[ui-sref="client.card.webAccess"]',
enableWebAccessCheckbox: 'vn-check[label="Enable web access"]',
2020-02-03 14:55:11 +00:00
userName: 'vn-client-web-access vn-textfield[ng-model="$ctrl.account.name"]',
2019-12-11 13:14:44 +00:00
saveButton: 'button[type=submit]'
2017-12-15 11:51:06 +00:00
},
clientNotes: {
2019-12-11 13:14:44 +00:00
addNoteFloatButton: 'vn-float-button',
2020-02-03 14:55:11 +00:00
note: 'vn-textarea[ng-model="$ctrl.note.text"]',
2019-12-11 13:14:44 +00:00
saveButton: 'button[type=submit]',
2018-10-30 09:22:47 +00:00
firstNoteText: 'vn-client-note .text'
},
clientCredit: {
2019-12-11 13:14:44 +00:00
addCreditFloatButton: 'vn-float-button',
2020-02-03 14:55:11 +00:00
credit: 'vn-client-credit-create vn-input-number[ng-model="$ctrl.client.credit"]',
firstCreditText: 'vn-client-credit-index vn-card vn-table vn-tbody > vn-tr',
saveButton: 'button[type=submit]'
},
clientGreuge: {
2019-12-11 13:14:44 +00:00
addGreugeFloatButton: 'vn-float-button',
2020-02-03 14:55:11 +00:00
amount: 'vn-client-greuge-create vn-input-number[ng-model="$ctrl.greuge.amount"]',
description: 'vn-client-greuge-create vn-textfield[ng-model="$ctrl.greuge.description"]',
type: 'vn-autocomplete[ng-model="$ctrl.greuge.greugeTypeFk"]',
2019-12-11 13:14:44 +00:00
saveButton: 'button[type=submit]',
2019-10-23 15:38:35 +00:00
firstGreugeText: 'vn-client-greuge-index vn-card vn-table vn-tbody > vn-tr'
2018-01-12 13:20:28 +00:00
},
clientMandate: {
2019-10-23 15:38:35 +00:00
firstMandateText: 'vn-client-mandate vn-card vn-table vn-tbody > vn-tr'
},
2018-03-02 13:45:22 +00:00
clientInvoices: {
2019-10-23 15:38:35 +00:00
firstInvoiceText: 'vn-client-invoice vn-card vn-table vn-tbody > vn-tr'
2018-10-30 09:22:47 +00:00
},
clientLog: {
2019-04-26 12:15:37 +00:00
logButton: 'vn-left-menu a[ui-sref="client.card.log"]',
2019-03-01 12:56:17 +00:00
lastModificationDate: 'vn-client-log > vn-log vn-table vn-tbody > vn-tr > vn-td:nth-child(1)',
2018-10-30 09:22:47 +00:00
lastModificationPreviousValue: 'vn-client-log vn-table vn-td.before',
lastModificationCurrentValue: 'vn-client-log vn-table vn-td.after'
2018-11-19 13:33:18 +00:00
},
clientBalance: {
2020-02-03 14:55:11 +00:00
company: 'vn-client-balance-index vn-autocomplete[ng-model="$ctrl.companyId"]',
2019-10-18 19:36:30 +00:00
newPaymentButton: `vn-float-button`,
newPaymentBank: '.vn-dialog.shown vn-autocomplete[ng-model="$ctrl.receipt.bankFk"]',
2020-02-03 14:55:11 +00:00
newPaymentAmount: '.vn-dialog.shown vn-input-number[ng-model="$ctrl.receipt.amountPaid"]',
2020-03-30 15:30:03 +00:00
saveButton: '.vn-dialog.shown [response="accept"]',
firstBalanceLine: 'vn-client-balance-index vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(8)'
2018-11-19 13:33:18 +00:00
2018-03-02 13:45:22 +00:00
},
webPayment: {
confirmFirstPaymentButton: 'vn-client-web-payment vn-tr:nth-child(1) vn-icon-button[icon="done_all"]',
firstPaymentConfirmed: 'vn-client-web-payment vn-tr:nth-child(1) vn-icon[icon="check"]'
},
2019-08-12 14:58:39 +00:00
dms: {
2019-10-01 14:17:57 +00:00
deleteFileButton: 'vn-client-dms-index vn-tr:nth-child(1) vn-icon-button[icon="delete"]',
2020-02-28 13:18:55 +00:00
firstDocWorker: 'vn-client-dms-index vn-td:nth-child(7) > span',
2020-03-17 10:00:16 +00:00
firstDocWorkerDescriptor: '.vn-popover.shown vn-worker-descriptor'
2019-08-12 14:58:39 +00:00
},
2020-02-10 11:12:49 +00:00
clientContacts: {
addContactButton: 'vn-client-contact vn-icon[icon="add_circle"]',
name: 'vn-client-contact vn-textfield[ng-model="contact.name"]',
phone: 'vn-client-contact vn-textfield[ng-model="contact.phone"]',
deleteFirstPhone: 'vn-client-contact vn-icon[icon="delete"]',
saveButton: 'button[type=submit]'
},
itemsIndex: {
2019-11-10 13:13:55 +00:00
searchIcon: 'vn-searchbar vn-icon[icon="search"]',
2019-10-18 19:36:30 +00:00
createItemButton: `vn-float-button`,
2020-03-17 10:00:16 +00:00
firstSearchResult: 'vn-item-index a:nth-child(1)',
2019-04-26 12:15:37 +00:00
searchResult: 'vn-item-index a.vn-tr',
2020-03-20 15:18:38 +00:00
firstResultPreviewButton: 'vn-item-index vn-tbody > :nth-child(1) .buttons > [icon="desktop_windows"]',
2019-04-26 12:15:37 +00:00
searchResultCloneButton: 'vn-item-index .buttons > [icon="icon-clone"]',
2019-10-30 15:57:14 +00:00
acceptClonationAlertButton: '.vn-confirm.shown [response="accept"]',
2020-02-03 14:55:11 +00:00
topbarSearch: 'vn-topbar',
2019-04-26 12:15:37 +00:00
searchButton: 'vn-searchbar vn-icon[icon="search"]',
closeItemSummaryPreview: '.vn-popup.shown',
fieldsToShowButton: 'vn-item-index vn-table > div > div > vn-icon-button[icon="menu"]',
fieldsToShowForm: '.vn-dialog.shown form',
2019-11-12 07:51:50 +00:00
firstItemImage: 'vn-item-index vn-tbody > a:nth-child(1) > vn-td:nth-child(1) > img',
firstItemImageTd: 'vn-item-index vn-table a:nth-child(1) vn-td:nth-child(1)',
firstItemId: 'vn-item-index vn-tbody > a:nth-child(1) > vn-td:nth-child(2)',
idCheckbox: '.vn-dialog.shown form vn-horizontal:nth-child(2) > vn-check',
stemsCheckbox: '.vn-dialog.shown form vn-horizontal:nth-child(3) > vn-check',
sizeCheckbox: '.vn-dialog.shown form vn-horizontal:nth-child(4) > vn-check',
nicheCheckbox: '.vn-dialog.shown form vn-horizontal:nth-child(5) > vn-check',
typeCheckbox: '.vn-dialog.shown form vn-horizontal:nth-child(6) > vn-check',
categoryCheckbox: '.vn-dialog.shown form vn-horizontal:nth-child(7) > vn-check',
intrastadCheckbox: '.vn-dialog.shown form vn-horizontal:nth-child(8) > vn-check',
originCheckbox: '.vn-dialog.shown form vn-horizontal:nth-child(9) > vn-check',
buyerCheckbox: '.vn-dialog.shown form vn-horizontal:nth-child(10) > vn-check',
destinyCheckbox: '.vn-dialog.shown form vn-horizontal:nth-child(11) > vn-check',
taxClassCheckbox: '.vn-dialog.shown form vn-horizontal:nth-child(12) > vn-check',
saveFieldsButton: '.vn-dialog.shown vn-horizontal:nth-child(16) > vn-button > button'
},
itemCreateView: {
2020-02-03 14:55:11 +00:00
temporalName: 'vn-item-create vn-textfield[ng-model="$ctrl.item.provisionalName"]',
type: 'vn-autocomplete[ng-model="$ctrl.item.typeFk"]',
intrastat: 'vn-autocomplete[ng-model="$ctrl.item.intrastatFk"]',
origin: 'vn-autocomplete[ng-model="$ctrl.item.originFk"]',
2019-12-11 13:14:44 +00:00
createButton: 'button[type=submit]',
2019-10-18 19:36:30 +00:00
cancelButton: 'vn-button[ui-sref="item.index"]'
},
2018-11-14 17:05:24 +00:00
itemDescriptor: {
2019-06-26 12:19:08 +00:00
goBackToModuleIndexButton: 'vn-item-descriptor a[href="#!/item/index"]',
2020-05-06 12:38:09 +00:00
moreMenu: 'vn-item-descriptor vn-icon-button[icon=more_vert]',
moreMenuRegularizeButton: '.vn-menu [name="regularizeStock"]',
2020-02-03 14:55:11 +00:00
regularizeQuantity: '.vn-dialog.shown vn-textfield[ng-model="$ctrl.quantity"]',
regularizeWarehouse: '.vn-dialog.shown vn-autocomplete[ng-model="$ctrl.warehouseFk"]',
2019-11-12 13:18:46 +00:00
editButton: 'vn-item-descriptor vn-float-button[icon="edit"]',
regularizeSaveButton: '.vn-dialog.shown tpl-buttons > button',
inactiveIcon: 'vn-item-descriptor vn-icon[icon="icon-unavailable"]',
2020-05-06 12:38:09 +00:00
navigateBackToIndex: 'vn-item-descriptor [name="goToModuleIndex"]'
2018-11-14 17:05:24 +00:00
},
2020-02-14 13:52:47 +00:00
itemRequest: {
firstRequestItemID: 'vn-item-request vn-tbody > vn-tr:nth-child(1) > vn-td-editable:nth-child(7)',
firstRequestQuantity: 'vn-item-request vn-tbody > vn-tr:nth-child(1) > vn-td-editable:nth-child(8)',
firstRequestConcept: 'vn-item-request vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(9)',
2020-02-20 08:31:44 +00:00
secondRequestStatus: 'vn-item-request vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(10)',
2020-02-14 13:52:47 +00:00
firstRequestStatus: 'vn-item-request vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(10)',
2020-02-20 08:31:44 +00:00
secondRequestDecline: 'vn-item-request vn-tbody > vn-tr:nth-child(1) vn-icon-button[icon="thumb_down"]',
2020-02-14 13:52:47 +00:00
declineReason: 'vn-textarea[ng-model="$ctrl.denyObservation"]',
acceptDeclineReason: 'button[response="accept"]',
},
itemBasicData: {
2019-04-26 12:15:37 +00:00
basicDataButton: 'vn-left-menu a[ui-sref="item.card.basicData"]',
goToItemIndexButton: 'vn-item-descriptor [ui-sref="item.index"]',
2020-02-03 14:55:11 +00:00
type: 'vn-autocomplete[ng-model="$ctrl.item.typeFk"]',
intrastat: 'vn-autocomplete[ng-model="$ctrl.item.intrastatFk"]',
name: 'vn-item-basic-data vn-textfield[ng-model="$ctrl.item.name"]',
relevancy: 'vn-item-basic-data vn-input-number[ng-model="$ctrl.item.relevancy"]',
origin: 'vn-autocomplete[ng-model="$ctrl.item.originFk"]',
expense: 'vn-autocomplete[ng-model="$ctrl.item.expenseFk"]',
longName: 'vn-textfield[ng-model="$ctrl.item.longName"]',
isActiveCheckbox: 'vn-check[label="Active"]',
priceInKgCheckbox: 'vn-check[label="Price in kg"]',
2020-02-17 11:47:03 +00:00
newIntrastatButton: 'vn-item-basic-data vn-icon-button[vn-tooltip="New intrastat"] > button',
newIntrastatId: '.vn-dialog.shown vn-input-number[ng-model="$ctrl.newIntrastat.intrastatId"]',
newIntrastatDescription: '.vn-dialog.shown vn-textfield[ng-model="$ctrl.newIntrastat.description"]',
acceptIntrastatButton: '.vn-dialog.shown button[response="accept"]',
2019-10-18 19:36:30 +00:00
submitBasicDataButton: `button[type=submit]`
},
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"]',
2019-04-26 12:15:37 +00:00
tagsButton: 'vn-left-menu a[ui-sref="item.card.tags"]',
2020-02-03 14:55:11 +00:00
fourthTag: 'vn-item-tags vn-horizontal:nth-child(4) > vn-autocomplete[ng-model="itemTag.tagFk"]',
fourthValue: 'vn-item-tags vn-horizontal:nth-child(4) vn-textfield[ng-model="itemTag.value"]',
fourthRelevancy: 'vn-item-tags vn-horizontal:nth-child(4) [ng-model="itemTag.priority"]',
2019-04-26 12:15:37 +00:00
fourthRemoveTagButton: 'vn-item-tags vn-horizontal:nth-child(4) vn-icon-button[icon="delete"]',
2020-02-03 14:55:11 +00:00
fifthTag: 'vn-item-tags vn-horizontal:nth-child(5) > vn-autocomplete[ng-model="itemTag.tagFk"]',
fifthValue: 'vn-item-tags vn-horizontal:nth-child(5) vn-textfield[ng-model="itemTag.value"]',
2020-02-06 09:31:39 +00:00
fifthRelevancy: 'vn-item-tags vn-horizontal:nth-child(5) vn-input-number[ng-model="itemTag.priority"]',
2020-02-03 14:55:11 +00:00
sixthTag: 'vn-item-tags vn-horizontal:nth-child(6) > vn-autocomplete[ng-model="itemTag.tagFk"]',
sixthValue: 'vn-item-tags vn-horizontal:nth-child(6) vn-textfield[ng-model="itemTag.value"]',
2020-02-06 09:31:39 +00:00
sixthRelevancy: 'vn-item-tags vn-horizontal:nth-child(6) vn-input-number[ng-model="itemTag.priority"]',
2020-02-03 14:55:11 +00:00
seventhTag: 'vn-item-tags vn-horizontal:nth-child(7) > vn-autocomplete[ng-model="itemTag.tagFk"]',
seventhValue: 'vn-item-tags vn-horizontal:nth-child(7) vn-textfield[ng-model="itemTag.value"]',
2020-02-06 09:31:39 +00:00
seventhRelevancy: 'vn-item-tags vn-horizontal:nth-child(7) vn-input-number[ng-model="itemTag.priority"]',
2019-04-26 12:15:37 +00:00
addItemTagButton: 'vn-item-tags vn-icon-button[icon="add_circle"]',
2019-12-11 13:14:44 +00:00
submitItemTagsButton: 'vn-item-tags button[type=submit]'
2018-02-27 18:00:46 +00:00
},
itemTax: {
undoChangesButton: 'vn-item-tax vn-button-bar > vn-button[label="Undo changes"]',
2020-02-03 14:55:11 +00:00
firstClass: 'vn-item-tax vn-horizontal:nth-child(1) > vn-autocomplete[ng-model="tax.taxClassFk"]',
secondClass: 'vn-item-tax vn-horizontal:nth-child(2) > vn-autocomplete[ng-model="tax.taxClassFk"]',
thirdClass: 'vn-item-tax vn-horizontal:nth-child(3) > vn-autocomplete[ng-model="tax.taxClassFk"]',
2019-12-11 13:14:44 +00:00
submitTaxButton: 'vn-item-tax button[type=submit]'
},
itemBarcodes: {
2019-04-26 12:15:37 +00:00
addBarcodeButton: 'vn-item-barcode vn-icon[icon="add_circle"]',
2020-02-03 14:55:11 +00:00
thirdCode: 'vn-item-barcode vn-horizontal:nth-child(3) vn-textfield[ng-model="barcode.code"]',
2019-12-11 13:14:44 +00:00
submitBarcodesButton: 'vn-item-barcode button[type=submit]',
2020-03-17 10:00:16 +00:00
firstCodeRemoveButton: 'vn-item-barcode vn-horizontal:nth-child(1) vn-icon[icon="delete"]'
2018-02-20 14:22:24 +00:00
},
itemNiches: {
2019-04-26 12:15:37 +00:00
addNicheButton: 'vn-item-niche vn-icon[icon="add_circle"]',
2020-02-03 14:55:11 +00:00
firstWarehouse: 'vn-item-niche vn-autocomplete[ng-model="niche.warehouseFk"]',
firstCode: 'vn-item-niche vn-horizontal:nth-child(1) vn-textfield[ng-model="niche.code"]',
secondWarehouse: 'vn-item-niche vn-horizontal:nth-child(2) > vn-autocomplete[ng-model="niche.warehouseFk"]',
secondCode: 'vn-item-niche vn-horizontal:nth-child(2) vn-textfield[ng-model="niche.code"]',
2019-04-26 12:15:37 +00:00
secondNicheRemoveButton: 'vn-item-niche vn-horizontal:nth-child(2) > vn-none > vn-icon-button[icon="delete"]',
2020-02-03 14:55:11 +00:00
thirdWarehouse: 'vn-item-niche vn-horizontal:nth-child(3) > vn-autocomplete[ng-model="niche.warehouseFk"]',
thirdCode: 'vn-item-niche vn-horizontal:nth-child(3) vn-textfield[ng-model="niche.code"]',
2019-12-11 13:14:44 +00:00
submitNichesButton: 'vn-item-niche button[type=submit]'
},
itemBotanical: {
2020-02-03 14:55:11 +00:00
botanical: 'vn-item-botanical vn-horizontal:nth-child(1) vn-textfield[ng-model="$ctrl.botanical.botanical"]',
genus: 'vn-item-botanical vn-autocomplete[ng-model="$ctrl.botanical.genusFk"]',
species: 'vn-item-botanical vn-autocomplete[ng-model="$ctrl.botanical.specieFk"]',
2019-10-18 19:36:30 +00:00
submitBotanicalButton: `vn-item-botanical button[type=submit]`
2018-02-22 10:26:32 +00:00
},
2018-02-22 15:44:14 +00:00
itemSummary: {
2019-04-26 12:15:37 +00:00
basicData: 'vn-item-summary [name="basicData"]',
vat: 'vn-item-summary [name="tax"]',
tags: 'vn-item-summary [name="tags"]',
niche: 'vn-item-summary [name="niche"]',
botanical: 'vn-item-summary [name="botanical"]',
barcode: 'vn-item-summary [name="barcode"]'
2018-03-19 15:29:55 +00:00
},
2018-11-16 11:03:52 +00:00
itemDiary: {
2019-06-19 07:03:45 +00:00
secondTicketId: 'vn-item-diary vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(2) > span',
2020-03-25 19:44:59 +00:00
fourthBalance: 'vn-item-diary vn-tbody > vn-tr:nth-child(4) > vn-td.balance > span',
2019-01-27 23:26:01 +00:00
firstBalance: 'vn-item-diary vn-tbody > vn-tr:nth-child(1) > vn-td.balance',
2020-02-03 14:55:11 +00:00
warehouse: 'vn-item-diary vn-autocomplete[ng-model="$ctrl.warehouseFk"]',
2018-11-16 11:03:52 +00:00
},
2019-03-20 07:23:12 +00:00
itemLog: {
2019-03-20 13:43:38 +00:00
anyLineCreated: 'vn-item-log > vn-log vn-tbody > vn-tr',
2019-03-20 10:47:00 +00:00
fifthLineCreatedProperty: 'vn-item-log > vn-log vn-tbody > vn-tr:nth-child(5) > vn-td > vn-one:nth-child(3) > div span:nth-child(3)',
2019-03-20 07:23:12 +00:00
},
2018-11-14 17:05:24 +00:00
ticketSummary: {
2019-10-23 15:38:35 +00:00
header: 'vn-ticket-summary > vn-card > h5',
2019-06-27 13:33:15 +00:00
state: 'vn-ticket-summary vn-label-value[label="State"] > section > span',
route: 'vn-ticket-summary vn-label-value[label="Route"] > section > span > span',
2019-06-27 13:33:15 +00:00
total: 'vn-ticket-summary vn-one.taxes > p:nth-child(3) > strong',
2019-01-30 22:47:06 +00:00
sale: 'vn-ticket-summary [name="sales"] vn-table > div > vn-tbody > vn-tr',
2020-03-25 19:44:59 +00:00
firstSaleItemId: 'vn-ticket-summary [name="sales"] vn-table vn-tbody > :nth-child(1) > vn-td:nth-child(2) > span',
2019-09-30 09:30:54 +00:00
firstSaleDescriptorImage: '.vn-popover.shown vn-item-descriptor img',
itemDescriptorPopover: '.vn-popover.shown vn-item-descriptor',
itemDescriptorPopoverItemDiaryButton: 'vn-item-descriptor a[href="#!/item/2/diary?warehouseFk=5&lineFk=16"]',
2019-09-30 09:30:54 +00:00
popoverDiaryButton: '.vn-popover.shown vn-item-descriptor vn-icon[icon="icon-transaction"]',
2019-02-20 16:52:36 +00:00
firstSaleQuantity: 'vn-ticket-summary [name="sales"] vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(3)',
firstSaleDiscount: 'vn-ticket-summary [name="sales"] vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(6)',
2020-03-27 10:10:20 +00:00
invoiceOutRef: 'vn-ticket-summary > vn-card > vn-horizontal > vn-one:nth-child(1) > vn-label-value:nth-child(7) > section > span',
2019-06-27 13:33:15 +00:00
setOk: 'vn-ticket-summary vn-button[label="SET OK"] > button'
2018-11-14 17:05:24 +00:00
},
2018-03-19 15:29:55 +00:00
ticketsIndex: {
2019-11-10 13:13:55 +00:00
openAdvancedSearchButton: 'vn-searchbar .append vn-icon[icon="arrow_drop_down"]',
2020-02-03 14:55:11 +00:00
advancedSearchInvoiceOut: 'vn-ticket-search-panel vn-textfield[ng-model="filter.refFk"]',
newTicketButton: 'vn-ticket-index a',
2019-10-23 15:38:35 +00:00
searchResult: 'vn-ticket-index vn-card > vn-table > div > vn-tbody > a.vn-tr',
2020-03-20 11:05:45 +00:00
secondTicketCheckbox: 'vn-ticket-index vn-tbody > a:nth-child(2) > vn-td:nth-child(1) > vn-check',
thirdTicketCheckbox: 'vn-ticket-index vn-tbody > a:nth-child(3) > vn-td:nth-child(1) > vn-check',
sixthTicketCheckbox: 'vn-ticket-index vn-tbody > a:nth-child(6) > vn-td:nth-child(1) > vn-check',
payoutButton: 'vn-ticket-index vn-button[icon="icon-recovery"]',
payoutCompany: '.vn-dialog vn-autocomplete[ng-model="$ctrl.receipt.companyFk"]',
payoutBank: '.vn-dialog vn-autocomplete[ng-model="$ctrl.receipt.bankFk"]',
submitPayout: '.vn-dialog button[response="accept"]',
2019-08-21 10:23:01 +00:00
searchWeeklyResult: 'vn-ticket-weekly-index vn-table vn-tbody > vn-tr',
2020-03-23 09:40:09 +00:00
searchResultDate: 'vn-ticket-summary [label=Landed] span',
2020-02-03 14:55:11 +00:00
topbarSearch: 'vn-searchbar',
2019-10-18 19:36:30 +00:00
advancedSearchButton: 'vn-ticket-search-panel button[type=submit]',
2019-11-10 13:13:55 +00:00
searchButton: 'vn-searchbar vn-icon[icon="search"]',
2020-05-06 12:38:09 +00:00
moreMenu: 'vn-ticket-index vn-icon-button[icon=more_vert]',
sixthWeeklyTicket: 'vn-ticket-weekly-index vn-table vn-tr:nth-child(6)',
2019-07-29 11:12:36 +00:00
weeklyTicket: 'vn-ticket-weekly-index vn-table > div > vn-tbody > vn-tr',
2019-08-21 10:23:01 +00:00
firstWeeklyTicketDeleteIcon: 'vn-ticket-weekly-index vn-tr:nth-child(1) vn-icon-button[icon="delete"]',
firstWeeklyTicketAgency: 'vn-ticket-weekly-index vn-tr:nth-child(1) [ng-model="weekly.agencyModeFk"]',
2019-10-30 15:57:14 +00:00
acceptDeleteTurn: '.vn-confirm.shown button[response="accept"]'
2018-11-11 16:40:02 +00:00
},
2019-01-15 11:38:58 +00:00
createTicketView: {
2020-02-03 14:55:11 +00:00
client: 'vn-ticket-create vn-autocomplete[ng-model="$ctrl.clientId"]',
address: 'vn-ticket-create vn-autocomplete[ng-model="$ctrl.addressId"]',
deliveryDate: 'vn-ticket-create vn-date-picker[ng-model="$ctrl.landed"]',
warehouse: 'vn-ticket-create vn-autocomplete[ng-model="$ctrl.warehouseId"]',
agency: 'vn-ticket-create vn-autocomplete[ng-model="$ctrl.agencyModeId"]',
2019-10-18 19:36:30 +00:00
createButton: `button[type=submit]`
2019-01-15 11:38:58 +00:00
},
2018-11-11 16:40:02 +00:00
ticketDescriptor: {
2019-06-26 12:19:08 +00:00
idLabelValue: 'vn-ticket-descriptor vn-label-value[label="Id"]',
stateLabelValue: 'vn-ticket-descriptor vn-label-value[label="State"]',
goBackToModuleIndexButton: 'vn-ticket-descriptor a[ui-sref="ticket.index"]',
2020-05-06 12:38:09 +00:00
moreMenu: 'vn-ticket-descriptor vn-icon-button[icon=more_vert]',
moreMenuAddStowaway: '.vn-menu [name="addStowaway"]',
moreMenuDeleteStowawayButton: '.vn-menu [name="deleteStowaway"]',
moreMenuAddToTurn: '.vn-menu [name="addTurn"]',
moreMenuDeleteTicket: '.vn-menu [name="deleteTicket"]',
moreMenuMakeInvoice: '.vn-menu [name="makeInvoice"]',
moreMenuChangeShippedHour: '.vn-menu [name="changeShipped"]',
changeShippedHourDialog: '.vn-dialog.shown',
2020-02-03 14:55:11 +00:00
changeShippedHour: '.vn-dialog.shown vn-input-time[ng-model="$ctrl.newShipped"]',
addStowawayDialogFirstTicket: '.vn-dialog.shown vn-table vn-tbody vn-tr',
2019-10-18 19:36:30 +00:00
shipButton: 'vn-ticket-descriptor vn-icon[icon="icon-stowaway"]',
thursdayButton: '.vn-popup.shown vn-tool-bar > vn-button:nth-child(4)',
saturdayButton: '.vn-popup.shown vn-tool-bar > vn-button:nth-child(6)',
2019-10-30 15:57:14 +00:00
acceptDeleteButton: '.vn-dialog.shown button[response="accept"]',
acceptChangeHourButton: '.vn-dialog.shown button[response="accept"]',
2020-05-06 12:38:09 +00:00
descriptorDeliveryDate: 'vn-ticket-descriptor slot-body > .attributes > vn-label-value:nth-child(3) > section > span',
2019-10-30 15:57:14 +00:00
acceptInvoiceOutButton: '.vn-confirm.shown button[response="accept"]',
acceptDeleteStowawayButton: '.vn-dialog.shown button[response="accept"]'
2018-03-19 15:29:55 +00:00
},
ticketNotes: {
2019-04-26 12:15:37 +00:00
firstNoteRemoveButton: 'vn-icon[icon="delete"]',
addNoteButton: 'vn-icon[icon="add_circle"]',
2020-02-03 14:55:11 +00:00
firstNoteType: 'vn-autocomplete[ng-model="observation.observationTypeFk"]',
firstDescription: 'vn-ticket-observation vn-textfield[ng-model="observation.description"]',
submitNotesButton: 'button[type=submit]'
2018-03-19 15:29:55 +00:00
},
ticketExpedition: {
2019-04-26 12:15:37 +00:00
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"]',
2019-10-30 15:57:14 +00:00
acceptDeleteRowButton: '.vn-confirm.shown button[response=accept]',
2019-04-26 12:15:37 +00:00
expeditionRow: 'vn-ticket-expedition vn-table vn-tbody > vn-tr'
},
2018-03-19 15:29:55 +00:00
ticketPackages: {
2019-05-01 16:49:39 +00:00
packagesButton: 'vn-left-menu a[ui-sref="ticket.card.package"]',
2020-02-03 14:55:11 +00:00
firstPackage: 'vn-autocomplete[label="Package"]',
firstQuantity: 'vn-ticket-package vn-horizontal:nth-child(1) vn-input-number[ng-model="package.quantity"]',
2019-04-26 12:15:37 +00:00
firstRemovePackageButton: 'vn-icon-button[vn-tooltip="Remove package"]',
addPackageButton: 'vn-icon-button[vn-tooltip="Add package"]',
2019-10-18 19:36:30 +00:00
savePackagesButton: `button[type=submit]`
2018-04-04 09:56:07 +00:00
},
ticketSales: {
2019-04-26 12:15:37 +00:00
saleButton: 'vn-left-menu a[ui-sref="ticket.card.sale"]',
saleLine: 'vn-table div > vn-tbody > vn-tr',
2019-09-30 09:30:54 +00:00
saleDescriptorPopover: '.vn-popover.shown vn-item-descriptor',
saleDescriptorPopoverSummaryButton: '.vn-popover.shown vn-item-descriptor a[ui-sref="item.card.summary({id: $ctrl.item.id})"]',
2020-05-08 17:56:39 +00:00
descriptorItemDiaryButton: '.vn-popover vn-item-descriptor vn-quick-link[icon="icon-transaction"] > a',
2019-09-06 09:43:15 +00:00
newItemFromCatalogButton: 'vn-ticket-sale vn-float-button[icon="add"]',
2020-05-06 12:38:09 +00:00
newItemButton: 'vn-ticket-sale vn-card vn-icon-button[icon="add_circle"]',
2019-06-26 12:19:08 +00:00
moreMenu: 'vn-ticket-sale vn-tool-bar > vn-button-menu[vn-id="more-button"] > div > button',
moreMenuCreateClaim: '.vn-drop-down.shown li[name="Add claim"]',
moreMenuReserve: '.vn-drop-down.shown li[name="Mark as reserved"]',
moreMenuUnmarkReseved: '.vn-drop-down.shown li[name="Unmark as reserved"]',
moreMenuUpdateDiscount: '.vn-drop-down.shown li[name="Update discount"]',
2019-09-30 09:30:54 +00:00
transferQuantityInput: '.vn-popover.shown vn-table > div > vn-tbody > vn-tr > vn-td-editable > span > text',
transferQuantityCell: '.vn-popover.shown vn-table > div > vn-tbody > vn-tr > vn-td-editable',
2019-06-20 12:41:48 +00:00
firstSaleClaimIcon: 'vn-ticket-sale vn-table vn-tbody > vn-tr:nth-child(1) vn-icon[icon="icon-claims"]',
2019-09-30 09:30:54 +00:00
firstSaleDescriptorImage: '.vn-popover.shown vn-item-descriptor img',
2019-04-26 12:15:37 +00:00
firstSaleText: 'vn-table div > vn-tbody > vn-tr:nth-child(1)',
2019-02-04 13:47:55 +00:00
firstSaleThumbnailImage: 'vn-ticket-sale:nth-child(1) vn-tr:nth-child(1) vn-td:nth-child(3) > img',
firstSaleZoomedImage: 'body > div > div > img',
firstSaleQuantity: 'vn-ticket-sale [ng-model="sale.quantity"]',
firstSaleQuantityCell: 'vn-ticket-sale vn-tr:nth-child(1) > vn-td-editable:nth-child(5)',
firstSaleIdAutocomplete: 'vn-ticket-sale vn-table vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(4) > vn-autocomplete',
2019-09-06 09:43:15 +00:00
firstSalePrice: 'vn-ticket-sale vn-table vn-tr:nth-child(1) > vn-td:nth-child(7) > span',
firstSalePriceInput: '.vn-popover.shown [ng-model="$ctrl.editedPrice"]',
2019-09-06 09:43:15 +00:00
firstSaleDiscount: 'vn-ticket-sale vn-table vn-tr:nth-child(1) > vn-td:nth-child(8) > span',
firstSaleDiscountInput: '.vn-popover.shown [ng-model="$ctrl.newDiscount"]',
firstSaleImport: 'vn-ticket-sale:nth-child(1) vn-td:nth-child(9)',
2018-11-07 07:38:09 +00:00
firstSaleReservedIcon: 'vn-ticket-sale vn-tr:nth-child(1) > vn-td:nth-child(2) > vn-icon:nth-child(3)',
2019-10-14 09:51:26 +00:00
firstSaleColour: 'vn-ticket-sale vn-tr:nth-child(1) vn-fetched-tags section',
firstSaleLength: 'vn-ticket-sale vn-tr:nth-child(1) vn-td-editable:nth-child(6) section:nth-child(3)',
2019-10-09 22:47:29 +00:00
firstSaleCheckbox: 'vn-ticket-sale vn-tr:nth-child(1) vn-check[ng-model="sale.checked"]',
2019-09-06 09:43:15 +00:00
secondSaleColour: 'vn-tr:nth-child(2) vn-fetched-tags section',
2019-04-26 12:15:37 +00:00
secondSalePrice: 'vn-ticket-sale vn-tr:nth-child(2) vn-td:nth-child(7) > span',
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)',
2019-09-06 09:43:15 +00:00
secondSaleId: 'vn-ticket-sale:nth-child(2) vn-td-editable:nth-child(4) text > span',
secondSaleIdCell: 'vn-ticket-sale vn-tr:nth-child(2) > vn-td-editable:nth-child(4)',
secondSaleIdInput: 'vn-ticket-sale vn-table vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(4) > vn-autocomplete',
secondSaleIdAutocomplete: 'vn-ticket-sale vn-table vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(4) > vn-autocomplete',
secondSaleQuantity: 'vn-ticket-sale vn-table vn-tr:nth-child(2) vn-input-number',
2020-05-19 08:51:50 +00:00
secondSaleConceptCell: 'vn-ticket-sale vn-tbody > :nth-child(2) > :nth-child(6)',
2020-05-19 10:50:43 +00:00
secondSaleConceptInput: 'vn-ticket-sale vn-tbody > :nth-child(2) > vn-td-editable.ng-isolate-scope.selected vn-textfield',
2019-10-23 15:38:35 +00:00
totalImport: 'vn-ticket-sale > vn-vertical > vn-card > vn-vertical > vn-horizontal > vn-one > p:nth-child(3) > strong',
selectAllSalesCheckbox: 'vn-ticket-sale vn-thead vn-check',
2019-10-09 22:47:29 +00:00
secondSaleCheckbox: 'vn-ticket-sale vn-tr:nth-child(2) vn-check[ng-model="sale.checked"]',
thirdSaleCheckbox: 'vn-ticket-sale vn-tr:nth-child(3) vn-check[ng-model="sale.checked"]',
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-popover.shown vn-textfield[ng-model="$ctrl.transfer.ticketId"]',
2019-09-30 09:30:54 +00:00
moveToTicketButton: '.vn-popover.shown vn-icon[icon="arrow_forward_ios"]',
moveToNewTicketButton: '.vn-popover.shown vn-button[label="New ticket"]',
2019-10-30 15:57:14 +00:00
acceptDeleteLineButton: '.vn-confirm.shown button[response=accept]',
acceptDeleteTicketButton: '.vn-confirm.shown button[response=accept]',
2019-04-26 12:15:37 +00:00
stateMenuButton: 'vn-ticket-sale vn-tool-bar > vn-button-menu[label="State"]'
2018-04-05 12:14:34 +00:00
},
ticketTracking: {
2019-04-26 12:15:37 +00:00
trackingButton: 'vn-left-menu a[ui-sref="ticket.card.tracking.index"]',
2020-02-03 14:55:11 +00:00
createStateButton: 'vn-float-button',
saveButton: 'button[type=submit]',
2019-04-26 12:15:37 +00:00
cancelButton: 'vn-ticket-tracking-edit vn-button[ui-sref="ticket.card.tracking.index"]'
2018-04-05 12:14:34 +00:00
},
ticketBasicData: {
2019-04-26 12:15:37 +00:00
basicDataButton: 'vn-left-menu a[ui-sref="ticket.card.basicData.stepOne"]',
2020-02-03 14:55:11 +00:00
agency: 'vn-autocomplete[ng-model="$ctrl.agencyModeId"]',
zone: 'vn-autocomplete[ng-model="$ctrl.zoneId"]',
2019-10-18 19:36:30 +00:00
nextStepButton: 'vn-step-control .buttons > section:last-child vn-button',
finalizeButton: 'vn-step-control .buttons > section:last-child button[type=submit]',
2019-11-14 14:24:08 +00:00
stepTwoTotalPriceDif: 'vn-ticket-basic-data-step-two vn-tfoot > vn-tr > :nth-child(6)',
2020-02-07 13:12:37 +00:00
chargesReason: 'vn-ticket-basic-data-step-two div:nth-child(3) > vn-radio',
2018-10-25 14:44:03 +00:00
},
ticketComponents: {
2019-10-11 15:38:04 +00:00
base: 'vn-ticket-components [name="base-sum"]'
},
2018-11-13 15:30:19 +00:00
ticketRequests: {
2019-04-26 12:15:37 +00:00
addRequestButton: 'vn-ticket-request-index > a > vn-float-button > button',
descriptionInput: 'vn-ticket-request-create [ng-model="$ctrl.ticketRequest.description"]',
2020-02-03 14:55:11 +00:00
atender: 'vn-ticket-request-create vn-autocomplete[ng-model="$ctrl.ticketRequest.attenderFk"]',
quantity: 'vn-ticket-request-create vn-input-number[ng-model="$ctrl.ticketRequest.quantity"]',
price: 'vn-ticket-request-create vn-input-number[ng-model="$ctrl.ticketRequest.price"]',
2020-02-27 06:17:09 +00:00
firstRequestQuantity: 'vn-ticket-request-index vn-table vn-tr:nth-child(1) > vn-td:nth-child(6) vn-input-number',
secondRequestQuantity: 'vn-ticket-request-index vn-table vn-tr:nth-child(2) > vn-td:nth-child(6) vn-input-number',
thirdDescription: 'vn-ticket-request-index vn-table vn-tr:nth-child(3) > vn-td:nth-child(2) vn-textfield',
thirdRemoveRequestButton: 'vn-ticket-request-index vn-tr:nth-child(3) vn-icon[icon="delete"]',
thirdRequestQuantity: 'vn-ticket-request-index vn-table vn-tr:nth-child(3) > vn-td:nth-child(6) vn-input-number',
2019-10-18 19:36:30 +00:00
saveButton: 'vn-ticket-request-create button[type=submit]',
2018-11-21 13:09:22 +00:00
2018-11-13 15:30:19 +00:00
},
2019-01-11 11:41:07 +00:00
ticketLog: {
2020-03-09 15:47:02 +00:00
firstTD: 'vn-ticket-log vn-table vn-td:nth-child(1)',
2019-04-26 12:15:37 +00:00
logButton: 'vn-left-menu a[ui-sref="ticket.card.log"]',
2019-10-01 14:17:57 +00:00
changedBy: 'vn-ticket-log > vn-log vn-tr:nth-child(1) > vn-td:nth-child(2) > span',
actionTaken: 'vn-ticket-log > vn-log vn-td:nth-child(1) > div > div:nth-child(3) > span.value',
id: 'vn-ticket-log > vn-log vn-td.before > vn-one:nth-child(1) > div > span.value'
2019-01-11 11:41:07 +00:00
},
2019-01-14 10:19:39 +00:00
ticketService: {
2019-05-20 09:16:56 +00:00
addServiceButton: 'vn-ticket-service vn-icon-button[vn-tooltip="Add service"] > button',
firstAddServiceTypeButton: 'vn-ticket-service vn-icon-button[vn-tooltip="New service type"]',
2020-02-03 14:55:11 +00:00
firstServiceType: 'vn-ticket-service vn-autocomplete[ng-model="service.ticketServiceTypeFk"]',
firstQuantity: 'vn-ticket-service vn-input-number[ng-model="service.quantity"]',
2020-03-17 10:00:16 +00:00
firstPrice: 'vn-ticket-service vn-horizontal:nth-child(1) vn-input-number[ng-model="service.price"]',
2020-02-03 14:55:11 +00:00
firstVatType: 'vn-ticket-service vn-autocomplete[label="Tax class"]',
2019-10-11 15:38:04 +00:00
fistDeleteServiceButton: 'vn-ticket-service form vn-horizontal:nth-child(1) vn-icon-button[icon="delete"]',
2020-03-30 15:30:03 +00:00
newServiceTypeName: '.vn-dialog.shown vn-textfield[ng-model="newServiceType.name"]',
newServiceTypeExpense: '.vn-dialog.shown vn-autocomplete[ng-model="newServiceType.expenseFk"]',
2019-10-23 15:38:35 +00:00
serviceLine: 'vn-ticket-service > form > vn-card > vn-one:nth-child(2) > vn-horizontal',
2020-02-04 15:21:10 +00:00
saveServiceButton: 'button[type=submit]',
saveServiceTypeButton: '.vn-dialog.shown tpl-buttons > button'
2019-01-14 10:19:39 +00:00
},
2018-04-05 12:14:34 +00:00
createStateView: {
2020-02-03 14:55:11 +00:00
state: 'vn-autocomplete[ng-model="$ctrl.stateFk"]',
worker: 'vn-autocomplete[ng-model="$ctrl.workerFk"]',
2019-10-18 19:36:30 +00:00
saveStateButton: `button[type=submit]`
2018-09-04 09:38:48 +00:00
},
claimsIndex: {
searchClaimInput: 'vn-searchbar',
2019-10-23 15:38:35 +00:00
searchResult: 'vn-claim-index vn-card > vn-table > div > vn-tbody > a',
2019-11-10 13:13:55 +00:00
searchButton: 'vn-searchbar vn-icon[icon="search"]'
2018-09-04 09:38:48 +00:00
},
2019-06-28 12:01:43 +00:00
claimDescriptor: {
2020-05-06 12:38:09 +00:00
moreMenu: 'vn-claim-descriptor vn-icon-button[icon=more_vert]',
moreMenuDeleteClaim: '.vn-menu [name="deleteClaim"]',
2019-10-30 15:57:14 +00:00
acceptDeleteClaim: '.vn-confirm.shown button[response="accept"]'
2019-06-28 12:01:43 +00:00
},
2019-06-28 10:51:34 +00:00
claimSummary: {
2019-10-23 15:38:35 +00:00
header: 'vn-claim-summary > vn-card > h5',
2019-06-28 10:51:34 +00:00
state: 'vn-claim-summary vn-label-value[label="State"] > section > span',
2020-02-03 14:55:11 +00:00
observation: 'vn-claim-summary vn-textarea[ng-model="$ctrl.summary.claim.observation"]',
firstSaleItemId: 'vn-claim-summary vn-horizontal > vn-auto:nth-child(4) vn-table > div > vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(1) > span',
2019-09-30 09:30:54 +00:00
firstSaleDescriptorImage: '.vn-popover.shown vn-item-descriptor img',
itemDescriptorPopover: '.vn-popover.shown vn-item-descriptor',
2020-05-08 17:56:39 +00:00
itemDescriptorPopoverItemDiaryButton: '.vn-popover vn-item-descriptor vn-quick-link[icon="icon-transaction"] > a',
firstDevelopmentWorker: 'vn-claim-summary vn-horizontal > vn-auto:nth-child(5) vn-table > div > vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(4) > span',
2020-05-08 17:56:39 +00:00
firstDevelopmentWorkerGoToClientButton: '.vn-popover vn-worker-descriptor vn-quick-link[icon="person"] > a',
2019-10-23 15:38:35 +00:00
firstActionTicketId: 'vn-claim-summary > vn-card > vn-horizontal > vn-auto:nth-child(6) vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > span',
2019-09-30 09:30:54 +00:00
firstActionTicketDescriptor: '.vn-popover.shown vn-ticket-descriptor'
2019-06-28 10:51:34 +00:00
},
2018-09-04 09:38:48 +00:00
claimBasicData: {
2020-02-03 14:55:11 +00:00
claimState: 'vn-claim-basic-data vn-autocomplete[ng-model="$ctrl.claim.claimStateFk"]',
2019-10-18 19:36:30 +00:00
responsabilityInputRange: 'vn-range',
2020-02-03 14:55:11 +00:00
observation: 'vn-textarea[ng-model="$ctrl.claim.observation"]',
2020-06-03 12:46:58 +00:00
hasToPickUpCheckbox: 'vn-claim-basic-data vn-check[ng-model="$ctrl.claim.hasToPickUp"]',
2019-10-18 19:36:30 +00:00
saveButton: `button[type=submit]`
2018-09-04 09:38:48 +00:00
},
2019-01-22 10:54:17 +00:00
claimDetail: {
2019-10-23 15:38:35 +00:00
secondItemDiscount: 'vn-claim-detail > vn-vertical > vn-card > vn-vertical > vn-table > div > vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(6) > span',
2020-02-03 14:55:11 +00:00
discount: '.vn-popover.shown vn-input-number[ng-model="$ctrl.newDiscount"]',
2019-09-30 09:30:54 +00:00
discoutPopoverMana: '.vn-popover.shown .content > div > vn-horizontal > h5',
2019-04-26 12:15:37 +00:00
addItemButton: 'vn-claim-detail a vn-float-button',
firstClaimableSaleFromTicket: '.vn-dialog.shown vn-tbody > vn-tr',
2019-10-23 15:38:35 +00:00
claimDetailLine: 'vn-claim-detail > vn-vertical > vn-card > vn-vertical > vn-table > div > vn-tbody > vn-tr',
totalClaimed: 'vn-claim-detail > vn-vertical > vn-card > vn-vertical > vn-horizontal > div > vn-label-value:nth-child(2) > section > span',
secondItemDeleteButton: 'vn-claim-detail > vn-vertical > vn-card > vn-vertical > vn-table > div > vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(8) > vn-icon-button > button > vn-icon > i'
2018-10-25 14:44:03 +00:00
},
2019-01-15 07:33:19 +00:00
claimDevelopment: {
2019-10-23 15:38:35 +00:00
addDevelopmentButton: 'vn-claim-development > vn-vertical > vn-card > vn-vertical > vn-one > vn-icon-button > button > vn-icon',
firstDeleteDevelopmentButton: 'vn-claim-development > vn-vertical > vn-card > vn-vertical > form > vn-horizontal:nth-child(2) > vn-icon-button > button > vn-icon',
2020-02-03 14:55:11 +00:00
firstClaimReason: 'vn-claim-development vn-horizontal:nth-child(1) vn-autocomplete[ng-model="claimDevelopment.claimReasonFk"]',
firstClaimResult: 'vn-claim-development vn-horizontal:nth-child(1) vn-autocomplete[ng-model="claimDevelopment.claimResultFk"]',
firstClaimResponsible: 'vn-claim-development vn-horizontal:nth-child(1) vn-autocomplete[ng-model="claimDevelopment.claimResponsibleFk"]',
firstClaimWorker: 'vn-claim-development vn-horizontal:nth-child(1) vn-autocomplete[ng-model="claimDevelopment.workerFk"]',
firstClaimRedelivery: 'vn-claim-development vn-horizontal:nth-child(1) vn-autocomplete[ng-model="claimDevelopment.claimRedeliveryFk"]',
secondClaimReason: 'vn-claim-development vn-horizontal:nth-child(2) vn-autocomplete[ng-model="claimDevelopment.claimReasonFk"]',
secondClaimResult: 'vn-claim-development vn-horizontal:nth-child(2) vn-autocomplete[ng-model="claimDevelopment.claimResultFk"]',
secondClaimResponsible: 'vn-claim-development vn-horizontal:nth-child(2) vn-autocomplete[ng-model="claimDevelopment.claimResponsibleFk"]',
secondClaimWorker: 'vn-claim-development vn-horizontal:nth-child(2) vn-autocomplete[ng-model="claimDevelopment.workerFk"]',
secondClaimRedelivery: 'vn-claim-development vn-horizontal:nth-child(2) vn-autocomplete[ng-model="claimDevelopment.claimRedeliveryFk"]',
2019-12-11 13:14:44 +00:00
saveDevelopmentButton: 'button[type=submit]'
2019-01-15 07:33:19 +00:00
},
2019-02-25 10:47:28 +00:00
claimAction: {
importClaimButton: 'vn-claim-action vn-button[label="Import claim"]',
importTicketButton: 'vn-claim-action vn-button[label="Import ticket"]',
2019-09-30 09:30:54 +00:00
secondImportableTicket: '.vn-popover.shown .content > div > vn-table > div > vn-tbody > vn-tr:nth-child(2)',
2019-10-09 22:47:29 +00:00
firstLineDestination: 'vn-claim-action vn-tr:nth-child(1) vn-autocomplete[ng-model="saleClaimed.claimDestinationFk"]',
secondLineDestination: 'vn-claim-action vn-tr:nth-child(2) vn-autocomplete[ng-model="saleClaimed.claimDestinationFk"]',
2019-02-25 10:47:28 +00:00
firstDeleteLine: 'vn-claim-action vn-tr:nth-child(1) vn-icon-button[icon="delete"]',
2020-06-03 12:46:58 +00:00
isPaidWithManaCheckbox: 'vn-claim-action vn-check[ng-model="$ctrl.claim.isChargedToMana"]'
2019-02-25 10:47:28 +00:00
},
2019-01-09 12:49:37 +00:00
ordersIndex: {
2019-10-23 15:38:35 +00:00
searchResult: 'vn-order-index vn-card > vn-table > div > vn-tbody > a.vn-tr',
firstSearchResultTotal: 'vn-order-index vn-card > vn-table > div > vn-tbody vn-tr vn-td:nth-child(9)',
2019-04-26 12:15:37 +00:00
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)',
2019-11-10 13:13:55 +00:00
searchButton: 'vn-searchbar vn-icon[icon="search"]',
advancedSearchButton: 'vn-order-search-panel vn-submit[label="Search"]',
openAdvancedSearch: 'vn-searchbar vn-icon[icon="arrow_drop_down"]',
advancedSearchShowEmptyCheckbox: 'vn-order-search-panel vn-check[label="Show empty"]',
2019-12-11 13:14:44 +00:00
createOrderButton: 'vn-float-button',
2019-01-09 12:49:37 +00:00
},
2019-08-29 11:16:38 +00:00
orderDescriptor: {
returnToModuleIndexButton: 'vn-order-descriptor a[ui-sref="order.index"]',
2019-10-30 15:57:14 +00:00
acceptNavigationButton: '.vn-confirm.shown button[response=accept]'
2019-08-29 11:16:38 +00:00
},
2019-01-09 12:49:37 +00:00
createOrderView: {
2020-02-03 14:55:11 +00:00
client: 'vn-autocomplete[label="Client"]',
agency: 'vn-autocomplete[label="Agency"]',
landedDatePicker: 'vn-date-picker[label="Landed"]',
2019-12-11 13:14:44 +00:00
createButton: 'button[type=submit]',
2019-04-26 12:15:37 +00:00
cancelButton: 'vn-button[href="#!/client/index"]'
2019-01-09 12:49:37 +00:00
},
2020-03-03 09:26:16 +00:00
orderSummary: {
header: 'vn-order-summary h5',
id: 'vn-order-summary vn-one:nth-child(1) > vn-label-value:nth-child(1) span',
alias: 'vn-order-summary vn-one:nth-child(1) > vn-label-value:nth-child(2) span',
consignee: 'vn-order-summary vn-one:nth-child(2) > vn-label-value:nth-child(3) span',
subtotal: 'vn-order-summary vn-one.taxes > p:nth-child(1)',
vat: 'vn-order-summary vn-one.taxes > p:nth-child(2)',
total: 'vn-order-summary vn-one.taxes > p:nth-child(3)',
sale: 'vn-order-summary vn-tbody > vn-tr',
},
2018-11-15 13:15:34 +00:00
orderCatalog: {
plantRealmButton: 'vn-order-catalog > vn-side-menu vn-icon[icon="icon-plant"]',
2020-02-03 14:55:11 +00:00
type: 'vn-autocomplete[data="$ctrl.itemTypes"]',
2020-02-19 10:57:39 +00:00
itemId: 'vn-order-catalog > vn-side-menu vn-textfield[vn-id="itemId"]',
itemTagValue: 'vn-order-catalog > vn-side-menu vn-datalist[vn-id="search"]',
openTagSearch: 'vn-order-catalog > vn-side-menu > div > vn-vertical > vn-datalist[vn-id="search"] .append i',
2020-02-03 14:55:11 +00:00
tag: 'vn-order-catalog-search-panel vn-autocomplete[ng-model="filter.tagFk"]',
tagValue: 'vn-order-catalog-search-panel vn-textfield[ng-model="filter.value"]',
2019-10-18 19:36:30 +00:00
searchTagButton: 'vn-order-catalog-search-panel button[type=submit]',
2020-01-30 12:53:14 +00:00
thirdFilterRemoveButton: 'vn-order-catalog > vn-side-menu .chips > vn-chip:nth-child(3) vn-icon[icon=cancel]',
fourthFilterRemoveButton: 'vn-order-catalog > vn-side-menu .chips > vn-chip:nth-child(4) vn-icon[icon=cancel]',
2019-01-09 12:49:37 +00:00
},
orderBasicData: {
2020-02-03 14:55:11 +00:00
client: 'vn-autocomplete[label="Client"]',
address: 'vn-autocomplete[label="Address"]',
agency: 'vn-autocomplete[label="Agency"]',
observation: 'vn-textarea[label="Observation"]',
2019-10-18 19:36:30 +00:00
saveButton: `button[type=submit]`,
2019-10-30 15:57:14 +00:00
acceptButton: '.vn-confirm.shown button[response="accept"]'
2018-11-15 13:15:34 +00:00
},
orderLine: {
orderSubtotal: 'vn-order-line .header :first-child',
firstLineDeleteButton: 'vn-order-line vn-tbody > vn-tr:nth-child(1) vn-icon[icon="delete"]',
confirmOrder: 'vn-order-line vn-float-button',
2019-10-30 15:57:14 +00:00
confirmButton: '.vn-confirm.shown button[response="accept"]',
},
2019-03-29 15:29:18 +00:00
routeIndex: {
addNewRouteButton: 'vn-route-index > a[ui-sref="route.create"]'
},
createRouteView: {
2020-02-03 14:55:11 +00:00
worker: 'vn-route-create vn-autocomplete[ng-model="$ctrl.route.workerFk"]',
2019-10-09 22:47:29 +00:00
createdDatePicker: 'vn-route-create vn-date-picker[ng-model="$ctrl.route.created"]',
2020-02-03 14:55:11 +00:00
vehicleAuto: 'vn-route-create vn-autocomplete[ng-model="$ctrl.route.vehicleFk"]',
agency: 'vn-route-create vn-autocomplete[ng-model="$ctrl.route.agencyModeFk"]',
description: 'vn-route-create [ng-model="$ctrl.route.description"]',
2019-10-18 19:36:30 +00:00
submitButton: 'vn-route-create button[type=submit]'
2019-03-29 15:29:18 +00:00
},
2019-07-01 11:41:38 +00:00
routeDescriptor: {
volume: 'vn-route-descriptor vn-label-value[label="Volume"] > section > span'
},
2019-03-29 15:29:18 +00:00
routeSummary: {
2020-02-12 13:36:05 +00:00
header: 'vn-route-summary > vn-card > h5',
routeId: 'vn-route-summary > vn-card > vn-horizontal > vn-one:nth-child(1) > vn-label-value:nth-child(1) > section > span',
cost: 'vn-route-summary vn-label-value[label="Cost"]',
firstTicketID: 'vn-route-summary vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(2) > span',
firstTicketDescriptor: '.vn-popover.shown vn-ticket-descriptor',
firstAlias: 'vn-route-summary vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(3) > span',
firstClientDescriptor: '.vn-popover.shown vn-client-descriptor',
2019-03-29 15:29:18 +00:00
},
2019-03-25 09:07:10 +00:00
routeBasicData: {
2020-02-03 14:55:11 +00:00
worker: 'vn-route-basic-data vn-autocomplete[ng-model="$ctrl.route.workerFk"]',
vehicle: 'vn-route-basic-data vn-autocomplete[ng-model="$ctrl.route.vehicleFk"]',
kmStart: 'vn-route-basic-data vn-input-number[ng-model="$ctrl.route.kmStart"]',
kmEnd: 'vn-route-basic-data vn-input-number[ng-model="$ctrl.route.kmEnd"]',
createdDate: 'vn-route-basic-data vn-date-picker[ng-model="$ctrl.route.created"]',
startedHour: 'vn-route-basic-data vn-input-time[ng-model="$ctrl.route.started"]',
finishedHour: 'vn-route-basic-data vn-input-time[ng-model="$ctrl.route.finished"]',
2019-10-18 19:36:30 +00:00
saveButton: 'vn-route-basic-data button[type=submit]'
2019-04-08 13:38:47 +00:00
},
routeTickets: {
firstTicketPriority: 'vn-route-tickets vn-tr:nth-child(1) vn-textfield[ng-model="ticket.priority"]',
secondTicketPriority: 'vn-route-tickets vn-tr:nth-child(2) vn-textfield[ng-model="ticket.priority"]',
thirdTicketPriority: 'vn-route-tickets vn-tr:nth-child(3) vn-textfield[ng-model="ticket.priority"]',
fourthTicketPriority: 'vn-route-tickets vn-tr:nth-child(4) vn-textfield[ng-model="ticket.priority"]',
eleventhTicketPriority: 'vn-route-tickets vn-tr:nth-child(11) vn-textfield[ng-model="ticket.priority"]',
firstTicketCheckbox: 'vn-route-tickets vn-tr:nth-child(1) vn-check',
2019-04-08 13:38:47 +00:00
buscamanButton: 'vn-route-tickets vn-button[icon="icon-buscaman"]',
firstTicketDeleteButton: 'vn-route-tickets vn-tr:nth-child(1) vn-icon[icon="delete"]',
2019-10-30 15:57:14 +00:00
confirmButton: '.vn-confirm.shown button[response="accept"]'
2019-06-04 05:57:01 +00:00
},
2020-03-02 14:37:17 +00:00
workerSummary: {
header: 'vn-worker-summary h5',
id: 'vn-worker-summary vn-one:nth-child(1) > vn-label-value:nth-child(2) > section > span',
email: 'vn-worker-summary vn-one:nth-child(1) > vn-label-value:nth-child(3) > section > span',
department: 'vn-worker-summary vn-one:nth-child(1) > vn-label-value:nth-child(4) > section > span',
userId: 'vn-worker-summary vn-one:nth-child(2) > vn-label-value:nth-child(2) > section > span',
userName: 'vn-worker-summary vn-one:nth-child(2) > vn-label-value:nth-child(3) > section > span',
role: 'vn-worker-summary vn-one:nth-child(2) > vn-label-value:nth-child(4) > section > span',
extension: 'vn-worker-summary vn-one:nth-child(2) > vn-label-value:nth-child(5) > section > span',
},
2020-02-07 09:34:24 +00:00
workerBasicData: {
name: 'vn-worker-basic-data vn-textfield[ng-model="$ctrl.worker.firstName"]',
surname: 'vn-worker-basic-data vn-textfield[ng-model="$ctrl.worker.lastName"]',
phone: 'vn-worker-basic-data vn-textfield[ng-model="$ctrl.worker.phone"]',
saveButton: 'vn-worker-basic-data button[type=submit]'
},
2019-06-04 05:57:01 +00:00
workerPbx: {
2020-02-03 14:55:11 +00:00
extension: 'vn-worker-pbx vn-textfield[ng-model="$ctrl.worker.sip.extension"]',
2019-10-18 19:36:30 +00:00
saveButton: 'vn-worker-pbx button[type=submit]'
2019-06-04 05:57:01 +00:00
},
workerTimeControl: {
2020-02-03 14:55:11 +00:00
timeDialog: '.vn-dialog.shown vn-input-time[ng-model="$ctrl.newTime"]',
2019-10-23 15:38:35 +00:00
mondayAddTimeButton: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(1) > vn-icon-button',
tuesdayAddTimeButton: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(2) > vn-icon-button',
wednesdayAddTimeButton: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(3) > vn-icon-button',
thursdayAddTimeButton: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(4) > vn-icon-button',
fridayAddTimeButton: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(5) > vn-icon-button',
saturdayAddTimeButton: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(6) > vn-icon-button',
sundayAddTimeButton: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(7) > vn-icon-button',
2019-11-14 13:20:05 +00:00
firstEntryOfMonday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > section:nth-child(1) > vn-chip > div',
firstEntryOfTuesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > section:nth-child(1) > vn-chip > div',
firstEntryOfWednesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(3) > section:nth-child(1) > vn-chip > div',
firstEntryOfThursday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(4) > section:nth-child(1) > vn-chip > div',
firstEntryOfFriday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(5) > section:nth-child(1) > vn-chip > div',
firstEntryOfSaturday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(6) > section:nth-child(1) > vn-chip > div',
firstEntryOfSunday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(7) > section:nth-child(1) > vn-chip > div',
secondEntryOfMonday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > section:nth-child(2) > vn-chip > div',
secondEntryOfTuesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > section:nth-child(2) > vn-chip > div',
secondEntryOfWednesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(3) > section:nth-child(2) > vn-chip > div',
secondEntryOfThursday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(4) > section:nth-child(2) > vn-chip > div',
secondEntryOfFriday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(5) > section:nth-child(2) > vn-chip > div',
secondEntryOfSaturday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(6) > section:nth-child(2) > vn-chip > div',
secondEntryOfSunday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(7) > section:nth-child(2) > vn-chip > div',
thirdEntryOfMonday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > section:nth-child(3) > vn-chip > div',
thirdEntryOfMondayDelete: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > section:nth-child(3) > vn-chip > vn-icon[icon="cancel"]',
thirdEntryOfTuesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > section:nth-child(3) > vn-chip > div',
thirdEntryOfWednesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(3) > section:nth-child(3) > vn-chip > div',
thirdEntryOfThursday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(4) > section:nth-child(3) > vn-chip > div',
thirdEntryOfFriday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(5) > section:nth-child(3) > vn-chip > div',
thirdEntryOfSaturday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(6) > section:nth-child(3) > vn-chip > div',
thirdEntryOfSunday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(7) > section:nth-child(3) > vn-chip > div',
fourthEntryOfMonday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > section:nth-child(4) > vn-chip > div',
fourthEntryOfTuesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > section:nth-child(4) > vn-chip > div',
fourthEntryOfWednesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(3) > section:nth-child(4) > vn-chip > div',
fourthEntryOfThursday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(4) > section:nth-child(4) > vn-chip > div',
fourthEntryOfFriday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(5) > section:nth-child(4) > vn-chip > div',
fourthEntryOfSaturday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(6) > section:nth-child(4) > vn-chip > div',
fourthEntryOfSunday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(7) > section:nth-child(4) > vn-chip > div',
2019-10-23 15:38:35 +00:00
mondayWorkedHours: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(1)',
tuesdayWorkedHours: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(2)',
wednesdayWorkedHours: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(3)',
thursdayWorkedHours: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(4)',
fridayWorkedHours: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(5)',
saturdayWorkedHours: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(6)',
sundayWorkedHours: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(7)',
weekWorkedHours: 'vn-worker-time-control vn-side-menu vn-label-value > section > span',
nextMonthButton: 'vn-worker-time-control vn-side-menu vn-calendar vn-button[icon=keyboard_arrow_right]',
2019-10-23 16:39:44 +00:00
secondWeekDay: 'vn-worker-time-control vn-side-menu vn-calendar .day:nth-child(8) > .day-number',
2020-05-06 12:38:09 +00:00
navigateBackToIndex: 'vn-worker-descriptor [name="goToModuleIndex"]',
2019-11-14 13:20:05 +00:00
acceptDeleteDialog: '.vn-confirm.shown button[response="accept"]'
},
invoiceOutIndex: {
2020-02-03 14:55:11 +00:00
topbarSearch: 'vn-searchbar',
2019-11-10 13:13:55 +00:00
searchButton: 'vn-searchbar vn-icon[icon="search"]',
2019-10-23 15:38:35 +00:00
searchResult: 'vn-invoice-out-index vn-card > vn-table > div > vn-tbody > a.vn-tr',
},
invoiceOutDescriptor: {
2020-05-06 12:38:09 +00:00
moreMenu: 'vn-invoice-out-descriptor vn-icon-button[icon=more_vert]',
moreMenuDeleteInvoiceOut: '.vn-menu [name="deleteInvoice"]',
moreMenuBookInvoiceOut: '.vn-menu [name="bookInvoice"]',
moreMenuShowInvoiceOutPdf: '.vn-menu [name="showInvoicePdf"]',
2019-10-30 15:57:14 +00:00
acceptDeleteButton: '.vn-confirm.shown button[response="accept"]',
acceptBookingButton: '.vn-confirm.shown button[response="accept"]'
},
invoiceOutSummary: {
2020-02-07 14:42:11 +00:00
bookedLabel: 'vn-invoice-out-summary > vn-card > vn-horizontal > vn-one > vn-label-value:nth-child(4) > section > span',
company: 'vn-invoice-out-summary vn-label-value[label="Company"]',
taxOne: 'vn-invoice-out-summary > vn-card > vn-horizontal > vn-two > vn-table > div > vn-tbody > vn-tr:nth-child(1)',
taxTwo: 'vn-invoice-out-summary > vn-card > vn-horizontal > vn-two > vn-table > div > vn-tbody > vn-tr:nth-child(2)',
ticketOne: 'vn-invoice-out-summary > vn-card > vn-horizontal > vn-auto > vn-table > div > vn-tbody > vn-tr:nth-child(1)',
ticketTwo: 'vn-invoice-out-summary > vn-card > vn-horizontal > vn-auto > vn-table > div > vn-tbody > vn-tr:nth-child(2)'
},
2020-02-28 15:49:39 +00:00
travelBasicDada: {
reference: 'vn-travel-basic-data vn-textfield[ng-model="$ctrl.travel.ref"]',
agency: 'vn-travel-basic-data vn-autocomplete[ng-model="$ctrl.travel.agencyModeFk"]',
shippingDate: 'vn-travel-basic-data vn-date-picker[ng-model="$ctrl.travel.shipped"]',
deliveryDate: 'vn-travel-basic-data vn-date-picker[ng-model="$ctrl.travel.landed"]',
outputWarehouse: 'vn-travel-basic-data vn-autocomplete[ng-model="$ctrl.travel.warehouseOutFk"]',
inputWarehouse: 'vn-travel-basic-data vn-autocomplete[ng-model="$ctrl.travel.warehouseInFk"]',
delivered: 'vn-travel-basic-data vn-check[ng-model="$ctrl.travel.isDelivered"]',
received: 'vn-travel-basic-data vn-check[ng-model="$ctrl.travel.isReceived"]',
save: 'vn-travel-basic-data vn-submit[label="Save"]',
undoChanges: 'vn-travel-basic-data vn-button[label="Undo changes"]'
},
travelLog: {
2020-02-28 15:58:21 +00:00
firstLogFirstTD: 'vn-travel-log vn-tbody > vn-tr > vn-td:nth-child(1) > div'
2020-02-28 15:49:39 +00:00
},
travelThermograph: {
add: 'vn-travel-thermograph-index vn-float-button[icon="add"]',
addThermographIcon: 'vn-travel-thermograph-create vn-autocomplete vn-icon[icon="add_circle"]',
newThermographId: 'vn-textfield[ng-model="$ctrl.newThermograph.thermographId"]',
newThermographModel: 'vn-autocomplete[ng-model="$ctrl.newThermograph.model"]',
newThermographWarehouse: 'vn-autocomplete[ng-model="$ctrl.newThermograph.warehouseId"]',
newThermographTemperature: 'vn-autocomplete[ng-model="$ctrl.newThermograph.temperature"]',
createThermographButton: 'form button[response="accept"]',
thermographID: 'vn-travel-thermograph-create vn-autocomplete[ng-model="$ctrl.dms.thermographId"]',
2020-03-11 08:15:23 +00:00
uploadIcon: 'vn-travel-thermograph-create vn-icon[icon="icon-attach"]',
createdThermograph: 'vn-travel-thermograph-index vn-tbody > vn-tr',
upload: 'vn-travel-thermograph-create button[type=submit]'
2020-02-19 09:04:29 +00:00
},
2020-02-25 07:24:54 +00:00
zoneBasicData: {
2020-02-19 09:04:29 +00:00
name: 'vn-zone-basic-data vn-textfield[ng-model="$ctrl.zone.name"]',
agency: 'vn-zone-basic-data vn-autocomplete[ng-model="$ctrl.zone.agencyModeFk"]',
maxVolume: 'vn-zone-basic-data vn-input-number[ng-model="$ctrl.zone.m3Max"]',
travelingDays: 'vn-zone-basic-data vn-input-number[ng-model="$ctrl.zone.travelingDays"]',
closing: 'vn-zone-basic-data vn-input-time[ng-model="$ctrl.zone.hour"]',
price: 'vn-zone-basic-data vn-input-number[ng-model="$ctrl.zone.price"]',
bonus: 'vn-zone-basic-data vn-input-number[ng-model="$ctrl.zone.bonus"]',
inflation: 'vn-zone-basic-data vn-input-number[ng-model="$ctrl.zone.inflation"]',
volumetric: 'vn-zone-basic-data vn-check[ng-model="$ctrl.zone.isVolumetric"]',
saveButton: 'vn-zone-basic-data vn-submit > button',
2020-02-24 13:34:36 +00:00
},
entrySummary: {
header: 'vn-entry-summary > vn-card > h5',
reference: 'vn-entry-summary vn-label-value[label="Reference"]',
confirmed: 'vn-entry-summary vn-check[label="Confirmed"]',
2020-03-02 12:16:46 +00:00
},
entryDescriptor: {
2020-05-06 12:38:09 +00:00
agency: 'vn-entry-descriptor div.body vn-label-value:nth-child(2) span',
2020-05-08 17:56:39 +00:00
travelsQuicklink: 'vn-entry-descriptor vn-quick-link[icon="local_airport"] > a',
entriesQuicklink: 'vn-entry-descriptor vn-quick-link[icon="icon-entry"] > a'
2019-03-08 13:46:01 +00:00
}
2017-09-15 10:24:37 +00:00
};