26 lines
737 B
JavaScript
26 lines
737 B
JavaScript
import selectors from '../../helpers/selectors.js';
|
|
import getBrowser from '../../helpers/puppeteer';
|
|
|
|
describe('Account Connections path', () => {
|
|
let browser;
|
|
let page;
|
|
const account = 'sysadmin';
|
|
|
|
beforeAll(async() => {
|
|
browser = await getBrowser();
|
|
page = browser.page;
|
|
await page.loginAndModule(account, 'account');
|
|
await page.accessToSection('account.connections');
|
|
});
|
|
|
|
afterAll(async() => {
|
|
await browser.close();
|
|
});
|
|
|
|
it('should check this is the last connection', async() => {
|
|
const firstResult = await page.waitToGetProperty(selectors.accountConnections.firstConnection, 'innerText');
|
|
|
|
expect(firstResult).toContain(account);
|
|
});
|
|
});
|