test: Add Attributes Routing e2e and some more unit tests (#17032)

* Initial commit

* routingForm to Booking a particular team member working

* Happy path working

* Fixes

* Fix router query params forwarding

* Add basicConfig within app

* Tests

* More tests

* Update packages/app-store/routing-forms/components/SingleForm.tsx

Co-authored-by: Omar López <[email protected]>

* WIP

* Fix lint issues

* Fix tests -TS and add new logic

* Add getEventTypeRedirectUrl tests

* Remove booking title changes code

* More changes

* Add tests for getRoutedUsers

* More tests

* Update testUtils.ts

---------

Co-authored-by: Omar López <[email protected]>
Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
authored and GitHub committed 2024-10-09 22:47:16 +05:30
1 parent 90bcd711a9
commit 06429e27fb
8 files changed
+423 -9

No files matched your search

+6 -1
View File
@@ -153,6 +153,7 @@ const createTeamAndAddUser = async (
isDnsSetup,
index,
orgRequestedSlug,
schedulingType,
}: {
user: { id: number; email: string; username: string | null; role?: MembershipRole };
isUnpublished?: boolean;
@@ -163,6 +164,7 @@ const createTeamAndAddUser = async (
organizationId?: number | null;
index?: number;
orgRequestedSlug?: string;
schedulingType?: SchedulingType;
},
workerInfo: WorkerInfo
) => {
@@ -189,7 +191,9 @@ const createTeamAndAddUser = async (
data.slug = !isUnpublished ? slug : undefined;
if (isOrg && hasSubteam) {
const team = await createTeamAndAddUser({ user }, workerInfo);
await createTeamEventType(user, team);
await createTeamEventType(user, team, {
schedulingType: schedulingType,
});
await createTeamWorkflow(user, team);
data.children = { connect: [{ id: team.id }] };
}
@@ -532,6 +536,7 @@ export const createUsersFixture = (
hasSubteam: scenario.hasSubteam,
organizationId: opts?.organizationId,
orgRequestedSlug: scenario.orgRequestedSlug,
schedulingType: scenario.schedulingType,
},
workerInfo
);