diff --git a/db/changes/10291-invoiceIn/00-ACL.sql b/db/changes/10291-invoiceIn/00-ACL.sql index b4067d1a3d..5a1cf68430 100644 --- a/db/changes/10291-invoiceIn/00-ACL.sql +++ b/db/changes/10291-invoiceIn/00-ACL.sql @@ -1,4 +1,5 @@ INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES ('Genus', '*', 'WRITE', 'ALLOW', 'ROLE', 'logisticBoss'), - ('Specie', '*', 'WRITE', 'ALLOW', 'ROLE', 'logisticBoss'); \ No newline at end of file + ('Specie', '*', 'WRITE', 'ALLOW', 'ROLE', 'logisticBoss'), + ('InvoiceOut', 'createPdf', 'WRITE', 'ALLOW', 'ROLE', 'invoicing'); diff --git a/e2e/paths/05-ticket/12_descriptor.spec.js b/e2e/paths/05-ticket/12_descriptor.spec.js index 471d7a536f..d81c1c3ed3 100644 --- a/e2e/paths/05-ticket/12_descriptor.spec.js +++ b/e2e/paths/05-ticket/12_descriptor.spec.js @@ -162,7 +162,7 @@ describe('Ticket descriptor path', () => { }); it(`should regenerate the invoice using the descriptor menu`, async() => { - const expectedMessage = 'Invoice sent for a regeneration, will be available in a few minutes'; + const expectedMessage = 'The invoice PDF document has been regenerated'; await page.waitToClick(selectors.ticketDescriptor.moreMenu); await page.waitForContentLoaded();