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.
TypeScript ai-agentai-resume-analyzerapplication-trackerapplication-tracking-systematscareerjob-applicationjob-automationjob-huntingjob-searchjob-seeker-toolsjob-trackerjob-trackingjobsearchjobseekersmcpollamaresumeresume-reviewself-hosted
test(AddExperience): ensure spinner is displayed during save operation
Khuram Niaz65fb2bd13619
diff --git a/__tests__/AddExperience.spec.tsx b/__tests__/AddExperience.spec.tsxindex 34e2c11..451ed04 100644--- a/__tests__/AddExperience.spec.tsx+++ b/__tests__/AddExperience.spec.tsx@@ -752,9 +752,10 @@ describe("AddExperience Component", () => {const saveButton = screen.getByRole("button", { name: /save/i });await user.click(saveButton);- const saveBtn = screen.getByRole("button", { name: /save/i });- const loader = saveBtn.querySelector(".spinner");- expect(loader).toBeInTheDocument();+ await waitFor(() => {+ const saveBtn = screen.getByRole("button", { name: /save/i });+ expect(saveBtn.querySelector(".spinner")).toBeInTheDocument();+ });await waitFor(() => {expect(addExperience).toHaveBeenCalledTimes(1);