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";
describe('TreeSelect', ()=>{
    it('should display the value of user input', async ()=>{
        var _container_querySelector;
        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 input = container.querySelector('input');
        await __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.userEvent.click(input);
        await __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.userEvent.click(__WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.screen.getByText('选项1'));
        expect(null === (_container_querySelector = container.querySelector('.ant-tag')) || void 0 === _container_querySelector ? void 0 : _container_querySelector.innerHTML).toBe('选项1');
    });
});
