"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const jsx_runtime_1 = require("react/jsx-runtime");
require("@testing-library/jest-dom");
const react_1 = require("@testing-library/react");
const Chatbot_1 = __importDefault(require("./Chatbot"));
describe('Chatbot', () => {
    it('should render Chatbot with default display mode', () => {
        (0, react_1.render)((0, jsx_runtime_1.jsx)(Chatbot_1.default, { children: "Chatbot Content" }));
        expect(react_1.screen.getByText('Chatbot Content')).toBeTruthy();
    });
    it('should render Chatbot with custom ariaLabel', () => {
        (0, react_1.render)((0, jsx_runtime_1.jsx)(Chatbot_1.default, { ariaLabel: "Chatbot", children: "Chatbot Content" }));
        expect(react_1.screen.getByLabelText('Chatbot')).toBeTruthy();
    });
    it('should render Chatbot with custom className', () => {
        const { container } = (0, react_1.render)((0, jsx_runtime_1.jsx)(Chatbot_1.default, { ariaLabel: "Chatbot", className: "custom-class", children: "Chatbot Content" }));
        const chatbotElement = container.querySelector('.custom-class');
        expect(chatbotElement).toBeInTheDocument();
    });
    it('should not render Chatbot', () => {
        (0, react_1.render)((0, jsx_runtime_1.jsx)(Chatbot_1.default, { isVisible: false, children: "Chatbot Content" }));
        expect(react_1.screen.queryByLabelText('Chatbot')).toBeFalsy();
    });
    it('should handle isCompact', () => {
        (0, react_1.render)((0, jsx_runtime_1.jsx)(Chatbot_1.default, { "data-testid": "chatbot", isVisible: true, isCompact: true, children: "Chatbot Content" }));
        expect(react_1.screen.getByTestId('chatbot')).toHaveClass('pf-m-compact');
    });
});
