e2e fixed

This commit is contained in:
Carlos Jimenez Ruiz 2020-11-11 16:54:27 +01:00
parent 9a8a32ee9b
commit e3090fc276
2 changed files with 4 additions and 4 deletions

View File

@ -272,9 +272,9 @@ export default {
firstRequestItemID: 'vn-item-request vn-tbody > vn-tr:nth-child(1) > vn-td-editable:nth-child(7)', firstRequestItemID: 'vn-item-request vn-tbody > vn-tr:nth-child(1) > vn-td-editable:nth-child(7)',
firstRequestQuantity: 'vn-item-request vn-tbody > vn-tr:nth-child(1) > vn-td-editable:nth-child(8)', firstRequestQuantity: 'vn-item-request vn-tbody > vn-tr:nth-child(1) > vn-td-editable:nth-child(8)',
firstRequestConcept: 'vn-item-request vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(9)', firstRequestConcept: 'vn-item-request vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(9)',
secondRequestStatus: 'vn-item-request vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(10)',
firstRequestStatus: 'vn-item-request vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(10)', firstRequestStatus: 'vn-item-request vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(10)',
secondRequestDecline: 'vn-item-request vn-tbody > vn-tr:nth-child(1) vn-icon-button[icon="thumb_down"]', secondRequestStatus: 'vn-item-request vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(10)',
secondRequestDecline: 'vn-item-request vn-tr:nth-child(2) vn-icon-button[icon="thumb_down"]',
declineReason: 'vn-textarea[ng-model="$ctrl.denyObservation"]' declineReason: 'vn-textarea[ng-model="$ctrl.denyObservation"]'
}, },
itemBasicData: { itemBasicData: {

View File

@ -28,7 +28,7 @@ describe('Item request path', () => {
expect(filledConcept).toContain('Melee weapon heavy shield 1x0.5m'); expect(filledConcept).toContain('Melee weapon heavy shield 1x0.5m');
}); });
it('should the status of the request should now be accepted', async() => { it('should check the status of the request should now be accepted', async() => {
let status = await page.waitToGetProperty(selectors.itemRequest.firstRequestStatus, 'innerText'); let status = await page.waitToGetProperty(selectors.itemRequest.firstRequestStatus, 'innerText');
expect(status).toContain('Accepted'); expect(status).toContain('Accepted');
@ -38,7 +38,7 @@ describe('Item request path', () => {
await page.waitToClick(selectors.itemRequest.secondRequestDecline); await page.waitToClick(selectors.itemRequest.secondRequestDecline);
await page.write(selectors.itemRequest.declineReason, 'Not quite as expected'); await page.write(selectors.itemRequest.declineReason, 'Not quite as expected');
await page.respondToDialog('accept'); await page.respondToDialog('accept');
let status = await page.waitToGetProperty(selectors.itemRequest.firstRequestStatus, 'innerText'); let status = await page.waitToGetProperty(selectors.itemRequest.secondRequestStatus, 'innerText');
expect(status).toContain('Denied'); expect(status).toContain('Denied');
}); });