From d5ac428cb7efd04f19db8a190fc933dbd39922cb Mon Sep 17 00:00:00 2001 From: Carlos Jimenez Ruiz Date: Fri, 1 Mar 2019 11:30:59 +0100 Subject: [PATCH] #860 E2E client/client/src/web-payment/index.js --- e2e/helpers/selectors.js | 2 +- e2e/paths/client-module/16_web_payment.spec.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js index f81460d35..e653eb641 100644 --- a/e2e/helpers/selectors.js +++ b/e2e/helpers/selectors.js @@ -167,7 +167,7 @@ export default { }, webPayment: { confirmFirstPaymentButton: 'vn-client-web-payment vn-tr:nth-child(1) vn-icon-button[icon="done_all"]', - firstPaymentConfirmed: 'vn-client-web-payment vn-tr:nth-child(1) vn-icon[icon="check"]' + firstPaymentConfirmed: 'vn-client-web-payment vn-tr:nth-child(1) vn-icon[icon="check"][aria-hidden="false"]' }, itemsIndex: { goBackToModuleIndexButton: `vn-ticket-descriptor a[href="#!/ticket/index"]`, diff --git a/e2e/paths/client-module/16_web_payment.spec.js b/e2e/paths/client-module/16_web_payment.spec.js index d7f8e88f3..7f8ed5997 100644 --- a/e2e/paths/client-module/16_web_payment.spec.js +++ b/e2e/paths/client-module/16_web_payment.spec.js @@ -2,14 +2,14 @@ import selectors from '../../helpers/selectors.js'; import createNightmare from '../../helpers/nightmare'; // #860 E2E client/client/src/web-payment/index.js missing fixtures for another client -xdescribe('Client web Payment', () => { +describe('Client web Payment', () => { const nightmare = createNightmare(); describe('as employee', () => { beforeAll(() => { nightmare .loginAndModule('employee', 'client') - .accessToSearchResult('Bruce Wayne') + .accessToSearchResult('Tony Stark') .accessToSection('client.card.webPayment'); }); @@ -25,13 +25,14 @@ xdescribe('Client web Payment', () => { beforeAll(() => { nightmare .loginAndModule('administrative', 'client') - .accessToSearchResult('Bruce Wayne') + .accessToSearchResult('Tony Stark') .accessToSection('client.card.webPayment'); }); it('should be able to confirm payments', async() => { let exists = await nightmare .waitToClick(selectors.webPayment.confirmFirstPaymentButton) + .wait(selectors.webPayment.firstPaymentConfirmed) .exists(selectors.webPayment.firstPaymentConfirmed); expect(exists).toBeTruthy();