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
@@ -27,6 +27,12 @@ type AttemptSnapshot = {
|
||||
const questionnaireFixtureEnabled = process.env.E2E_QUESTIONNAIRE_FIXTURE === "1";
|
||||
const mailFixtureEnabled = process.env.E2E_MAIL_FIXTURE === "1";
|
||||
const password = "correct horse battery staple 2026";
|
||||
// Pause after each saved answer of a full attempt. Back to back, the loop sends
|
||||
// about fifty requests a second (each answer and the attempt read that follows
|
||||
// it) from the one client address of the stand, which spends the per-address
|
||||
// API budget of the app Nginx in about a second. A candidate reads each item
|
||||
// before answering, so this pace is what a person produces.
|
||||
const answerPauseMs = 250;
|
||||
|
||||
test.use({ actionTimeout: 10_000, trace: "off", screenshot: "off", video: "off" });
|
||||
|
||||
@@ -209,6 +215,7 @@ async function answerRequiredNumericItems(
|
||||
await page.keyboard.press("Enter");
|
||||
expect((await answerResponsePromise).status()).toBe(200);
|
||||
submitted += 1;
|
||||
await page.waitForTimeout(answerPauseMs);
|
||||
}
|
||||
return submitted;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user