salix/e2e/helpers/selectors.js

28 lines
1.8 KiB
JavaScript
Raw Normal View History

2017-09-15 10:24:37 +00:00
// eslint max-len: ["error", 500]
// eslint key-spacing: ["error", 500]
export default {
login: {
2017-09-15 10:24:37 +00:00
textFieldInput: 'vn-textfield > div > input',
submitButton: 'vn-submit > input[type="submit"]'
},
globalItems: {
topBar: 'vn-topbar',
snackbar: 'body > vn-app > vn-vertical > vn-snackbar > div > div'
},
moduleAccessView: {
clientsSectionButton: 'body > vn-app > vn-vertical > vn-vertical > vn-home > vn-vertical > vn-module-container > a:nth-child(1)'
},
clientsView: {
createClientButton: 'body > vn-app > vn-vertical > vn-vertical > vn-client-index > div > a > vn-float-button > button'
},
createClientView: {
name: 'body > vn-app > vn-vertical > vn-vertical > vn-client-create > form > div > vn-card > div > vn-vertical > vn-horizontal:nth-child(2) > vn-textfield:nth-child(1) > div > input',
taxNumber: 'body > vn-app > vn-vertical > vn-vertical > vn-client-create > form > div > vn-card > div > vn-vertical > vn-horizontal:nth-child(2) > vn-textfield:nth-child(2) > div > input',
BusinessName: 'body > vn-app > vn-vertical > vn-vertical > vn-client-create > form > div > vn-card > div > vn-vertical > vn-horizontal:nth-child(2) > vn-textfield:nth-child(3) > div > input',
UserName: 'body > vn-app > vn-vertical > vn-vertical > vn-client-create > form > div > vn-card > div > vn-vertical > vn-horizontal:nth-child(2) > vn-textfield:nth-child(4) > div > input',
email: 'body > vn-app > vn-vertical > vn-vertical > vn-client-create > form > div > vn-card > div > vn-vertical > vn-horizontal:nth-child(2) > vn-textfield:nth-child(5) > div > input',
createButton: 'body > vn-app > vn-vertical > vn-vertical > vn-client-create > form > div > vn-button-bar > vn-button > button'
2017-09-15 10:24:37 +00:00
}
};