"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
var react_2 = require("@testing-library/react");
var icons_1 = require("../icons");
var SidePanelEmptyState_1 = require("./SidePanelEmptyState");
describe('SidePanelEmptyState test', function () {
    it('should render correct default state', function () {
        (0, react_2.render)(react_1.default.createElement(SidePanelEmptyState_1.SidePanelEmptyState, { text: "test" }));
        expect(react_2.screen.getByText('test')).toBeInTheDocument();
        expect(react_2.screen.getByTestId('SvgAttributesList')).toBeInTheDocument();
        expect(react_2.screen.queryByTestId('empty-state-secondary-text')).not.toBeInTheDocument();
    });
    it('should render icon passed in IconRenderer', function () {
        (0, react_2.render)(react_1.default.createElement(SidePanelEmptyState_1.SidePanelEmptyState, { IconRenderer: icons_1.NoData, text: "test" }));
        expect(react_2.screen.getByText('test')).toBeInTheDocument();
        expect(react_2.screen.getByTestId('SvgNoData')).toBeInTheDocument();
        expect(react_2.screen.queryByTestId('empty-state-secondary-text')).not.toBeInTheDocument();
    });
    it('should render secondary text', function () {
        (0, react_2.render)(react_1.default.createElement(SidePanelEmptyState_1.SidePanelEmptyState, { text: "test", secondaryText: "secondaryTest" }));
        expect(react_2.screen.getByText('test')).toBeInTheDocument();
        expect(react_2.screen.getByText('secondaryTest')).toBeInTheDocument();
        expect(react_2.screen.getByTestId('SvgAttributesList')).toBeInTheDocument();
    });
});
