From 847e0bd2c847a7e102fa56218ec40d4740d090a1 Mon Sep 17 00:00:00 2001 From: carlosjr Date: Tue, 30 Mar 2021 14:43:21 +0200 Subject: [PATCH] tests fixed for production sneaky changes --- e2e/paths/14-account/01_create_and_basic_data.spec.js | 2 +- e2e/paths/14-account/03_role_create_and_basic_data.spec.js | 2 +- modules/ticket/back/methods/ticket/specs/filter.spec.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/e2e/paths/14-account/01_create_and_basic_data.spec.js b/e2e/paths/14-account/01_create_and_basic_data.spec.js index d1b825a0a..1b1823628 100644 --- a/e2e/paths/14-account/01_create_and_basic_data.spec.js +++ b/e2e/paths/14-account/01_create_and_basic_data.spec.js @@ -59,6 +59,6 @@ describe('Account create and basic data path', () => { await page.accessToSection('account.card.roles'); const rolesCount = await page.countElement(selectors.accountRoles.anyResult); - expect(rolesCount).toEqual(3); + expect(rolesCount).toEqual(4); }); }); diff --git a/e2e/paths/14-account/03_role_create_and_basic_data.spec.js b/e2e/paths/14-account/03_role_create_and_basic_data.spec.js index 18b85ea32..c2c5645ef 100644 --- a/e2e/paths/14-account/03_role_create_and_basic_data.spec.js +++ b/e2e/paths/14-account/03_role_create_and_basic_data.spec.js @@ -81,6 +81,6 @@ describe('Account Role create and basic data path', () => { await page.accessToSection('account.role.card.inherited'); const rolesCount = await page.countElement(selectors.accountRoleInheritance.anyResult); - expect(rolesCount).toEqual(6); + expect(rolesCount).toEqual(7); }); }); diff --git a/modules/ticket/back/methods/ticket/specs/filter.spec.js b/modules/ticket/back/methods/ticket/specs/filter.spec.js index f5733c8da..2ca8bcf44 100644 --- a/modules/ticket/back/methods/ticket/specs/filter.spec.js +++ b/modules/ticket/back/methods/ticket/specs/filter.spec.js @@ -23,7 +23,7 @@ describe('ticket filter()', () => { const filter = {}; const result = await app.models.Ticket.filter(ctx, filter); - expect(result.length).toEqual(4); + expect(result.length).toEqual(3); }); it('should return the tickets matching the problems on false', async() => { @@ -41,7 +41,7 @@ describe('ticket filter()', () => { const filter = {}; const result = await app.models.Ticket.filter(ctx, filter); - expect(result.length).toEqual(10); + expect(result.length).toEqual(7); }); it('should return the tickets matching the problems on null', async() => {