2017-09-15 10:24:37 +00:00
|
|
|
// eslint max-len: ["error", 500]
|
|
|
|
// eslint key-spacing: ["error", 500]
|
2017-11-08 14:43:34 +00:00
|
|
|
import components from './components_selectors.js';
|
2017-11-07 08:09:59 +00:00
|
|
|
|
2017-09-15 10:24:37 +00:00
|
|
|
export default {
|
2017-09-17 16:09:59 +00:00
|
|
|
login: {
|
2017-11-07 08:09:59 +00:00
|
|
|
textFieldInput: `${components.vnTextfield}`,
|
|
|
|
submitButton: `${components.vnSubmit}`
|
2017-09-17 16:09:59 +00:00
|
|
|
},
|
|
|
|
globalItems: {
|
2017-11-07 08:09:59 +00:00
|
|
|
topBar: `${components.vnTopbar}`,
|
|
|
|
logOutButton: `${components.vnIcon}[icon="exit_to_app"]`,
|
2017-10-29 14:49:44 +00:00
|
|
|
snackbarIsActive: '.mdl-snackbar--active > .mdl-snackbar__text',
|
2017-11-07 08:09:59 +00:00
|
|
|
applicationsMenuButton: `${components.vnIcon}[icon="apps"]`,
|
|
|
|
applicationsMenuVisible: `${components.vnMainMenu} .is-visible > div`,
|
|
|
|
clientsButton: `${components.vnMainMenu} > div > ul > li:nth-child(1)`
|
2017-09-17 16:09:59 +00:00
|
|
|
},
|
|
|
|
moduleAccessView: {
|
2017-11-07 08:09:59 +00:00
|
|
|
clientsSectionButton: `${components.vnModuleContainer}[ui-sref="clients"]`
|
2017-09-17 16:09:59 +00:00
|
|
|
},
|
2017-10-29 14:49:44 +00:00
|
|
|
clientsIndex: {
|
2017-11-07 08:09:59 +00:00
|
|
|
searchClientInput: `${components.vnTextfield}`,
|
|
|
|
searchButton: `${components.vnSearchBar} > vn-icon-button > button`,
|
|
|
|
searchResult: `${components.vnItemClient}:nth-child(1) > a`,
|
|
|
|
createClientButton: `${components.vnFloatButton}`
|
2017-09-17 16:09:59 +00:00
|
|
|
},
|
|
|
|
createClientView: {
|
2017-11-08 14:43:34 +00:00
|
|
|
name: `${components.vnTextfield}[name="name"]`,
|
|
|
|
taxNumber: `${components.vnTextfield}[name="fi"]`,
|
|
|
|
socialName: `${components.vnTextfield}[name="socialName"]`,
|
|
|
|
userName: `${components.vnTextfield}[name="userName"]`,
|
|
|
|
email: `${components.vnTextfield}[name="email"]`,
|
2017-11-07 08:09:59 +00:00
|
|
|
createButton: `${components.vnSubmit}`
|
2017-10-30 14:37:35 +00:00
|
|
|
},
|
|
|
|
basicData: {
|
2017-11-08 14:43:34 +00:00
|
|
|
basicDataButton: `${components.vnMenuItem}[ui-sref="clientCard.basicData"]`,
|
|
|
|
nameInput: `${components.vnTextfield}[name="name"]`,
|
|
|
|
taxNumberInput: `${components.vnTextfield}[name="fi"]`,
|
|
|
|
socialNameInput: `${components.vnTextfield}[name="socialName"]`,
|
|
|
|
phoneInput: `${components.vnTextfield}[name="phone"]`,
|
|
|
|
mobileInput: `${components.vnTextfield}[name="mobile"]`,
|
|
|
|
faxInput: `${components.vnTextfield}[name="fax"]`,
|
|
|
|
emailInput: `${components.vnTextfield}[name="email"]`,
|
|
|
|
salesPersonInput: `${components.vnAutocomplete}[field="$ctrl.client.salesPersonFk"]`,
|
|
|
|
channelInput: `${components.vnAutocomplete}[field="$ctrl.client.contactChannelFk"] > vn-vertical > ${components.vnTextfield}`,
|
|
|
|
channelMetropolisOption: `${components.vnAutocomplete}[field="$ctrl.client.contactChannelFk"] > vn-vertical > vn-drop-down > vn-vertical > vn-one:nth-child(2) > ul > li:nth-child(3)`,
|
|
|
|
saveButton: `${components.vnSubmit}`
|
2017-10-31 07:14:33 +00:00
|
|
|
},
|
|
|
|
fiscalData: {
|
2017-11-08 14:43:34 +00:00
|
|
|
fiscalDataButton: `${components.vnMenuItem}[ui-sref="clientCard.fiscalData"]`,
|
|
|
|
hasToInvoiceCheckboxLabel: `${components.vnCheck}[label='Has to invoice'] > label`,
|
|
|
|
hasToInvoiceCheckboxInput: `${components.vnCheck}[label='Has to invoice'] > label > label > input`,
|
|
|
|
invoiceByMailCheckboxLabel: `${components.vnCheck}[label='Invoice by mail'] > label`,
|
|
|
|
invoiceByMailCheckboxInput: `${components.vnCheck}[label='Invoice by mail'] > label > label > input`,
|
|
|
|
addressInput: `${components.vnTextfield}[name="street"]`,
|
2017-11-09 08:03:41 +00:00
|
|
|
cityInput: `${components.vnTextfield}[name="city"]`,
|
2017-11-09 12:29:51 +00:00
|
|
|
postcodeInput: `${components.vnTextfield}[name="postcode"]`,
|
2017-11-09 12:54:06 +00:00
|
|
|
provinceInput: `${components.vnAutocomplete}[field="$ctrl.client.provinceFk"] > vn-vertical > ${components.vnTextfield}`,
|
2017-11-09 13:47:09 +00:00
|
|
|
provinceFifthOption: `${components.vnAutocomplete}[field="$ctrl.client.provinceFk"] > vn-vertical > vn-drop-down > vn-vertical > vn-one:nth-child(1) > ul > li:nth-child(5)`,
|
|
|
|
countryInput: `${components.vnAutocomplete}[field="$ctrl.client.countryFk"] > vn-vertical > ${components.vnTextfield}`,
|
|
|
|
countryThirdOption: `${components.vnAutocomplete}[field="$ctrl.client.countryFk"] > vn-vertical > vn-drop-down > vn-vertical > vn-one:nth-child(2) > ul > li:nth-child(3)`,
|
2017-11-03 17:32:58 +00:00
|
|
|
saveButton: 'body > vn-app > vn-vertical > vn-vertical > vn-client-card > vn-horizontal > vn-auto > vn-vertical > vn-client-fiscal-data > form > vn-button-bar > vn-submit > input'
|
2017-09-15 10:24:37 +00:00
|
|
|
}
|
|
|
|
};
|