"use strict";
var __webpack_exports__ = {};
const e2e_namespaceObject = require("@tachybase/test/e2e");
e2e_namespaceObject.test.describe('grid card block schema settings', ()=>{
    (0, e2e_namespaceObject.test)('supported options', async (param)=>{
        let { page, mockPage } = param;
        await mockPage(e2e_namespaceObject.oneEmptyGridCardBlock).goto();
        await (0, e2e_namespaceObject.expectSettingsMenu)({
            page,
            showMenu: async ()=>{
                await page.getByLabel('block-item-BlockItem-general-grid-card').hover();
                await page.getByLabel('designer-schema-settings-BlockItem-GridCard.Designer-general').hover();
            },
            supportedOptions: [
                'Set the count of columns displayed in a row',
                'Set the data scope',
                'Set default sorting rules',
                'Records per page',
                'Save as template',
                'Delete'
            ]
        });
    });
    (0, e2e_namespaceObject.test)('set the count of columns displayed in a row', async (param)=>{
        let { page, mockPage, mockRecords } = param;
        const nocoPage = await mockPage(e2e_namespaceObject.oneEmptyGridCardBlock).waitForInit();
        await mockRecords('general', 10);
        await nocoPage.goto();
        let boxSize = await page.getByLabel('grid-card-item').first().boundingBox();
        (0, e2e_namespaceObject.expect)(boxSize.width).toBeGreaterThan(400);
        (0, e2e_namespaceObject.expect)(boxSize.width).toBeLessThan(410);
        await page.getByLabel('block-item-BlockItem-general-grid-card').hover();
        await page.getByLabel('designer-schema-settings-BlockItem-GridCard.Designer-general').hover();
        await page.getByRole('menuitem', {
            name: 'Set the count of columns displayed in a row'
        }).click();
        await page.getByLabel('block-item-Slider-general-Desktop device').getByText('2', {
            exact: true
        }).click();
        await page.getByRole('button', {
            name: 'OK',
            exact: true
        }).click();
        await page.reload();
        boxSize = await page.getByLabel('grid-card-item').first().boundingBox();
        (0, e2e_namespaceObject.expect)(boxSize.width).toBeGreaterThan(600);
        (0, e2e_namespaceObject.expect)(boxSize.width).toBeLessThan(620);
    });
});
e2e_namespaceObject.test.describe('actions schema settings', ()=>{});
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
});
