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.

784 B
Raw Blame
import { render, screen } from "@testing-library/react";
import { IncompleteResumeHint } from "@/components/IncompleteResumeHint";
import { buildIncompleteResumeHint } from "@/lib/resumeSections";

describe("IncompleteResumeHint", () => {
  it("exposes the hint as the accessible name of the icon", () => {
    render(<IncompleteResumeHint />);

    const icon = screen.getByRole("img", { name: buildIncompleteResumeHint() });
    expect(icon.parentElement).toHaveAttribute("data-incomplete-hint");
  });

  it("opts back into pointer events so it works inside a disabled item", () => {
    render(<IncompleteResumeHint />);

    const icon = screen.getByRole("img", { name: buildIncompleteResumeHint() });
    expect(icon.parentElement).toHaveClass("pointer-events-auto");
  });
});