"use strict";
var __webpack_exports__ = {};
const e2e_namespaceObject = require("@tachybase/test/e2e");
const external_templatesOfBug_js_namespaceObject = require("../templatesOfBug.js");
(0, e2e_namespaceObject.test)('should save conditions', async (param)=>{
    let { page, mockPage } = param;
    await mockPage(external_templatesOfBug_js_namespaceObject.T2183).goto();
    await page.getByLabel('action-Filter.Action-Filter-filter-users-table').click();
    await page.getByText('Add condition', {
        exact: true
    }).click();
    await page.getByTestId('select-filter-field').click();
    await page.getByRole('menuitemcheckbox', {
        name: 'ID',
        exact: true
    }).click();
    await page.getByRole('button', {
        name: 'Save conditions'
    }).click();
    await page.reload();
    await page.getByLabel('action-Filter.Action-Filter-filter-users-table').click();
    await (0, e2e_namespaceObject.expect)(page.getByTestId('select-filter-field').getByText('ID')).toBeVisible();
    await (0, e2e_namespaceObject.expect)(page.getByTestId('select-filter-operator').getByText('is')).toBeVisible();
});
(0, e2e_namespaceObject.test)('the input box displayed should correspond to the field type', async (param)=>{
    let { page, mockPage } = param;
    await mockPage(external_templatesOfBug_js_namespaceObject.T2186).goto();
    await page.getByLabel('action-Filter.Action-Filter-filter-users-table').click();
    await page.getByTestId('select-filter-field').click();
    await page.getByRole('menuitemcheckbox', {
        name: 'ID',
        exact: true
    }).click();
    await (0, e2e_namespaceObject.expect)(page.getByRole('spinbutton')).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
});
