diff --git a/packages/server/src/api/routes/tests/permissions.spec.ts b/packages/server/src/api/routes/tests/permissions.spec.ts index 90060eef81..7a9bb2f373 100644 --- a/packages/server/src/api/routes/tests/permissions.spec.ts +++ b/packages/server/src/api/routes/tests/permissions.spec.ts @@ -291,6 +291,8 @@ describe("/permission", () => { describe("multi-inheritance permissions", () => { let table1: Table, table2: Table, role1: Role, role2: Role beforeEach(async () => { + // create new app + await config.init() table1 = await config.createTable() table2 = await config.createTable() await config.api.row.save(table1._id!, { @@ -301,7 +303,7 @@ describe("/permission", () => { }) role1 = await config.api.roles.save( { - name: "role1", + name: "test_1", permissionId: PermissionLevel.WRITE, inherits: BUILTIN_ROLE_IDS.BASIC, }, @@ -309,7 +311,7 @@ describe("/permission", () => { ) role2 = await config.api.roles.save( { - name: "role2", + name: "test_2", permissionId: PermissionLevel.WRITE, inherits: BUILTIN_ROLE_IDS.BASIC, },