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