Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into dev
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
commit
016f0e6d92
|
@ -582,7 +582,6 @@ export default {
|
||||||
secondTicketPriority: 'vn-route-tickets vn-tr:nth-child(2) vn-textfield[model="ticket.priority"] input',
|
secondTicketPriority: 'vn-route-tickets vn-tr:nth-child(2) vn-textfield[model="ticket.priority"] input',
|
||||||
thirdTicketPriority: 'vn-route-tickets vn-tr:nth-child(3) vn-textfield[model="ticket.priority"] input',
|
thirdTicketPriority: 'vn-route-tickets vn-tr:nth-child(3) vn-textfield[model="ticket.priority"] input',
|
||||||
fourthTicketPriority: 'vn-route-tickets vn-tr:nth-child(4) vn-textfield[model="ticket.priority"] input',
|
fourthTicketPriority: 'vn-route-tickets vn-tr:nth-child(4) vn-textfield[model="ticket.priority"] input',
|
||||||
fifthTicketPriority: 'vn-route-tickets vn-tr:nth-child(5) vn-textfield[model="ticket.priority"] input',
|
|
||||||
firstTicketCheckbox: 'vn-route-tickets vn-tr:nth-child(1) vn-check md-checkbox',
|
firstTicketCheckbox: 'vn-route-tickets vn-tr:nth-child(1) vn-check md-checkbox',
|
||||||
buscamanButton: 'vn-route-tickets vn-button[icon="icon-buscaman"]',
|
buscamanButton: 'vn-route-tickets vn-button[icon="icon-buscaman"]',
|
||||||
firstTicketDeleteButton: 'vn-route-tickets vn-tr:nth-child(1) vn-icon[icon="delete"]',
|
firstTicketDeleteButton: 'vn-route-tickets vn-tr:nth-child(1) vn-icon[icon="delete"]',
|
||||||
|
|
|
@ -7,19 +7,10 @@ describe('Route basic Data path', () => {
|
||||||
beforeAll(() => {
|
beforeAll(() => {
|
||||||
nightmare
|
nightmare
|
||||||
.loginAndModule('delivery', 'route')
|
.loginAndModule('delivery', 'route')
|
||||||
.accessToSearchResult(1)
|
.accessToSearchResult(2)
|
||||||
.accessToSection('route.card.tickets');
|
.accessToSection('route.card.tickets');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should modify the first ticket priority', async() => {
|
|
||||||
const result = await nightmare
|
|
||||||
.write(selectors.routeTickets.firstTicketPriority, 5)
|
|
||||||
.write('body', '\u000d') // simulates enter
|
|
||||||
.waitForLastSnackbar();
|
|
||||||
|
|
||||||
expect(result).toEqual('Data saved!');
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should now modify the first ticket priority', async() => {
|
it('should now modify the first ticket priority', async() => {
|
||||||
const result = await nightmare
|
const result = await nightmare
|
||||||
.write(selectors.routeTickets.firstTicketPriority, 4)
|
.write(selectors.routeTickets.firstTicketPriority, 4)
|
||||||
|
@ -85,13 +76,6 @@ describe('Route basic Data path', () => {
|
||||||
expect(result).toEqual('4');
|
expect(result).toEqual('4');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should confirm the fifth ticket priority', async() => {
|
|
||||||
const result = await nightmare
|
|
||||||
.waitToGetProperty(selectors.routeTickets.fifthTicketPriority, 'value');
|
|
||||||
|
|
||||||
expect(result).toEqual('5');
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should confirm the buscamanButton is disabled', async() => {
|
it('should confirm the buscamanButton is disabled', async() => {
|
||||||
const result = await nightmare
|
const result = await nightmare
|
||||||
.evaluate(selector => {
|
.evaluate(selector => {
|
||||||
|
@ -115,7 +99,7 @@ describe('Route basic Data path', () => {
|
||||||
const result = await nightmare
|
const result = await nightmare
|
||||||
.countElement('vn-route-tickets vn-textfield[model="ticket.priority"]');
|
.countElement('vn-route-tickets vn-textfield[model="ticket.priority"]');
|
||||||
|
|
||||||
expect(result).toEqual(5);
|
expect(result).toEqual(4);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should delete the first ticket in route', async() => {
|
it('should delete the first ticket in route', async() => {
|
||||||
|
@ -131,6 +115,6 @@ describe('Route basic Data path', () => {
|
||||||
const result = await nightmare
|
const result = await nightmare
|
||||||
.countElement('vn-route-tickets vn-textfield[model="ticket.priority"]');
|
.countElement('vn-route-tickets vn-textfield[model="ticket.priority"]');
|
||||||
|
|
||||||
expect(result).toEqual(4);
|
expect(result).toEqual(3);
|
||||||
});
|
});
|
||||||
});
|
});
|
Loading…
Reference in New Issue