3542-feat(ticket_sale): role restriction to create payBack #855
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#855
Loading…
Reference in New Issue
No description provided.
Delete Branch "3542-ticket_sale_payback"
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?
@ -207,6 +207,10 @@ describe('Ticket Edit sale path', () => {
});
it('should select the third sale and create a pay back', async() => {
await page.loginAndModule('salesAssistant', 'ticket');
would be better to split this test
@ -42,0 +45,4 @@
const isClaimManager = await Self.app.models.Account.hasRole(userId, 'claimManager');
const isSalesAssistant = await Self.app.models.Account.hasRole(userId, 'salesAssistant');
const checkRoles = isClaimManager || isSalesAssistant;
hasValidRole
isValidRole
canPerformSomeAction
hasEligibleRole
isEligible
try boolean names
@ -0,0 +26,4 @@
}
});
it('should throw error for not have privileges', async() => {
should throw an error if the user doesn't have privileges to create a pay back
3542-feat(ticket_sale): role restriction to create payBackto WIP: 3542-feat(ticket_sale): role restriction to create payBackWIP: 3542-feat(ticket_sale): role restriction to create payBackto 3542-feat(ticket_sale): role restriction to create payBackLGTM