"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 NeurobagelSearch_1 = require("../NeurobagelSearch");
describe("NeurobagelSearch component", () => {
    it("? toggle can be clicked", async () => {
        (0, react_2.render)(react_1.default.createElement(NeurobagelSearch_1.NeurobagelSearch, null));
        await react_2.fireEvent.click(await react_2.screen.getByRole("switch"));
        expect(await react_2.screen.findByRole("switch")).toHaveClass("open");
        expect(react_2.screen.getByText("Neurobagel is a collection of tools for harmonizing phenotypic and imaging data descriptions", { exact: false })).toBeVisible();
    });
});
