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
@@ -11,6 +11,13 @@ import { expect, test, type Browser, type Locator, type Page, type Route } from
|
||||
// parts the stand cannot produce: the order of all three groups, a candidate
|
||||
// confirmed in one specialization and not in another, a partial output, the
|
||||
// quota refusal of a card read, and the other failure states.
|
||||
//
|
||||
// The real-bank test runs in its own Playwright project, before every other
|
||||
// spec (frontend/playwright.config.ts). The unfiltered search returns at most
|
||||
// ten entries per group, and for a bank search Fit and Coverage are equal for
|
||||
// every unconfirmed entry, so the group is ordered by the internal candidate
|
||||
// identifier. A candidate published by another spec earlier in the same stand
|
||||
// would therefore push this test's candidates out of the group at random.
|
||||
|
||||
const mailFixtureEnabled = process.env.E2E_MAIL_FIXTURE === "1";
|
||||
const companyFixtureEnabled = process.env.E2E_COMPANY_FIXTURE === "1";
|
||||
@@ -381,6 +388,9 @@ test.describe("employer candidate search with the real backend", () => {
|
||||
const second = await secondSearch;
|
||||
const secondBody = (await second.json()) as ServerResult;
|
||||
expect(JSON.parse(matchRequests[1] ?? "")).toEqual({ filters: {} });
|
||||
// The five candidates give exactly ten unconfirmed entries, the group limit.
|
||||
// A truncated group means that another candidate shares the bank.
|
||||
expect(secondBody.truncated, "the bank holds only the candidates of this test").toBe(false);
|
||||
const sharedHandle = secondBody.groups.unconfirmed
|
||||
.filter((card) => card.specialization === "backend" && card.declared_grade === "senior")
|
||||
.map((card) => card.candidate_handle)
|
||||
|
||||
Reference in new issue
Block a user