3802-ticket_sale_mana #924
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#924
Loading…
Reference in New Issue
No description provided.
Delete Branch "3802-ticket_sale_mana"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -0,0 +1,2 @@
INSERT INTO `vn`.`component` (`name`,`typeFk`,`classRate`,`isRenewable`,`code`,`isRequired`)
VALUES ('maná reclamacion',7,4,0,'mana claim',0);
The column code should be in lowerCamelCase
@ -176,6 +176,7 @@ describe('Ticket Edit sale path', () => {
await page.waitToClick(selectors.ticketSales.firstSaleDiscount);
await page.waitForSelector(selectors.ticketSales.firstSaleDiscountInput);
await page.type(selectors.ticketSales.firstSaleDiscountInput, '50u000d');
since you added a click on a submit button on the next line, the u000d of this input is no longer needed.
@ -113,0 +130,4 @@
}
});
it('should update the discount if the salesPerson has mana and manaType = "mana claim"', async() => {
if the code gets updated to lowerCamelCase this line and the test should be updated to match the code.
also manaType doesn't seem to be correct, manaCode or manaComponentCode are more specifics
@ -25,1 +25,4 @@
required: true
},
{
arg: 'manaType',
manaCode
@ -64,2 +64,4 @@
}));
describe('manaType() setter/getter', () => {
it('should set the manaType data', () => {
Don't test angularjs basic functionalities like getters and setters, we test setters if there's logic to it.
@ -733,2 +743,4 @@
});
});
describe('save()', () => {
This test is testing the function's implementation, there's no logic worth a test here.
LGTM