import * as __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__ from "@tachybase/test/e2e";
__WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.test.describe('grid card block schema settings', ()=>{
    (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.test)('supported options', async (param)=>{
        let { page, mockPage } = param;
        await mockPage(__WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.oneEmptyGridCardBlock).goto();
        await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.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, __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.test)('set the count of columns displayed in a row', async (param)=>{
        let { page, mockPage, mockRecords } = param;
        const nocoPage = await mockPage(__WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.oneEmptyGridCardBlock).waitForInit();
        await mockRecords('general', 10);
        await nocoPage.goto();
        let boxSize = await page.getByLabel('grid-card-item').first().boundingBox();
        (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.expect)(boxSize.width).toBeGreaterThan(400);
        (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.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, __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.expect)(boxSize.width).toBeGreaterThan(600);
        (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.expect)(boxSize.width).toBeLessThan(620);
    });
});
__WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.test.describe('actions schema settings', ()=>{});
