Skip to content

Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.

fix failing e2e tests

Khuram Niaze1b31cc5d477
diff --git a/e2e/add-job.spec.ts b/e2e/add-job.spec.ts
index 936d762..64696c6 100644
--- a/e2e/add-job.spec.ts
+++ b/e2e/add-job.spec.ts
@@ -216,9 +216,6 @@ test.describe("Add New Job", () => {
await expect(page.getByText("Company name is required.")).toBeVisible();
await expect(page.getByText("Location is required.")).toBeVisible();
await expect(page.getByText("Source is required.")).toBeVisible();
- await expect(
- page.getByText("Job description is required."),
- ).toBeVisible();
});
test("should change job status from the jobs table actions menu", async ({
diff --git a/e2e/agent-chat.spec.ts b/e2e/agent-chat.spec.ts
index 7dc6ff4..23def30 100644
--- a/e2e/agent-chat.spec.ts
+++ b/e2e/agent-chat.spec.ts
@@ -71,6 +71,13 @@ function deniedTurn(messageId: string): Record<string, unknown>[] {
}
async function openChat(page: Page) {
+ // open() runs a real preflight fetch to check Ollama's reachability before
+ // Send is enabled. Stub it so the panel doesn't depend on a live local
+ // Ollama daemon — an unmocked call here raced the disabled Send button
+ // against test steps and made "keeps the transcript..." flaky.
+ await page.route("**/api/ai/ollama/tags", (route) =>
+ route.fulfill({ contentType: "application/json", body: "{}" }),
+ );
await page.goto("/dashboard/myjobs");
await page.getByRole("button", { name: "Open assistant" }).click();
// A shared user can carry a transcript in from another run or a manual