"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 MessageLoading_1 = __importDefault(require("./MessageLoading"));
test('Renders with pf-chatbot__message-loading class by default', () => {
    (0, react_1.render)((0, jsx_runtime_1.jsx)(MessageLoading_1.default, { "data-testid": "test-id" }));
    expect(react_1.screen.getByTestId('test-id')).toHaveClass('pf-chatbot__message-loading', { exact: true });
});
test('Renders with pf-m-primary class when isPrimary is true', () => {
    (0, react_1.render)((0, jsx_runtime_1.jsx)(MessageLoading_1.default, { "data-testid": "test-id", isPrimary: true }));
    expect(react_1.screen.getByTestId('test-id')).toHaveClass('pf-chatbot__message-loading pf-m-primary');
});
test('Renders loading word when loadingWord is passed', () => {
    (0, react_1.render)((0, jsx_runtime_1.jsx)(MessageLoading_1.default, { loadingWord: "Loading message" }));
    expect(react_1.screen.getByText('Loading message')).toBeInTheDocument();
});
test('Spreads additional props', () => {
    (0, react_1.render)((0, jsx_runtime_1.jsx)(MessageLoading_1.default, { "data-testid": "test-id", id: "custom-id" }));
    expect(react_1.screen.getByTestId('test-id')).toHaveAttribute('id', 'custom-id');
});
