diff --git a/packages/integration-tests/src/tests/api/organization/organization-user.test.ts b/packages/integration-tests/src/tests/api/organization/organization-user.test.ts index 8a0b3bb99ecb..39036c4a5a2a 100644 --- a/packages/integration-tests/src/tests/api/organization/organization-user.test.ts +++ b/packages/integration-tests/src/tests/api/organization/organization-user.test.ts @@ -275,7 +275,7 @@ describe('organization user APIs', () => { // Assign role1 to user await organizationApi.addUserRoles(organization.id, user.id, [role1.id]); const scopes = await organizationApi.getUserOrganizationScopes(organization.id, user.id); - expect(scopes).toEqual([scope1.name, scope2.name]); + expect(scopes).toMatchObject([scope1.name, scope2.name]); // Remove role1 and assign role2 to user await organizationApi.deleteUserRole(organization.id, user.id, role1.id);