From e3090fc27671b6b32894d420908ea1f20db7ebbd Mon Sep 17 00:00:00 2001 From: carlosjr Date: Wed, 11 Nov 2020 16:54:27 +0100 Subject: [PATCH] e2e fixed --- e2e/helpers/selectors.js | 4 ++-- e2e/paths/04-item/13_request.spec.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js index c4f022e67..b94fbd221 100644 --- a/e2e/helpers/selectors.js +++ b/e2e/helpers/selectors.js @@ -272,9 +272,9 @@ export default { 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)', 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)', - 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"]' }, itemBasicData: { diff --git a/e2e/paths/04-item/13_request.spec.js b/e2e/paths/04-item/13_request.spec.js index 66cd7a0f5..19838883e 100644 --- a/e2e/paths/04-item/13_request.spec.js +++ b/e2e/paths/04-item/13_request.spec.js @@ -28,7 +28,7 @@ describe('Item request path', () => { 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'); expect(status).toContain('Accepted'); @@ -38,7 +38,7 @@ describe('Item request path', () => { await page.waitToClick(selectors.itemRequest.secondRequestDecline); await page.write(selectors.itemRequest.declineReason, 'Not quite as expected'); 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'); });