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('AssociationSelect', ()=>{
    it('should render correctly', async ()=>{
        (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 selector = document.querySelector('.ant-select-selector');
        expect(selector).toBeInTheDocument();
        await __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.userEvent.click(selector);
        expect(document.querySelector('.ant-spin')).toBeInTheDocument();
        await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.sleep)(500);
        expect(__WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.screen.getByText('title1')).toBeInTheDocument();
        expect(__WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.screen.getByText('title2')).toBeInTheDocument();
    });
});
