This commit is contained in:
parent
daa65e967f
commit
d5ac428cb7
|
@ -167,7 +167,7 @@ export default {
|
||||||
},
|
},
|
||||||
webPayment: {
|
webPayment: {
|
||||||
confirmFirstPaymentButton: 'vn-client-web-payment vn-tr:nth-child(1) vn-icon-button[icon="done_all"]',
|
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: {
|
itemsIndex: {
|
||||||
goBackToModuleIndexButton: `vn-ticket-descriptor a[href="#!/ticket/index"]`,
|
goBackToModuleIndexButton: `vn-ticket-descriptor a[href="#!/ticket/index"]`,
|
||||||
|
|
|
@ -2,14 +2,14 @@ import selectors from '../../helpers/selectors.js';
|
||||||
import createNightmare from '../../helpers/nightmare';
|
import createNightmare from '../../helpers/nightmare';
|
||||||
|
|
||||||
// #860 E2E client/client/src/web-payment/index.js missing fixtures for another client
|
// #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();
|
const nightmare = createNightmare();
|
||||||
|
|
||||||
describe('as employee', () => {
|
describe('as employee', () => {
|
||||||
beforeAll(() => {
|
beforeAll(() => {
|
||||||
nightmare
|
nightmare
|
||||||
.loginAndModule('employee', 'client')
|
.loginAndModule('employee', 'client')
|
||||||
.accessToSearchResult('Bruce Wayne')
|
.accessToSearchResult('Tony Stark')
|
||||||
.accessToSection('client.card.webPayment');
|
.accessToSection('client.card.webPayment');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -25,13 +25,14 @@ xdescribe('Client web Payment', () => {
|
||||||
beforeAll(() => {
|
beforeAll(() => {
|
||||||
nightmare
|
nightmare
|
||||||
.loginAndModule('administrative', 'client')
|
.loginAndModule('administrative', 'client')
|
||||||
.accessToSearchResult('Bruce Wayne')
|
.accessToSearchResult('Tony Stark')
|
||||||
.accessToSection('client.card.webPayment');
|
.accessToSection('client.card.webPayment');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should be able to confirm payments', async() => {
|
it('should be able to confirm payments', async() => {
|
||||||
let exists = await nightmare
|
let exists = await nightmare
|
||||||
.waitToClick(selectors.webPayment.confirmFirstPaymentButton)
|
.waitToClick(selectors.webPayment.confirmFirstPaymentButton)
|
||||||
|
.wait(selectors.webPayment.firstPaymentConfirmed)
|
||||||
.exists(selectors.webPayment.firstPaymentConfirmed);
|
.exists(selectors.webPayment.firstPaymentConfirmed);
|
||||||
|
|
||||||
expect(exists).toBeTruthy();
|
expect(exists).toBeTruthy();
|
||||||
|
|
Loading…
Reference in New Issue