diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js index f81460d353..e653eb6412 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 d7f8e88f3e..7f8ed59977 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();