feat(invitations): add the invitation compose screen with a candidate-side preview

This commit is contained in:
shira committed 2026-10-09 17:14:58 +03:00
1 parent 1a067221f7
commit cb08f212cc
35 files changed
+4170 -67

No files matched your search

+5 -3
View File
@@ -810,7 +810,7 @@ test.describe("employer candidate search with a stubbed API", () => {
await captureReview(page, "match-search-three-groups");
});
test("invites an unconfirmed profile and carries the alias to the invitation section", async ({
test("invites an unconfirmed profile and carries the alias to the invitation form", async ({
page,
}) => {
await installFakeApi(page);
@@ -824,9 +824,11 @@ test.describe("employer candidate search with a stubbed API", () => {
const invite = page.getByRole("link", { name: /^Пригласить/ });
await expect(invite).toBeVisible();
await invite.click();
await expect(page.getByRole("heading", { level: 1, name: "Приглашения" })).toBeVisible();
await expect(
page.getByRole("heading", { level: 1, name: "Приглашение кандидату" }),
).toBeVisible();
const url = new URL(page.url());
expect(url.pathname).toBe("/employer/invitations");
expect(url.pathname).toBe("/employer/invitations/new");
expect(url.searchParams.get("organization_id")).toBe(orgId);
expect(url.searchParams.get("candidate_handle")).toBe(handleA);
expect(url.searchParams.get("specialization")).toBe("network_engineer");