salix/e2e/paths/client-module/11_mandate.spec.js

23 lines
738 B
JavaScript

import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/nightmare';
describe('Client mandate path', () => {
const nightmare = createNightmare();
beforeAll(() => {
nightmare
.loginAndModule('salesPerson', 'client')
.accessToSearchResult('Petter Parker')
.accessToSection('client.card.mandate');
});
it('should confirm the client has a mandate of the CORE type', async () => {
const result = await nightmare
.waitToGetProperty(selectors.clientMandate.firstMandateText, 'innerText');
expect(result).toContain('1');
expect(result).toContain('VNL');
expect(result).toContain('CORE');
});
});