feat(invitations): add the candidate invitation inbox with C4 acceptance and decline
This commit is contained in:
1 parent
12a7213d4a
commit
a856066316
54 files changed
+3897
-136
No files matched your search
@@ -289,8 +289,20 @@ describe("product readiness", () => {
|
||||
});
|
||||
|
||||
it("labels the remaining cabinet scaffolds as placeholders", async () => {
|
||||
for (const path of ["/candidate/invitations", "/employer/invitations"]) {
|
||||
expect(await renderHtml(path)).toContain("Экран будет реализован в одной из следующих задач");
|
||||
}
|
||||
expect(await renderHtml("/employer/invitations")).toContain(
|
||||
"Экран будет реализован в одной из следующих задач",
|
||||
);
|
||||
});
|
||||
|
||||
it("routes the candidate inbox and one invitation to their own screens, not placeholders", async () => {
|
||||
const inbox = await renderHtml("/candidate/invitations");
|
||||
expect(inbox).toMatch(/<h1[^>]*>Приглашения<\/h1>/);
|
||||
expect(inbox).not.toContain("Экран будет реализован в одной из следующих задач");
|
||||
|
||||
const detail = await renderHtml(
|
||||
`/candidate/invitations/${"0".repeat(8)}-0000-4000-8000-000000000000`,
|
||||
);
|
||||
expect(detail).toContain("Открываем приглашение...");
|
||||
expect(detail).not.toContain("Экран будет реализован в одной из следующих задач");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user