Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

test: match career notices to available context

Amruth Pillaic48c198acbb4
diff --git a/tests/e2e/specs/career-empty-actions.spec.ts b/tests/e2e/specs/career-empty-actions.spec.ts
index 1d6cd3f65..aec517808 100644
--- a/tests/e2e/specs/career-empty-actions.spec.ts
+++ b/tests/e2e/specs/career-empty-actions.spec.ts
@@ -61,7 +61,7 @@ test("Fit and Interview prep keep notices in a vertical body above the action",
await expect(await page.request.post(`/api/openapi/ai-providers/${providerId}/test`)).toBeOK();
await page.goto(`/dashboard/applications/${id}/fit`);
- const fitNotice = page.getByText(/Sends this application's posting, notes and documents/);
+ const fitNotice = page.getByText("Sends your preferences to Fictional local provider.", { exact: true });
const fitAction = page.getByRole("button", { name: "Check fit", exact: true });
await expect(fitNotice).toBeVisible();
await expect(fitAction).toBeVisible();
@@ -73,7 +73,9 @@ test("Fit and Interview prep keep notices in a vertical body above the action",
});
await page.goto(`/dashboard/applications/${id}/prepare`);
- const prepNotice = page.getByText(/Sends this application \(posting, notes, interview details\)/);
+ const prepNotice = page.getByText("Sends your preferences and the interview details to Fictional local provider.", {
+ exact: true,
+ });
const prepAction = page.getByRole("button", { name: "Plan my preparation", exact: true });
await expect(prepNotice).toBeVisible();
await expect(prepAction).toBeVisible();