import * as __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__ from "@tachybase/test/e2e";
(0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.test)('actions', async (param)=>{
    let { page, mockPage } = param;
    await mockPage(__WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.oneEmptyTableBlockBasedOnUsers).goto();
    await page.getByLabel('schema-initializer-ActionBar-table:configureActions-users').hover();
    await page.getByRole('menuitem', {
        name: 'Add new'
    }).click();
    await page.getByRole('menuitem', {
        name: 'Delete'
    }).click();
    await page.getByRole('menuitem', {
        name: 'Refresh'
    }).click();
    await page.mouse.move(300, 0);
    const addNewBtn = page.getByLabel('action-Action-Add new-create-users-table');
    await addNewBtn.hover();
    const addNewDrag = page.getByLabel('action-Action-Add new-create-users-table').getByLabel('designer-drag');
    await addNewDrag.hover();
    const delBtn = page.getByLabel('action-Action-Delete-destroy-users-table');
    await addNewDrag.dragTo(delBtn);
    const refreshBtn = page.getByLabel('action-Action-Refresh-refresh-users-table');
    await addNewBtn.hover();
    await addNewBtn.getByLabel('designer-drag').dragTo(refreshBtn);
    const addNew = await addNewBtn.boundingBox();
    const del = await delBtn.boundingBox();
    const refresh = await refreshBtn.boundingBox();
    const max = Math.max(addNew.x, refresh.x, del.x);
    (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.expect)(addNew.x).toBe(max);
});
(0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.test)('fields', async ()=>{});
