"use strict";
var __webpack_exports__ = {};
const e2e_namespaceObject = require("@tachybase/test/e2e");
const external_templatesOfBug_js_namespaceObject = require("./templatesOfBug.js");
e2e_namespaceObject.test.describe('z-index of dialog', ()=>{
    (0, e2e_namespaceObject.test)('edit block title', async (param)=>{
        let { page, mockPage } = param;
        await mockPage(external_templatesOfBug_js_namespaceObject.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, e2e_namespaceObject.expect)(page.getByLabel('block-item-Input-users-Block')).toBeVisible();
        await page.getByRole('button', {
            name: 'OK',
            exact: true
        }).click();
        await (0, e2e_namespaceObject.expect)(page.getByLabel('block-item-Input-users-Block')).not.toBeVisible();
    });
    (0, e2e_namespaceObject.test)('multilevel modal', async (param)=>{
        let { page, mockPage, mockRecord } = param;
        const nocoPage = await mockPage(external_templatesOfBug_js_namespaceObject.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, e2e_namespaceObject.expect)(page.getByLabel('block-item-CollectionField-')).toBeVisible();
        await page.getByLabel('action-Action-Submit-submit-').click();
        await (0, e2e_namespaceObject.expect)(page.getByLabel('block-item-CollectionField-')).not.toBeVisible();
    });
});
var __webpack_export_target__ = exports;
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
    value: true
});
