fix test and update fixtures
This commit is contained in:
parent
f7244cc22b
commit
3faf03cf9f
|
@ -11,7 +11,7 @@ describe('Ticket List components path', () => {
|
|||
.accessToSection('ticket.card.components');
|
||||
});
|
||||
|
||||
it('should confirm the total base is correct', async () => {
|
||||
it('should confirm the total base is correct', async() => {
|
||||
const name = 'Base €';
|
||||
const minLength = name.length;
|
||||
|
||||
|
@ -24,7 +24,7 @@ describe('Ticket List components path', () => {
|
|||
expect(base.length).toBeGreaterThan(minLength);
|
||||
});
|
||||
|
||||
it('should confirm the total margin is correct', async () => {
|
||||
it('should confirm the total margin is correct', async() => {
|
||||
const name = 'Margin €';
|
||||
const minLength = name.length;
|
||||
|
||||
|
@ -37,7 +37,7 @@ describe('Ticket List components path', () => {
|
|||
expect(margin.length).toBeGreaterThan(minLength);
|
||||
});
|
||||
|
||||
it('should confirm the total total is correct', async () => {
|
||||
it('should confirm the total total is correct', async() => {
|
||||
const name = 'Total €';
|
||||
const minLength = name.length;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ describe('ticket componentUpdate()', () => {
|
|||
const today = new Date();
|
||||
let ticketId = 11;
|
||||
|
||||
beforeAll(async () => {
|
||||
beforeAll(async() => {
|
||||
[componentValue] = await app.models.SaleComponent.rawSql(componentOfSaleSeven);
|
||||
firstvalueBeforeChange = componentValue.value;
|
||||
|
||||
|
@ -19,7 +19,7 @@ describe('ticket componentUpdate()', () => {
|
|||
secondvalueBeforeChange = componentValue.value;
|
||||
});
|
||||
|
||||
it('should change the agencyMode to modify the sale components value', async () => {
|
||||
it('should change the agencyMode to modify the sale components value', async() => {
|
||||
let data = {
|
||||
clientFk: 101,
|
||||
agencyModeFk: 8,
|
||||
|
@ -46,7 +46,7 @@ describe('ticket componentUpdate()', () => {
|
|||
expect(secondvalueBeforeChange).not.toEqual(secondvalueAfterChange);
|
||||
});
|
||||
|
||||
it('should change the agencyMode to go back to the originals sale components value', async () => {
|
||||
it('should change the agencyMode to go back to the originals sale components value', async() => {
|
||||
let data = {
|
||||
clientFk: 101,
|
||||
agencyModeFk: 7,
|
||||
|
|
|
@ -1,15 +1,4 @@
|
|||
/* INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (118, 'WorkerTeam', '*', '*', 'ALLOW', 'role', 'salesPerson');
|
||||
INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (119, 'Travel', '*', 'READ', 'ALLOW', 'role', 'employee');
|
||||
INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (120, 'Travel', '*', 'WRITE', 'ALLOW', 'role', 'buyer');
|
||||
INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (121, 'Item', 'regularize', '*', 'ALLOW', 'role', 'employee');
|
||||
INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (122, 'TicketRequest', '*', '*', 'ALLOW', 'role', 'employee');
|
||||
INSERT INTO `salix`.`fieldAcl` (`model`, `property`, `actionType`, `role`) VALUES('TicketRequest', '*', '*', 'salesPerson');
|
||||
UPDATE `salix`.`ACL` SET model='TicketRequest', property='*', accessType='*', permission='ALLOW', principalType='ROLE', principalId='salesPerson' WHERE id=122;
|
||||
INSERT INTO `salix`.`fieldAcl` (`model`, `property`, `actionType`,`role`) VALUES ('ClaimBeginning','*','*','salesAssistant');
|
||||
INSERT INTO `salix`.`ACL`(`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES ('Agency', 'getAgenciesWithWarehouse', '*', 'ALLOW', 'ROLE', 'employee');
|
||||
INSERT INTO `salix`.`ACL`(`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES('Client', 'activeWorkersWithRole', '*', 'ALLOW', 'ROLE', 'employee');
|
||||
|
||||
*/
|
||||
INSERT INTO `salix`.`ACL`(`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES('CreditClassification', '*', 'READ', 'ALLOW', 'ROLE', 'employee');
|
||||
|
||||
INSERT INTO `salix`.`ACL`(`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES('ClientObservation', '*', 'READ', 'ALLOW', 'ROLE', 'employee');
|
||||
|
@ -29,4 +18,7 @@ DELETE FROM `salix`.`ACL` WHERE `id`='67';
|
|||
DELETE FROM `salix`.`ACL` WHERE `id`='74';
|
||||
DELETE FROM `salix`.`ACL` WHERE `id`='92';
|
||||
DELETE FROM `salix`.`ACL` WHERE `id`='93';
|
||||
DELETE FROM `salix`.`ACL` WHERE `id`='95';
|
||||
DELETE FROM `salix`.`ACL` WHERE `id`='95';
|
||||
|
||||
INSERT INTO `salix`.`ACL`(`id`,`model`,`property`,`accessType`,`permission`,`principalType`,`principalId`) VALUES (133,'TicketLog', '*','READ', 'ALLOW','ROLE','employee');
|
||||
INSERT INTO `salix`.`ACL`(`id`,`model`,`property`,`accessType`,`permission`,`principalType`,`principalId`) VALUES (134,'TicketService', '*','*', 'ALLOW','ROLE','employee');
|
||||
|
|
|
@ -581,7 +581,7 @@ INSERT INTO `vn`.`saleComponent`(`saleFk`, `componentFk`, `value`)
|
|||
(7, 28, 5.6),
|
||||
(7, 29, -4.6),
|
||||
(7, 39, 0.01),
|
||||
(8, 15, 0.254),
|
||||
(8, 15, 0.044),
|
||||
(8, 21, -0.004),
|
||||
(8, 28, 20.72),
|
||||
(8, 29, -19.72),
|
||||
|
|
Loading…
Reference in New Issue