From 2bb17f4a006fca236c9be5ea2682a56cd9a07662 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Thu, 14 May 2020 17:15:54 +0200 Subject: [PATCH] Requested changes --- e2e/paths/06-claim/04_claim_action.spec.js | 3 +-- modules/claim/back/methods/claim/regularizeClaim.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/e2e/paths/06-claim/04_claim_action.spec.js b/e2e/paths/06-claim/04_claim_action.spec.js index 89b3f9c89..67c936898 100644 --- a/e2e/paths/06-claim/04_claim_action.spec.js +++ b/e2e/paths/06-claim/04_claim_action.spec.js @@ -1,7 +1,7 @@ import selectors from '../../helpers/selectors.js'; import getBrowser from '../../helpers/puppeteer'; -fdescribe('Claim action path', () => { +describe('Claim action path', () => { let browser; let page; @@ -66,7 +66,6 @@ fdescribe('Claim action path', () => { }); it('should check the "is paid with mana" checkbox', async() => { - // page.waitFor(3000); // can't use waitForNavigation here and needs more time than a single second to get the section ready... await page.waitToClick(selectors.claimAction.isPaidWithManaCheckbox); const message = await page.waitForSnackbar(); diff --git a/modules/claim/back/methods/claim/regularizeClaim.js b/modules/claim/back/methods/claim/regularizeClaim.js index 21a67123d..77e5f6504 100644 --- a/modules/claim/back/methods/claim/regularizeClaim.js +++ b/modules/claim/back/methods/claim/regularizeClaim.js @@ -104,7 +104,7 @@ module.exports = Self => { // Get sales person from claim client const salesPerson = claim.client().salesPerson(); - if (salesPerson) { + if (salesPerson && claim.hasToPickUp) { const origin = ctx.req.headers.origin; const message = $t('Claim will be picked', { claimId: claim.id,