Skip to content

Commit

Permalink
Remove getDCM
Browse files Browse the repository at this point in the history
  • Loading branch information
mnigh committed Dec 20, 2024
1 parent e56150d commit e2b217f
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions apps/playwright/utils/teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,6 @@ import { CreateTeamInput, Team } from "@gc-digital-talent/graphql";

import { GraphQLRequestFunc, GraphQLResponse } from "./graphql";

const Test_TeamsQueryDocument = /* GraphQL */ `
query Test_Teams {
teams {
id
name
displayName {
en
fr
}
}
}
`;

/**
* Get DCM
*
* Get all the DCM team directly from the API.
*/
export const getDCM: GraphQLRequestFunc<Team | undefined> = async (ctx, {}) => {
return await ctx
.post(Test_TeamsQueryDocument)
.then((res: GraphQLResponse<"teams", Team[]>) => {
return res.teams.find(
(team) => team.name === "digital-community-management",
);
});
};

export const Test_CreateTeamMutationDocument = /* GraphQL */ `
mutation Test_CreateTeam($team: CreateTeamInput!) {
createTeam(team: $team) {
Expand Down

0 comments on commit e2b217f

Please sign in to comment.