Changes made
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-06-04 10:12:54 +02:00
parent 0637302a0b
commit e2391e5595
2 changed files with 1 additions and 17 deletions

View File

@ -72,26 +72,10 @@ describe('Claim action path', () => {
expect(message.type).toBe('success'); 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() => { it('should confirm the "is paid with mana" is checked', async() => {
await page.reloadSection('claim.card.action'); await page.reloadSection('claim.card.action');
const isPaidWithManaCheckbox = await page.checkboxState(selectors.claimAction.isPaidWithManaCheckbox); const isPaidWithManaCheckbox = await page.checkboxState(selectors.claimAction.isPaidWithManaCheckbox);
expect(isPaidWithManaCheckbox).toBe('checked'); 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');
}); */
}); });

View File

@ -54,7 +54,7 @@ module.exports = Self => {
// Get sales person from claim client // Get sales person from claim client
const salesPerson = claim.client().salesPerson(); const salesPerson = claim.client().salesPerson();
if (salesPerson && updatedClaim.hasToPickUp) { if (salesPerson && changedHasToPickUp && updatedClaim.hasToPickUp) {
const origin = ctx.req.headers.origin; const origin = ctx.req.headers.origin;
const message = $t('Claim will be picked', { const message = $t('Claim will be picked', {
claimId: claim.id, claimId: claim.id,