Changes made
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
0637302a0b
commit
e2391e5595
|
@ -72,26 +72,10 @@ describe('Claim action path', () => {
|
|||
expect(message.type).toBe('success');
|
||||
});
|
||||
|
||||
/* it('should check the "Pick up" checkbox', async() => {
|
||||
await page.waitToClick(selectors.claimAction.hasToPickUpCheckbox);
|
||||
const message = await page.waitForSnackbar();
|
||||
|
||||
expect(message.type).toBe('success');
|
||||
}); */
|
||||
|
||||
it('should confirm the "is paid with mana" is checked', async() => {
|
||||
await page.reloadSection('claim.card.action');
|
||||
const isPaidWithManaCheckbox = await page.checkboxState(selectors.claimAction.isPaidWithManaCheckbox);
|
||||
|
||||
expect(isPaidWithManaCheckbox).toBe('checked');
|
||||
});
|
||||
|
||||
/* it('should confirm the "is paid with mana" and "Pick up" checkbox are checked', async() => {
|
||||
await page.reloadSection('claim.card.action');
|
||||
const isPaidWithManaCheckbox = await page.checkboxState(selectors.claimAction.isPaidWithManaCheckbox);
|
||||
const hasToPickUpCheckbox = await page.checkboxState(selectors.claimAction.hasToPickUpCheckbox);
|
||||
|
||||
expect(isPaidWithManaCheckbox).toBe('checked');
|
||||
expect(hasToPickUpCheckbox).toBe('checked');
|
||||
}); */
|
||||
});
|
||||
|
|
|
@ -54,7 +54,7 @@ module.exports = Self => {
|
|||
|
||||
// Get sales person from claim client
|
||||
const salesPerson = claim.client().salesPerson();
|
||||
if (salesPerson && updatedClaim.hasToPickUp) {
|
||||
if (salesPerson && changedHasToPickUp && updatedClaim.hasToPickUp) {
|
||||
const origin = ctx.req.headers.origin;
|
||||
const message = $t('Claim will be picked', {
|
||||
claimId: claim.id,
|
||||
|
|
Loading…
Reference in New Issue