e2e ticket selector fix

This commit is contained in:
Joan Sanchez 2018-07-11 11:03:34 +02:00
parent c2c4aa23cf
commit ca19293726
2 changed files with 6 additions and 6 deletions

View File

@ -275,10 +275,10 @@ export default {
barcode: `vn-item-summary vn-vertical[name="barcode"]` barcode: `vn-item-summary vn-vertical[name="barcode"]`
}, },
ticketsIndex: { ticketsIndex: {
createTicketButton: `${components.vnFloatButton}`, createTicketButton: `vn-ticket-index ${components.vnFloatButton}`,
searchResult: `table > tbody > tr`, searchResult: `vn-ticket-index vn-card > div > table > tbody > tr`,
searchTicketInput: `${components.vnTextfield}`, searchTicketInput: `vn-ticket-index ${components.vnTextfield}`,
searchButton: `vn-searchbar vn-icon-button[icon="search"]` searchButton: `vn-ticket-index vn-searchbar vn-icon-button[icon="search"]`
}, },
ticketNotes: { ticketNotes: {
notesButton: `vn-menu-item a[ui-sref="ticket.card.observation"]`, notesButton: `vn-menu-item a[ui-sref="ticket.card.observation"]`,

View File

@ -89,13 +89,13 @@ describe('Client', () => {
}); });
}); });
it('should confirm Received LCR checkbox is unchecked', () => { it('should confirm Received LCR checkbox is checked', () => {
return nightmare return nightmare
.evaluate(selector => { .evaluate(selector => {
return document.querySelector(selector).checked; return document.querySelector(selector).checked;
}, selectors.clientPayMethod.receivedCoreLCRCheckbox) }, selectors.clientPayMethod.receivedCoreLCRCheckbox)
.then(value => { .then(value => {
expect(value).toBeFalsy(); expect(value).toBeTruthy();
}); });
}); });