import * as __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__ from "@tachybase/test/e2e";
__WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.test.describe('variables with default value', ()=>{
    (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.test)('current form', async (param)=>{
        let { page, mockPage, mockRecord } = param;
        const nocoPage = await mockPage(__WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.formBlockDefaultValueTemplate).waitForInit();
        await mockRecord('general');
        await nocoPage.goto();
        await page.getByRole('button', {
            name: 'Add new'
        }).click();
        await page.getByLabel('block-item-CollectionField-general-form-general.m2oField0-m2oField0').getByTestId('select-object-single').click();
        await page.getByRole('option', {
            name: '1',
            exact: true
        }).click();
        await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.expect)(page.getByLabel('block-item-CollectionField-general-form-general.singleLineText-singleLineText').getByRole('textbox')).toHaveValue('1');
        await page.getByLabel('block-item-CollectionField-general-form-general.m2oField0-m2oField0').getByTestId('select-object-single').hover();
        await page.getByLabel('icon-close-select').click();
        await page.waitForTimeout(500);
        await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.expect)(page.getByLabel('block-item-CollectionField-general-form-general.singleLineText-singleLineText').getByRole('textbox')).toHaveValue('');
        await page.getByLabel('block-item-CollectionField-general-form-general.m2oField0-m2oField0').getByTestId('select-object-single').click();
        await page.getByRole('option', {
            name: '1',
            exact: true
        }).click();
        await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.expect)(page.getByLabel('block-item-CollectionField-general-form-general.singleLineText-singleLineText').getByRole('textbox')).toHaveValue('1');
    });
});
