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(career): scope Fit handoff assertions to destination

Amruth Pillaiaa3906e75e54
diff --git a/tests/e2e/specs/career.spec.ts b/tests/e2e/specs/career.spec.ts
index 21ca34d99..12f53faf1 100644
--- a/tests/e2e/specs/career.spec.ts
+++ b/tests/e2e/specs/career.spec.ts
@@ -339,16 +339,19 @@ for (const linked of [true, false]) {
const calls = stub.requests.length;
await tailor.click();
if (!linked) {
- const copy = page.getByRole("dialog");
+ const copy = page.getByRole("dialog", { name: "Copy a resume for a job", exact: true });
await expect(
copy.getByRole("button", { name: "Operations lead · Fictional Cedar", exact: true }),
).toHaveAttribute("aria-pressed", "true");
await copy.getByRole("button", { name: "Create and open", exact: true }).click();
+ await expect(copy).toBeHidden();
}
await expect(page).toHaveURL(/mode=check/);
await expect(page).toHaveURL(/checkTab=match/);
await expect(page.getByRole("tab", { name: /Job match/, selected: true })).toBeVisible();
- await expect(page.getByText("Operations lead · Fictional Cedar", { exact: true })).toBeVisible();
+ await expect(
+ page.getByRole("tabpanel", { name: /Job match/ }).getByText("Operations lead · Fictional Cedar", { exact: true }),
+ ).toBeVisible();
if (linked) {
await expect(page).toHaveURL(new RegExp(`/builder/${sourceId}`));
await expect(page.getByText("For this visit only", { exact: true })).toBeVisible();