"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
const react_2 = require("@testing-library/react");
const AccordionTab_1 = require("../AccordionTab");
describe('AccordionTab component', () => {
    it('is open by default with startOpen prop', async () => {
        (0, react_2.render)(react_1.default.createElement(AccordionTab_1.AccordionTab, { id: "test", className: "", label: "test", startOpen: true, accordionStyle: "plain" }, "Child Element Text"));
        expect(await react_2.screen.getByText(/Child Element Text/)).toBeVisible();
    });
    it('displays an icon when accordionStyle = "fileTree"', async () => {
        (0, react_2.render)(react_1.default.createElement(AccordionTab_1.AccordionTab, { id: "test", className: "", label: "test", startOpen: true, accordionStyle: "file-tree" }, "Child Element Text"));
        expect(await react_2.screen.getByText(/Child Element Text/)).toBeInTheDocument();
        expect(await react_2.screen.getByRole('img')).toBeInTheDocument();
    });
});
