From 16333e6143c14bde6f939b52e70b53aeb956858e Mon Sep 17 00:00:00 2001 From: Gerard Date: Wed, 9 Jan 2019 13:49:37 +0100 Subject: [PATCH] updated selectors --- e2e/helpers/selectors.js | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js index b96ff7798..7df9af409 100644 --- a/e2e/helpers/selectors.js +++ b/e2e/helpers/selectors.js @@ -8,7 +8,9 @@ export default { 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"]` + 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"]`, @@ -433,7 +435,31 @@ export default { detailsButton: `vn-left-menu a[ui-sref="claim.card.detail"]`, addItemButton: `vn-claim-detail a vn-float-button` }, + 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"]` + 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}` }, };