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.skip('RecordPicker', ()=>{
    it('should show selected options', 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"], {}));
        let selector;
        await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(()=>{
            selector = document.querySelector('.ant-select-selector');
            expect(selector).toBeInTheDocument();
        });
        await __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.userEvent.click(selector);
        await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(()=>{
            expect(__WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.screen.queryByText(/select record/i)).toBeInTheDocument();
        });
        const checkboxes = document.querySelectorAll('.ant-checkbox');
        await __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.userEvent.click(checkboxes[2]);
        await __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.userEvent.click(__WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.screen.getByText(/submit/i));
        await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(()=>{
            expect((0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.within)(selector).queryByText(/软件开发/i)).toBeInTheDocument();
            expect(__WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.screen.queryByText(/软件开发/i, {
                selector: '.test-record-picker-read-pretty-item'
            })).toBeInTheDocument();
        });
    });
});
