import * as __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__ from "@tachybase/test/e2e";
import * as __WEBPACK_EXTERNAL_MODULE__templatesOfBug_mjs__ from "./templatesOfBug.mjs";
__WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.test.describe('z-index of dialog', ()=>{
    (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.test)('edit block title', async (param)=>{
        let { page, mockPage } = param;
        await mockPage(__WEBPACK_EXTERNAL_MODULE__templatesOfBug_mjs__.T2797).goto();
        await page.getByLabel('action-Action.Link-Popup').click();
        await page.getByLabel('action-Action-Popup drawer-').click();
        await page.getByText('UsersConfigure fieldsSubmitConfigure actions').hover();
        await page.getByRole('button', {
            name: 'designer-schema-settings-'
        }).hover();
        await page.getByRole('menuitem', {
            name: 'Edit block title'
        }).click();
        await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.expect)(page.getByLabel('block-item-Input-users-Block')).toBeVisible();
        await page.getByRole('button', {
            name: 'OK',
            exact: true
        }).click();
        await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.expect)(page.getByLabel('block-item-Input-users-Block')).not.toBeVisible();
    });
    (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.test)('multilevel modal', async (param)=>{
        let { page, mockPage, mockRecord } = param;
        const nocoPage = await mockPage(__WEBPACK_EXTERNAL_MODULE__templatesOfBug_mjs__.T2838).waitForInit();
        await mockRecord('general');
        await nocoPage.goto();
        await page.getByLabel('action-Action.Link-Edit').click();
        await page.getByLabel('action-Action-Edit button 1-').click();
        await page.getByLabel('action-Action-Edit button 2-').click();
        await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.expect)(page.getByLabel('block-item-CollectionField-')).toBeVisible();
        await page.getByLabel('action-Action-Submit-submit-').click();
        await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.expect)(page.getByLabel('block-item-CollectionField-')).not.toBeVisible();
    });
});
