From 7f337743e95d73e6756ddbfaa7c5c2bb1bf60112 Mon Sep 17 00:00:00 2001 From: Rish Date: Fri, 14 Feb 2020 15:44:47 +0530 Subject: [PATCH] Fixed tests no issue --- .../server/data/schema/fixtures/fixtures.json | 50 +++++++++---------- .../regression/migrations/migration_spec.js | 7 ++- 2 files changed, 31 insertions(+), 26 deletions(-) diff --git a/core/server/data/schema/fixtures/fixtures.json b/core/server/data/schema/fixtures/fixtures.json index 0928d2c093..f0b8b53d76 100644 --- a/core/server/data/schema/fixtures/fixtures.json +++ b/core/server/data/schema/fixtures/fixtures.json @@ -353,31 +353,6 @@ "action_type": "destroy", "object_type": "member" }, - { - "name": "Browse labels", - "action_type": "browse", - "object_type": "label" - }, - { - "name": "Read labels", - "action_type": "read", - "object_type": "label" - }, - { - "name": "Edit labels", - "action_type": "edit", - "object_type": "label" - }, - { - "name": "Add labels", - "action_type": "add", - "object_type": "label" - }, - { - "name": "Delete labels", - "action_type": "destroy", - "object_type": "label" - }, { "name": "Publish posts", "action_type": "publish", @@ -412,6 +387,31 @@ "name": "Retry emails", "action_type": "retry", "object_type": "email" + }, + { + "name": "Browse labels", + "action_type": "browse", + "object_type": "label" + }, + { + "name": "Read labels", + "action_type": "read", + "object_type": "label" + }, + { + "name": "Edit labels", + "action_type": "edit", + "object_type": "label" + }, + { + "name": "Add labels", + "action_type": "add", + "object_type": "label" + }, + { + "name": "Delete labels", + "action_type": "destroy", + "object_type": "label" } ] }, diff --git a/core/test/regression/migrations/migration_spec.js b/core/test/regression/migrations/migration_spec.js index 4774085475..96ad891db1 100644 --- a/core/test/regression/migrations/migration_spec.js +++ b/core/test/regression/migrations/migration_spec.js @@ -201,6 +201,11 @@ describe('Database Migration (special functions)', function () { permissions[65].should.be.AssignedToRoles(['Administrator', 'Editor', 'Author', 'Contributor', 'Admin Integration']); permissions[66].name.should.eql('Retry emails'); permissions[66].should.be.AssignedToRoles(['Administrator', 'Editor', 'Admin Integration']); + permissions[67].name.should.eql('Browse labels'); + permissions[68].name.should.eql('Read labels'); + permissions[69].name.should.eql('Edit labels'); + permissions[70].name.should.eql('Add labels'); + permissions[71].name.should.eql('Delete labels'); }); describe('Populate', function () { @@ -258,7 +263,7 @@ describe('Database Migration (special functions)', function () { result.roles.at(7).get('name').should.eql('Scheduler Integration'); // Permissions - result.permissions.length.should.eql(67); + result.permissions.length.should.eql(72); result.permissions.toJSON().should.be.CompletePermissions(); }); });