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'); }); });