Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/club/src/app/teams/teams-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const TEAM_APPLICATIONS = [
] as const;

function getFormHref(bladeUrl: string, slug: string) {
return new URL(`/forms/${encodeURIComponent(slug)}`, bladeUrl).toString();
return new URL(`/form/${encodeURIComponent(slug)}`, bladeUrl).toString();
}

function getInitials(name: string) {
Expand Down
17 changes: 17 additions & 0 deletions apps/club/src/tests/team-roster-skeleton.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,21 @@ describe("team roster loading placeholders", () => {
expect(html).not.toContain('aria-label="Team filters"');
expect(html).toContain("Loading team members");
});

it("links team applications to Blade's singular form route", () => {
const html = renderToStaticMarkup(
createElement(TeamsClient, { bladeUrl: "http://localhost:3000" }),
);

for (const slug of [
"sponsorship-team-application",
"workshop-team-application",
"design-team-applications",
"outreach-team-applications",
"dev-team-applications",
]) {
expect(html).toContain(`href="http://localhost:3000/form/${slug}"`);
}
expect(html).not.toContain("/forms/");
});
});