import React from 'react';
import { render, screen } from '@testing-library/react';
import ChatbotFooter from './ChatbotFooter';
import '@testing-library/jest-dom';
describe('ChatbotFooter', () => {
    it('should render ChatbotFooter with children', () => {
        render(React.createElement(ChatbotFooter, null, "Chatbot Content"));
        expect(screen.getByText('Chatbot Content')).toBeTruthy();
    });
    it('should render ChatbotFooter with custom classname', () => {
        const { container } = render(React.createElement(ChatbotFooter, { className: "custom-class" }, "Chatbot Content"));
        expect(container.querySelector('.custom-class')).toBeTruthy();
    });
    it('should handle isCompact', () => {
        render(React.createElement(ChatbotFooter, { className: "custom-class", isCompact: true, "data-testid": "footer" }, "Chatbot Content"));
        expect(screen.getByTestId('footer')).toHaveClass('pf-m-compact');
    });
});
