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(Chatbot Content);
expect(screen.getByText('Chatbot Content')).toBeTruthy();
});
it('should render ChatbotFooter with custom classname', () => {
const { container } = render(Chatbot Content);
expect(container.querySelector('.custom-class')).toBeTruthy();
});
it('should handle isCompact', () => {
render(
Chatbot Content
);
expect(screen.getByTestId('footer')).toHaveClass('pf-m-compact');
});
it('should handle isPrimary', () => {
render(
Chatbot Content
);
expect(screen.getByTestId('footer')).toHaveClass('pf-m-primary');
});
});