import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
import "react";
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__ from "@tachybase/test/client";
import * as __WEBPACK_EXTERNAL_MODULE__demos_demo1_mjs__ from "../demos/demo1.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__demos_demo2_mjs__ from "../demos/demo2.mjs";
describe('Markdown', ()=>{
    it('should display the value of user input', ()=>{
        const { container } = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.render)(/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__demos_demo1_mjs__["default"], {}));
        const textarea = container.querySelector('.ant-input');
        (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.act)(()=>{
            __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.fireEvent.change(textarea, {
                target: {
                    value: '## Hello World'
                }
            });
        });
        expect(textarea.value).toBe('## Hello World');
    });
});
describe('Markdown.Void', ()=>{
    it('should display the value of user input', async ()=>{
        const { container } = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.render)(/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__demos_demo2_mjs__["default"], {}));
        const button = container.querySelector('.ant-btn');
        expect(button).not.toBeNull();
        expect(container.querySelector('.ant-input')).toBeNull();
    });
});
