"use strict";
var __webpack_exports__ = {};
const e2e_namespaceObject = require("@tachybase/test/e2e");
e2e_namespaceObject.test.describe('multi data details block schema settings', ()=>{
    (0, e2e_namespaceObject.test)('supported options', async (param)=>{
        let { page, mockPage, mockRecord } = param;
        const nocoPage = await mockPage(e2e_namespaceObject.oneDetailBlockWithM2oFieldToGeneral).waitForInit();
        await mockRecord('general');
        await nocoPage.goto();
        await (0, e2e_namespaceObject.expectSettingsMenu)({
            page,
            showMenu: async ()=>{
                await page.getByLabel('block-item-CardItem-targetToGeneral-details').hover();
                await page.getByLabel('designer-schema-settings-CardItem-DetailsDesigner-targetToGeneral').hover();
            },
            supportedOptions: [
                'Edit block title',
                'Set the data scope',
                'Set default sorting rules',
                'Save as template',
                'Delete'
            ]
        });
    });
});
e2e_namespaceObject.test.describe('actions schema settings', ()=>{
    (0, e2e_namespaceObject.test)('edit & delete & duplicate', async (param)=>{
        let { page, mockPage, mockRecord } = param;
        await mockPage(e2e_namespaceObject.oneEmptyDetailsBlock).goto();
        await mockRecord('general');
        await page.getByLabel('schema-initializer-ActionBar-detailsWithPaging:configureActions-general').hover();
        await page.getByRole('menuitem', {
            name: 'Edit'
        }).click();
        await page.getByRole('menuitem', {
            name: 'Delete'
        }).click();
        await page.mouse.move(0, 300);
        await (0, e2e_namespaceObject.expectSettingsMenu)({
            page,
            showMenu: async ()=>{
                await page.getByRole('button', {
                    name: 'Edit'
                }).hover();
                await page.getByRole('button', {
                    name: 'designer-schema-settings-Action'
                }).hover();
            },
            supportedOptions: [
                'Edit button',
                'Linkage rules',
                'Open mode',
                'Popup size',
                'Delete'
            ]
        });
        await (0, e2e_namespaceObject.expectSettingsMenu)({
            page,
            showMenu: async ()=>{
                await page.getByRole('button', {
                    name: 'Delete'
                }).hover();
                await page.getByRole('button', {
                    name: 'designer-schema-settings-Action'
                }).hover();
            },
            supportedOptions: [
                'Edit button',
                'Linkage rules',
                'Delete'
            ]
        });
    });
});
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
});
