27 lines
850 B
JavaScript
27 lines
850 B
JavaScript
import selectors from '../../helpers/selectors.js';
|
|
import createNightmare from '../../helpers/nightmare';
|
|
|
|
describe('Ticket List components path', () => {
|
|
const nightmare = createNightmare();
|
|
|
|
beforeAll(() => {
|
|
return nightmare
|
|
.loginAndModule('employee', 'ticket')
|
|
.accessToSearchResult('1')
|
|
.accessToSection('ticket.card.components');
|
|
});
|
|
|
|
it('should confirm the total base is correct', async() => {
|
|
const name = 'Base €';
|
|
const minLength = name.length;
|
|
|
|
const base = await nightmare
|
|
.waitPropertyLength(selectors.ticketComponents.base, 'innerText', minLength)
|
|
.waitToGetProperty(selectors.ticketComponents.base, 'innerText');
|
|
|
|
|
|
expect(base).toContain('Base');
|
|
expect(base.length).toBeGreaterThan(minLength);
|
|
});
|
|
});
|