var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
import React from "react";
import { describe, it, expect, vi } from "vitest";
import { render, screen } from "@testing-library/react";
import { Content } from "./index";
// Mock dependencies
vi.mock("react-i18next", (importOriginal) => __awaiter(void 0, void 0, void 0, function* () {
    return (Object.assign(Object.assign({}, (yield importOriginal())), { useTranslation: () => ({
            t: (key) => `translated:${key}`,
        }) }));
}));
vi.mock("../Header", () => ({
    Header: () => React.createElement("div", { "data-testid": "header" }, "Header Component"),
}));
vi.mock("../Cards", () => ({
    Cards: () => React.createElement("div", { "data-testid": "cards-component" }, "Cards Component"),
}));
vi.mock("../ContactInfo", () => ({
    ContactInfo: () => React.createElement("div", { "data-testid": "lead-capture-form" }),
}));
const useLeadCaptureMock = vi.fn(() => ({
    selectedReport: null,
}));
vi.mock("~/sdks/LeadCapture/context", () => ({
    useLeadCapture: () => useLeadCaptureMock(),
}));
describe("Content", () => {
    it("renders correctly", () => {
        render(React.createElement(Content, null));
        expect(screen.getByTestId("lead-capture-content")).toBeInTheDocument();
    });
    it("contains the LL Attribution component", () => {
        render(React.createElement(Content, null));
        expect(screen.getByTestId("ll-attribution")).toBeInTheDocument();
    });
    it("renders the Header component", () => {
        render(React.createElement(Content, null));
        expect(screen.getByTestId("header")).toBeInTheDocument();
    });
    it("renders the Cards component", () => {
        render(React.createElement(Content, null));
        expect(screen.getByTestId("cards-component")).toBeInTheDocument();
    });
    it("renders the Form component", () => {
        useLeadCaptureMock.mockReturnValue({
            selectedReport: "nmr",
        });
        render(React.createElement(Content, null));
        expect(screen.getByTestId("lead-capture-form")).toBeInTheDocument();
    });
});
//# sourceMappingURL=index.test.js.map