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.

test(AddExperience): verify job title combobox has more than one option

Khuram Niaz705bdda61a28
diff --git a/__tests__/AddExperience.spec.tsx b/__tests__/AddExperience.spec.tsx
index 2623f6d..34e2c11 100644
--- a/__tests__/AddExperience.spec.tsx
+++ b/__tests__/AddExperience.spec.tsx
@@ -459,7 +459,10 @@ describe("AddExperience Component", () => {
);
await waitFor(() => {
- expect(screen.getByTestId("combobox-title")).toBeInTheDocument();
+ const jobTitleSelect = screen.getByTestId(
+ "combobox-title"
+ ) as HTMLSelectElement;
+ expect(jobTitleSelect.options.length).toBeGreaterThan(1);
});
const jobTitleSelect = screen.getByTestId(
@@ -651,7 +654,10 @@ describe("AddExperience Component", () => {
);
await waitFor(() => {
- expect(screen.getByTestId("combobox-title")).toBeInTheDocument();
+ const jobTitleSelect = screen.getByTestId(
+ "combobox-title"
+ ) as HTMLSelectElement;
+ expect(jobTitleSelect.options.length).toBeGreaterThan(1);
});
const jobTitleSelect = screen.getByTestId(
diff --git a/__tests__/AddJob.spec.tsx b/__tests__/AddJob.spec.tsx
index 6cdbd98..dbb6d31 100644
--- a/__tests__/AddJob.spec.tsx
+++ b/__tests__/AddJob.spec.tsx
@@ -451,5 +451,5 @@ describe("AddJob Component - Error Handling", () => {
}),
);
});
- });
+ }, 15000);
});