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: follow optional offer fields and sender controls

Amruth Pillai2200f89dd17a
diff --git a/tests/e2e/specs/career.spec.ts b/tests/e2e/specs/career.spec.ts
index 8e91131da..aebfceca2 100644
--- a/tests/e2e/specs/career.spec.ts
+++ b/tests/e2e/specs/career.spec.ts
@@ -218,9 +218,14 @@ test("manual offers save and compare without an AI provider", async ({ authPage:
await page.getByRole("button", { name: "Add offer", exact: true }).click();
await page.getByLabel("Currency", { exact: true }).fill("EUR");
await page.getByLabel("Base salary", { exact: true }).fill("95000");
+ const moreOptions = page.getByRole("button", { name: "More options", exact: true });
+ await expect(moreOptions).toHaveAttribute("aria-expanded", "false");
+ await moreOptions.click();
await page.getByLabel("Learning budget", { exact: true }).fill("95k");
await expect(page.getByLabel("Learning budget")).not.toHaveAttribute("aria-invalid", "true");
+ await moreOptions.click();
await page.getByRole("button", { name: "Save offer", exact: true }).click();
+ await expect(moreOptions).toHaveAttribute("aria-expanded", "true");
await expect(page.getByLabel("Learning budget")).toHaveAttribute("aria-invalid", "true");
await expect(page.getByText("Enter a full amount, such as 95000, or leave blank.")).toBeVisible();
await page.getByLabel("Learning budget", { exact: true }).fill("");
@@ -241,6 +246,7 @@ test("manual offers save and compare without an AI provider", async ({ authPage:
await page.getByLabel("Currency", { exact: true }).fill("USD");
await page.getByLabel("Pay period", { exact: true }).selectOption("month");
await page.getByLabel("Base salary", { exact: true }).fill("8000");
+ await moreOptions.click();
await page.getByLabel("Bonus", { exact: true }).fill("0");
await page.getByLabel("Where you work", { exact: true }).fill("Remote");
await Promise.all([
diff --git a/tests/e2e/specs/letter-sender.spec.ts b/tests/e2e/specs/letter-sender.spec.ts
index c023880ab..1d422b9d6 100644
--- a/tests/e2e/specs/letter-sender.spec.ts
+++ b/tests/e2e/specs/letter-sender.spec.ts
@@ -48,7 +48,7 @@ test("writes and exports standalone sender details, then edits a linked copy wit
from.getByText("Enter your details below. Choosing a resume replaces them and links its design."),
).toBeVisible();
await from.getByLabel("Resume", { exact: true }).selectOption(resumeId);
- const linked = from.getByRole("switch");
+ const linked = from.getByRole("switch", { name: "Use details from “Source resume”", exact: true });
await expect(linked).toBeChecked();
await expect(from.getByRole("textbox", { name: "Full name", exact: true })).toHaveCount(0);
await linked.click();