feat(ui): redesign job workspace sections

This commit is contained in:
cesnimda
2026-10-07 01:58:31 +02:00
parent acd1d94684
commit ac6d78289d
123 changed files with 2842 additions and 205 deletions
@@ -86,7 +86,8 @@ test("timeline renders grouped days, milestones and readable summaries", async (
render(<ApplicationTimeline jobId={7} />);
expect(await screen.findByText("Milestones")).toBeInTheDocument();
expect(screen.getByText("Today")).toBeInTheDocument();
expect(screen.getByText(new Date(`${timeline.days[0].date}T12:00:00`).toLocaleDateString("en", { dateStyle: "long" }))).toBeInTheDocument();
expect(screen.getByRole("list")).toHaveTextContent("AI suggestions refreshed");
expect(screen.getAllByText("Moved from Applied to Interview").length).toBeGreaterThan(0);
expect(screen.getByText("AI suggestions refreshed")).toBeInTheDocument();
});
@@ -146,9 +147,9 @@ test("analysis prompts for the advert when there is none", async () => {
test("analysis shows a loading state before the data arrives", () => {
mockedApi.get.mockReturnValue(new Promise(() => {}) as any);
const { container } = render(<ApplicationAnalysis jobId={7} />);
render(<ApplicationAnalysis jobId={7} />);
expect(container.querySelectorAll(".MuiSkeleton-root").length).toBeGreaterThan(0);
expect(screen.getByRole("progressbar", { name: "Loading..." })).toBeInTheDocument();
});
// ---------- Match ----------