From ca19293726e8b0a228880458bc4f23a7f2a5aa75 Mon Sep 17 00:00:00 2001 From: Joan Date: Wed, 11 Jul 2018 11:03:34 +0200 Subject: [PATCH] e2e ticket selector fix --- e2e/helpers/selectors.js | 8 ++++---- e2e/paths/client-module/04_edit_pay_method.spec.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js index f2891d7850..247f8b71a9 100644 --- a/e2e/helpers/selectors.js +++ b/e2e/helpers/selectors.js @@ -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"]`, diff --git a/e2e/paths/client-module/04_edit_pay_method.spec.js b/e2e/paths/client-module/04_edit_pay_method.spec.js index 7d830d2019..d0ca3f2edc 100644 --- a/e2e/paths/client-module/04_edit_pay_method.spec.js +++ b/e2e/paths/client-module/04_edit_pay_method.spec.js @@ -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(); }); });