"use strict";
var __webpack_exports__ = {};
const e2e_namespaceObject = require("@tachybase/test/e2e");
(0, e2e_namespaceObject.test)('single page', async (param)=>{
    let { page, mockPage } = param;
    const pageTitle1 = 'page1';
    const pageTitle2 = 'page2';
    await mockPage({
        name: pageTitle1
    }).goto();
    await mockPage({
        name: pageTitle2
    }).goto();
    await page.getByRole('menu').getByText(pageTitle1).click();
    await page.getByRole('menu').getByText(pageTitle1).hover();
    await page.getByLabel(pageTitle1).getByLabel('designer-schema-settings').hover();
    await page.getByRole('menuitem', {
        name: 'Move to'
    }).click();
    await page.getByLabel('block-item-TreeSelect-Target').locator('.ant-select').click();
    await page.locator('.ant-select-dropdown').getByText(pageTitle2).click();
    await page.getByRole('button', {
        name: 'OK',
        exact: true
    }).click();
    const page1 = await page.getByRole('menu').getByText(pageTitle1).boundingBox();
    const page2 = await page.getByRole('menu').getByText(pageTitle2).boundingBox();
    (0, e2e_namespaceObject.expect)(page2.x).toBeLessThan(page1.x);
});
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
});
