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"]`
},
ticketsIndex: {
createTicketButton: `${components.vnFloatButton}`,
searchResult: `table > tbody > tr`,
searchTicketInput: `${components.vnTextfield}`,
searchButton: `vn-searchbar vn-icon-button[icon="search"]`
createTicketButton: `vn-ticket-index ${components.vnFloatButton}`,
searchResult: `vn-ticket-index vn-card > div > table > tbody > tr`,
searchTicketInput: `vn-ticket-index ${components.vnTextfield}`,
searchButton: `vn-ticket-index vn-searchbar vn-icon-button[icon="search"]`
},
ticketNotes: {
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
.evaluate(selector => {
return document.querySelector(selector).checked;
}, selectors.clientPayMethod.receivedCoreLCRCheckbox)
.then(value => {
expect(value).toBeFalsy();
expect(value).toBeTruthy();
});
});