28 lines
853 B
JavaScript
28 lines
853 B
JavaScript
import selectors from '../../helpers/selectors';
|
|
import getBrowser from '../../helpers/puppeteer';
|
|
|
|
describe('Client mandate path', () => {
|
|
let browser;
|
|
let page;
|
|
beforeAll(async() => {
|
|
browser = await getBrowser();
|
|
page = browser.page;
|
|
await page.loginAndModule('salesPerson', 'client');
|
|
await page.accessToSearchResult('Petter Parker');
|
|
await page.accessToSection('client.card.mandate');
|
|
});
|
|
|
|
afterAll(async() => {
|
|
await browser.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');
|
|
});
|
|
});
|