salix/e2e/paths/05-ticket-module/08_components.spec.js

27 lines
853 B
JavaScript
Raw Normal View History

2018-10-25 14:44:03 +00:00
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('id:1')
.accessToSection('ticket.card.components');
2018-10-25 14:44:03 +00:00
});
2019-01-11 14:06:18 +00:00
it('should confirm the total base is correct', async() => {
2018-10-25 14:44:03 +00:00
const name = 'Base €';
const minLength = name.length;
const base = await nightmare
.waitPropertyLength(selectors.ticketComponents.base, 'innerText', minLength)
.waitToGetProperty(selectors.ticketComponents.base, 'innerText');
2018-10-25 14:44:03 +00:00
expect(base).toContain('Base');
expect(base.length).toBeGreaterThan(minLength);
});
});