import { jsx as _jsx } from "react/jsx-runtime";
import '@testing-library/jest-dom';
import { render, screen } from '@testing-library/react';
import Chatbot from './Chatbot';
describe('Chatbot', () => {
    it('should render Chatbot with default display mode', () => {
        render(_jsx(Chatbot, { children: "Chatbot Content" }));
        expect(screen.getByText('Chatbot Content')).toBeTruthy();
    });
    it('should render Chatbot with custom ariaLabel', () => {
        render(_jsx(Chatbot, { ariaLabel: "Chatbot", children: "Chatbot Content" }));
        expect(screen.getByLabelText('Chatbot')).toBeTruthy();
    });
    it('should render Chatbot with custom className', () => {
        const { container } = render(_jsx(Chatbot, { ariaLabel: "Chatbot", className: "custom-class", children: "Chatbot Content" }));
        const chatbotElement = container.querySelector('.custom-class');
        expect(chatbotElement).toBeInTheDocument();
    });
    it('should not render Chatbot', () => {
        render(_jsx(Chatbot, { isVisible: false, children: "Chatbot Content" }));
        expect(screen.queryByLabelText('Chatbot')).toBeFalsy();
    });
    it('should handle isCompact', () => {
        render(_jsx(Chatbot, { "data-testid": "chatbot", isVisible: true, isCompact: true, children: "Chatbot Content" }));
        expect(screen.getByTestId('chatbot')).toHaveClass('pf-m-compact');
    });
});
