e2e ticket selector fix
This commit is contained in:
parent
c2c4aa23cf
commit
ca19293726
|
@ -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"]`,
|
||||||
|
|
|
@ -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();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue