"use strict";
var __webpack_exports__ = {};
const e2e_namespaceObject = require("@tachybase/test/e2e");
(0, e2e_namespaceObject.test)('selects the checkbox of a table row and deletes the selected row', async (param)=>{
    let { page, mockPage, mockRecords } = param;
    const nocoPage = await mockPage(e2e_namespaceObject.checkboxForTableRow).waitForInit();
    const records = await mockRecords('t_fhdhd0nk7b9', 3);
    await nocoPage.goto();
    await (0, e2e_namespaceObject.expect)(page.getByText(records[0].f_vbrlno0zej9)).toBeVisible();
    await page.getByLabel('table-index-1').hover();
    await page.getByRole('checkbox', {
        name: 'checkbox'
    }).click();
    await page.getByLabel('action-Action-Delete-destroy-t_fhdhd0nk7b9-table').click();
    await (0, e2e_namespaceObject.expect)(page.getByText('Are you sure you want to delete it?')).toBeVisible();
    await page.getByRole('button', {
        name: 'OK',
        exact: true
    }).click();
    await (0, e2e_namespaceObject.expect)(page.getByText(records[0].f_vbrlno0zej9)).not.toBeVisible();
});
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
});
