diff --git a/apps/api/v2/src/modules/organizations/event-types/organizations-member-team-admin-event-types.e2e-spec.ts b/apps/api/v2/src/modules/organizations/event-types/organizations-member-team-admin-event-types.e2e-spec.ts index 3fd172d176..816a37efe9 100644 --- a/apps/api/v2/src/modules/organizations/event-types/organizations-member-team-admin-event-types.e2e-spec.ts +++ b/apps/api/v2/src/modules/organizations/event-types/organizations-member-team-admin-event-types.e2e-spec.ts @@ -65,8 +65,7 @@ describe("Organizations Event Types Endpoints", () => { let managedEventTypeSlug: string; beforeAll(async () => { - // Generate unique slug inside beforeAll to ensure uniqueness across test runs - managedEventTypeSlug = `organizations-event-types-managed-${Date.now()}-${randomString()}`; + managedEventTypeSlug = `organizations-event-types-managed-${randomString()}`; const moduleRef = await withApiAuth( userEmail, Test.createTestingModule({ @@ -207,6 +206,10 @@ describe("Organizations Event Types Endpoints", () => { accepted: true, }); + await eventTypesRepositoryFixture.deleteAllUserEventTypes(teammate1.id); + await eventTypesRepositoryFixture.deleteAllUserEventTypes(teammate2.id); + await eventTypesRepositoryFixture.deleteAllTeamEventTypes(team.id); + app = moduleRef.createNestApplication(); bootstrap(app as NestExpressApplication);