"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = require("@testing-library/react");
const ChatbotHeaderMenu_1 = require("./ChatbotHeaderMenu");
require("@testing-library/jest-dom");
describe('ChatbotHeaderMenu', () => {
    it('should render ChatbotHeaderMenu with custom class', () => {
        const { container } = (0, react_1.render)((0, jsx_runtime_1.jsx)(ChatbotHeaderMenu_1.ChatbotHeaderMenu, { className: "custom-header-menu", onMenuToggle: jest.fn() }));
        expect(container.querySelector('.custom-header-menu')).toBeTruthy();
    });
    it('should call onMenuToggle when ChatbotHeaderMenu button is clicked', () => {
        const onMenuToggle = jest.fn();
        (0, react_1.render)((0, jsx_runtime_1.jsx)(ChatbotHeaderMenu_1.ChatbotHeaderMenu, { className: "custom-header-menu", onMenuToggle: onMenuToggle }));
        react_1.fireEvent.click(react_1.screen.getByRole('button', { name: 'Chat history menu' }));
        expect(onMenuToggle).toHaveBeenCalled();
    });
    it('should handle isCompact', () => {
        (0, react_1.render)((0, jsx_runtime_1.jsx)(ChatbotHeaderMenu_1.ChatbotHeaderMenu, { className: "custom-header-menu", onMenuToggle: jest.fn(), isCompact: true, "data-testid": "button" }));
        expect(react_1.screen.getByTestId('button')).toHaveClass('pf-m-compact');
    });
});
