@m4l/testing 0.0.23 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +679 -0
- package/chunks/reactLeaflet-Cffkauof.js +1846 -0
- package/chunks/render-CsuV8xqo.js +17 -0
- package/chunks/userPreferences-BmOgRaIX.js +493 -0
- package/index.js +76 -25
- package/mocks/index.js +41 -0
- package/package.json +85 -102
- package/playwright/index.js +2041 -0
- package/rtl/index.js +180 -0
- package/types/libs/observability/mf/src/browserRuntimeHandles.d.ts +112 -0
- package/types/libs/observability/mf/src/diagnosticLogging.d.ts +2 -0
- package/types/libs/observability/mf/src/diagnosticPolicies/catalog.d.ts +267 -0
- package/types/libs/observability/mf/src/diagnosticPolicies/contracts.d.ts +64 -0
- package/types/libs/observability/mf/src/diagnosticPolicies/host.d.ts +139 -0
- package/types/libs/observability/mf/src/diagnosticPolicies/index.d.ts +6 -0
- package/types/libs/observability/mf/src/diagnosticPolicies/operativeMyGpsDevices.d.ts +104 -0
- package/types/libs/observability/mf/src/diagnosticPolicies/sharedReportsList.d.ts +44 -0
- package/types/libs/observability/mf/src/diagnosticPolicyKeys.d.ts +34 -0
- package/types/libs/observability/mf/src/index.d.ts +14 -0
- package/types/libs/observability/mf/src/runtimeSmoke.d.ts +13 -0
- package/types/libs/observability/mf/src/telemetry.d.ts +2 -0
- package/types/libs/observability/shared/src/diagnosticLogging.d.ts +97 -0
- package/types/libs/observability/shared/src/index.d.ts +6 -0
- package/types/libs/observability/shared/src/runtimeHandles.d.ts +27 -0
- package/types/libs/observability/shared/src/telemetry.d.ts +179 -0
- package/types/packages/testing/mocks/src/constants.d.ts +10 -0
- package/types/packages/testing/mocks/src/fixtures.d.ts +258 -0
- package/types/packages/testing/mocks/src/helpers/environment.d.ts +44 -0
- package/types/packages/testing/mocks/src/helpers/hostTools.d.ts +10 -0
- package/types/packages/testing/mocks/src/helpers/index.d.ts +5 -0
- package/types/packages/testing/mocks/src/helpers/moduleDictionary.d.ts +9 -0
- package/types/packages/testing/mocks/src/helpers/toaster.d.ts +9 -0
- package/types/packages/testing/mocks/src/helpers/userPreferences.d.ts +17 -0
- package/types/packages/testing/mocks/src/index.d.ts +4 -0
- package/types/packages/testing/mocks/src/types.d.ts +233 -0
- package/types/packages/testing/playwright/src/fixtures/createHostAreaFixture.d.ts +5 -0
- package/types/packages/testing/playwright/src/fixtures/createHostAuthenticatedMfMenuFixture.d.ts +5 -0
- package/types/packages/testing/playwright/src/fixtures/createHostAuthenticatedMfModuleDictionaryFixture.d.ts +5 -0
- package/types/packages/testing/playwright/src/fixtures/createHostAuthenticatedSessionFixture.d.ts +6 -0
- package/types/packages/testing/playwright/src/fixtures/createHostCookieFixture.d.ts +5 -0
- package/types/packages/testing/playwright/src/fixtures/createHostGuestSessionFixture.d.ts +5 -0
- package/types/packages/testing/playwright/src/fixtures/createHostLocaleFixture.d.ts +5 -0
- package/types/packages/testing/playwright/src/fixtures/createHostMfPreviewDynamicParamsFixture.d.ts +5 -0
- package/types/packages/testing/playwright/src/fixtures/createHostModuleDictionaryFixture.d.ts +11 -0
- package/types/packages/testing/playwright/src/fixtures/createHostUiConfigFixture.d.ts +7 -0
- package/types/packages/testing/playwright/src/fixtures/createHostUserPreferencesFixture.d.ts +6 -0
- package/types/packages/testing/playwright/src/fixtures/createListResponseFixture.d.ts +6 -0
- package/types/packages/testing/playwright/src/fixtures/index.d.ts +12 -0
- package/types/packages/testing/playwright/src/helpers/attachJson.d.ts +9 -0
- package/types/packages/testing/playwright/src/helpers/formAccess.d.ts +53 -0
- package/types/packages/testing/playwright/src/helpers/formSelect.d.ts +51 -0
- package/types/packages/testing/playwright/src/helpers/formatFailedChecks.d.ts +18 -0
- package/types/packages/testing/playwright/src/helpers/index.d.ts +16 -0
- package/types/packages/testing/playwright/src/helpers/listDatagrid.d.ts +219 -0
- package/types/packages/testing/playwright/src/helpers/listDetail.d.ts +65 -0
- package/types/packages/testing/playwright/src/helpers/listFilter.d.ts +27 -0
- package/types/packages/testing/playwright/src/helpers/listSort.d.ts +19 -0
- package/types/packages/testing/playwright/src/helpers/listStatePersistence.d.ts +15 -0
- package/types/packages/testing/playwright/src/helpers/openHostAccountMenuModule.d.ts +10 -0
- package/types/packages/testing/playwright/src/helpers/openHostAuthenticatedMfPreviewModule.d.ts +5 -0
- package/types/packages/testing/playwright/src/helpers/openHostMobileSidebarModule.d.ts +15 -0
- package/types/packages/testing/playwright/src/helpers/openHostSidebarModule.d.ts +5 -0
- package/types/packages/testing/playwright/src/helpers/realtimePerformanceBrowser.d.ts +144 -0
- package/types/packages/testing/playwright/src/helpers/viewModeDataGrid.d.ts +67 -0
- package/types/packages/testing/playwright/src/helpers/waitForBrowserCondition.d.ts +38 -0
- package/types/packages/testing/playwright/src/index.d.ts +11 -0
- package/types/packages/testing/playwright/src/installers/index.d.ts +20 -0
- package/types/packages/testing/playwright/src/installers/installHostAlarmsCountRoute.d.ts +5 -0
- package/types/packages/testing/playwright/src/installers/installHostAreasRoute.d.ts +5 -0
- package/types/packages/testing/playwright/src/installers/installHostAuthenticatedBootstrapRoutes.d.ts +6 -0
- package/types/packages/testing/playwright/src/installers/installHostAuthenticatedMfModuleDictionaryRoute.d.ts +5 -0
- package/types/packages/testing/playwright/src/installers/installHostAuthenticatedMfPreviewBootstrap.d.ts +11 -0
- package/types/packages/testing/playwright/src/installers/installHostAuthenticatedSessionRoute.d.ts +6 -0
- package/types/packages/testing/playwright/src/installers/installHostCookiesRoute.d.ts +8 -0
- package/types/packages/testing/playwright/src/installers/installHostGuestBootstrapRoutes.d.ts +7 -0
- package/types/packages/testing/playwright/src/installers/installHostGuestSessionRoute.d.ts +7 -0
- package/types/packages/testing/playwright/src/installers/installHostLocaleRoute.d.ts +5 -0
- package/types/packages/testing/playwright/src/installers/installHostMenusRoute.d.ts +11 -0
- package/types/packages/testing/playwright/src/installers/installHostModuleDictionaryRoute.d.ts +6 -0
- package/types/packages/testing/playwright/src/installers/installHostPasswordNewRoute.d.ts +6 -0
- package/types/packages/testing/playwright/src/installers/installHostPasswordResetRoute.d.ts +6 -0
- package/types/packages/testing/playwright/src/installers/installHostUiConfigAssetRoutes.d.ts +9 -0
- package/types/packages/testing/playwright/src/installers/installHostUiConfigRoute.d.ts +7 -0
- package/types/packages/testing/playwright/src/installers/installHostUserPreferencesRoute.d.ts +6 -0
- package/types/packages/testing/playwright/src/installers/installListEndpointRoute.d.ts +7 -0
- package/types/packages/testing/playwright/src/installers/installMicrofrontendRenderStub.d.ts +9 -0
- package/types/packages/testing/playwright/src/installers/installModulePrivilegesRoute.d.ts +11 -0
- package/types/packages/testing/playwright/src/types.d.ts +598 -0
- package/types/packages/testing/rtl/src/index.d.ts +4 -0
- package/types/packages/testing/rtl/src/matchMedia.d.ts +10 -0
- package/types/packages/testing/rtl/src/render.d.ts +17 -0
- package/types/packages/testing/rtl/src/resizeObserver.d.ts +33 -0
- package/types/packages/testing/rtl/src/storage.d.ts +10 -0
- package/types/packages/testing/src/index.d.ts +6 -0
- package/types/packages/testing/vitest/src/constants.d.ts +24 -0
- package/types/packages/testing/vitest/src/factories/app/index.d.ts +5 -0
- package/types/packages/testing/vitest/src/factories/app/m4lAppBase.d.ts +9 -0
- package/types/packages/testing/vitest/src/factories/app/m4lAppComponents.d.ts +20 -0
- package/types/packages/testing/vitest/src/factories/app/m4lAppCore.d.ts +12 -0
- package/types/packages/testing/vitest/src/factories/app/m4lAppGraphics.d.ts +10 -0
- package/types/packages/testing/vitest/src/factories/app/m4lAppLayouts.d.ts +18 -0
- package/types/packages/testing/vitest/src/factories/base/index.d.ts +1 -0
- package/types/packages/testing/vitest/src/factories/base/m4lBaseComponents.d.ts +13 -0
- package/types/packages/testing/vitest/src/factories/index.d.ts +7 -0
- package/types/packages/testing/vitest/src/factories/leaflet.d.ts +10 -0
- package/types/packages/testing/vitest/src/factories/packages/index.d.ts +7 -0
- package/types/packages/testing/vitest/src/factories/packages/m4lPackageBase.d.ts +11 -0
- package/types/packages/testing/vitest/src/factories/packages/m4lPackageComponents.d.ts +11 -0
- package/types/packages/testing/vitest/src/factories/packages/m4lPackageCore.d.ts +11 -0
- package/types/packages/testing/vitest/src/factories/packages/m4lPackageGclick.d.ts +10 -0
- package/types/packages/testing/vitest/src/factories/packages/m4lPackageGclickRealtime.d.ts +6 -0
- package/types/packages/testing/vitest/src/factories/packages/m4lPackageGraphics.d.ts +9 -0
- package/types/packages/testing/vitest/src/factories/packages/m4lPackageLayouts.d.ts +10 -0
- package/types/packages/testing/vitest/src/factories/reResizable.d.ts +6 -0
- package/types/packages/testing/vitest/src/factories/reactHookForm.d.ts +10 -0
- package/types/packages/testing/vitest/src/factories/reactLeaflet.d.ts +10 -0
- package/types/packages/testing/vitest/src/fixtures.d.ts +71 -0
- package/types/packages/testing/vitest/src/helpers/columnConfigs.d.ts +184 -0
- package/types/packages/testing/vitest/src/helpers/elementMocks.d.ts +166 -0
- package/types/packages/testing/vitest/src/helpers/filterFields.d.ts +37 -0
- package/types/packages/testing/vitest/src/helpers/index.d.ts +9 -0
- package/types/packages/testing/vitest/src/helpers/mapStore.d.ts +9 -0
- package/types/packages/testing/vitest/src/helpers/moduleContract.d.ts +15 -0
- package/types/packages/testing/vitest/src/helpers/rhf.d.ts +8 -0
- package/types/packages/testing/vitest/src/helpers/serialization.d.ts +7 -0
- package/types/packages/testing/vitest/src/helpers/sortFields.d.ts +28 -0
- package/types/packages/testing/vitest/src/helpers/windowSizes.d.ts +1 -0
- package/types/packages/testing/vitest/src/index.d.ts +6 -0
- package/types/packages/testing/vitest/src/installers/consoleError.d.ts +9 -0
- package/types/packages/testing/vitest/src/installers/index.d.ts +2 -0
- package/types/packages/testing/vitest/src/installers/rhfSubmit.d.ts +9 -0
- package/types/packages/testing/vitest/src/types.d.ts +116 -0
- package/vitest/index.js +55 -0
- package/e2e/commands/components/Accordions/commands.d.ts +0 -4
- package/e2e/commands/components/Accordions/commands.js +0 -19
- package/e2e/commands/components/Accordions/types.d.ts +0 -63
- package/e2e/commands/components/CommonActions/commands.d.ts +0 -4
- package/e2e/commands/components/CommonActions/commands.js +0 -11
- package/e2e/commands/components/CommonActions/types.d.ts +0 -20
- package/e2e/commands/components/DataGrid/commands.d.ts +0 -4
- package/e2e/commands/components/DataGrid/commands.js +0 -42
- package/e2e/commands/components/DataGrid/types.d.ts +0 -140
- package/e2e/commands/components/DynamicFilter/commands.d.ts +0 -4
- package/e2e/commands/components/DynamicFilter/commands.js +0 -12
- package/e2e/commands/components/DynamicFilter/types.d.ts +0 -27
- package/e2e/commands/components/DynamicSort/commands.d.ts +0 -4
- package/e2e/commands/components/DynamicSort/commands.js +0 -10
- package/e2e/commands/components/DynamicSort/types.d.ts +0 -26
- package/e2e/commands/components/Filters/commands.d.ts +0 -4
- package/e2e/commands/components/Filters/commands.js +0 -24
- package/e2e/commands/components/Filters/types.d.ts +0 -91
- package/e2e/commands/components/MenuActions/commands.d.ts +0 -4
- package/e2e/commands/components/MenuActions/commands.js +0 -8
- package/e2e/commands/components/MenuActions/types.d.ts +0 -24
- package/e2e/commands/components/Popover/commands.d.ts +0 -4
- package/e2e/commands/components/Popover/commands.js +0 -8
- package/e2e/commands/components/Popover/types.d.ts +0 -15
- package/e2e/commands/components/PropertyValue/commands.d.ts +0 -4
- package/e2e/commands/components/PropertyValue/commands.js +0 -8
- package/e2e/commands/components/PropertyValue/types.d.ts +0 -19
- package/e2e/commands/components/Tab/commands.d.ts +0 -4
- package/e2e/commands/components/Tab/commands.js +0 -9
- package/e2e/commands/components/Tab/types.d.ts +0 -29
- package/e2e/commands/components/WindowBase/commands.d.ts +0 -4
- package/e2e/commands/components/WindowBase/commands.js +0 -20
- package/e2e/commands/components/WindowBase/types.d.ts +0 -84
- package/e2e/commands/components/index.d.ts +0 -11
- package/e2e/commands/components/index.js +0 -1
- package/e2e/commands/index.d.ts +0 -4
- package/e2e/commands/index.js +0 -1
- package/e2e/commands/intercepts/index.d.ts +0 -2
- package/e2e/commands/intercepts/index.js +0 -1
- package/e2e/commands/intercepts/noPrivileges/interceptCommands.d.ts +0 -5
- package/e2e/commands/intercepts/noPrivileges/interceptCommands.js +0 -15
- package/e2e/commands/intercepts/noPrivileges/types.d.ts +0 -8
- package/e2e/commands/intercepts/noPrivileges/types.js +0 -1
- package/e2e/commands/register.d.ts +0 -4
- package/e2e/commands/register.js +0 -18
- package/e2e/cypress.d.js +0 -1
- package/e2e/cypress.d.ts +0 -23
- package/e2e/index.d.ts +0 -1
- package/e2e/types.d.ts +0 -4
- package/index.d.ts +0 -4
- package/index.test.d.ts +0 -1
- package/testComponents/DataGrid/helpers.d.ts +0 -5
- package/testComponents/DataGrid/helpers.js +0 -95
- package/testComponents/DataGrid/index.d.ts +0 -2
- package/testComponents/DataGrid/index.js +0 -1
- package/testComponents/DataGrid/types.d.ts +0 -54
- package/testComponents/DataGrid/types.js +0 -1
- package/testComponents/DynamicFilter/helpers.d.ts +0 -5
- package/testComponents/DynamicFilter/helpers.js +0 -18
- package/testComponents/DynamicFilter/index.d.ts +0 -1
- package/testComponents/DynamicFilter/index.js +0 -1
- package/testComponents/DynamicFilter/types.d.ts +0 -0
- package/testComponents/DynamicSort/helpers.d.ts +0 -5
- package/testComponents/DynamicSort/helpers.js +0 -16
- package/testComponents/DynamicSort/index.d.ts +0 -1
- package/testComponents/DynamicSort/index.js +0 -1
- package/testComponents/index.d.ts +0 -3
- package/testComponents/index.js +0 -1
- package/testTools/constants.d.ts +0 -0
- package/testTools/index.d.ts +0 -1
- package/testTools/index.js +0 -1
- package/testTools/mocks.d.ts +0 -0
- package/testTools/setup.d.ts +0 -0
- package/testTools/setup.js +0 -1
- package/testTools/types.d.ts +0 -0
- package/testTools/utils.d.ts +0 -11
- package/testTools/utils.js +0 -23
- package/vite-env.d.ts +0 -5
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
const f = () => {
|
|
2
|
-
Cypress.Commands.add("m4lDataGrid", (i) => cy.get(i).find('[class^="M4LDataGrid-root"]').filter(":visible").first()), Cypress.Commands.add("m4lDataGridValidateVisibleColumns", (i, n, a, o = 1) => {
|
|
3
|
-
let l = 0, t = o;
|
|
4
|
-
n(a).forEach((r) => {
|
|
5
|
-
r.visible && (cy.log(`Validating visible column: ${r.headerText} , index: ${t}`), t++, cy.m4lDataGrid(i).find("[role=row]").find(`[role=columnheader][aria-colindex=${t}]`).should("have.text", r.headerText), cy.m4lDataGrid(i).find("[role=row]").find(`[role=gridcell][aria-colindex=${t}]`).should("contain", r.value), cy.m4lDataGrid(i).find("[role=row]").find(`[role=columnheader][aria-colindex=${t}]`).then((s) => {
|
|
6
|
-
const d = s.width();
|
|
7
|
-
d !== void 0 && (l += d), cy.m4lDataGrid(i).find("[role=grid]").scrollTo(l, 0, { duration: 100, ensureScrollable: !1 });
|
|
8
|
-
}));
|
|
9
|
-
});
|
|
10
|
-
}), Cypress.Commands.add("m4lDataGridRow", (i, n, a) => {
|
|
11
|
-
let o = 0, l = 0;
|
|
12
|
-
const t = 10, r = n + 1;
|
|
13
|
-
function s() {
|
|
14
|
-
return cy.m4lDataGrid(i).find("[role=row]").not('[aria-rowindex="1"]').filter(`[aria-rowindex="${r}"]`).then((d) => {
|
|
15
|
-
if (d.length > 0) {
|
|
16
|
-
const e = d[0].getBoundingClientRect();
|
|
17
|
-
if (e.top >= 0 && e.left >= 0 && e.bottom <= (window.innerHeight || document.documentElement.clientHeight) && e.right <= (window.innerWidth || document.documentElement.clientWidth))
|
|
18
|
-
return cy.wrap(d);
|
|
19
|
-
}
|
|
20
|
-
if (l >= t)
|
|
21
|
-
throw new Error(`Row ${r} was not found after ${t} attempts`);
|
|
22
|
-
return l++, cy.m4lDataGrid(i).find("[role=row]").not('[aria-rowindex="1"]').filter((m, e) => {
|
|
23
|
-
const c = e.getBoundingClientRect();
|
|
24
|
-
return c.top >= 0 && c.left >= 0 && c.bottom <= (window.innerHeight || document.documentElement.clientHeight) && c.right <= (window.innerWidth || document.documentElement.clientWidth);
|
|
25
|
-
}).first().then((m) => {
|
|
26
|
-
const e = m.height() || 0;
|
|
27
|
-
return o += e, cy.m4lDataGrid(i).find("[role=grid]").scrollTo(0, o, { duration: 100, ensureScrollable: !1 }).then(() => s());
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
return s().find(`[role=gridcell][aria-colindex="${a}"]`);
|
|
32
|
-
}), Cypress.Commands.add("m4lDataGridRowAction", (i, n, a = 1, o = 1) => {
|
|
33
|
-
cy.m4lDataGridRow(i, a, o).find("button").eq(0).should("be.visible", { timeout: 1e4 }).click(), cy.m4lMenuActionsItem(n);
|
|
34
|
-
}), Cypress.Commands.add("m4lDataGridFindAllColumns", (i) => {
|
|
35
|
-
cy.m4lDataGrid(i).find('[class^="M4LDataGrid-actionsConfigContainer"]').find("button").eq(2).click();
|
|
36
|
-
}), Cypress.Commands.add("m4lDataGridOrCardViewMode", (i, n) => {
|
|
37
|
-
cy.m4lDataGrid(i).find('[class*="M4LDataGrid-actionsConfigContainer"]').find('[class*="M4LDataGrid-containerLeftActions"]').find('button[aria-label="view-mode"]').click(), cy.get("[role=presentation]").find('[class^="MuiPaper-root"]').find("[role=button]").eq(n).click();
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
f as r
|
|
42
|
-
};
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Column configuration for DataGrid in Cypress
|
|
3
|
-
*/
|
|
4
|
-
export type M4LDataGridCypressColumn = {
|
|
5
|
-
/**
|
|
6
|
-
* @param key - The column key
|
|
7
|
-
*/
|
|
8
|
-
key: string;
|
|
9
|
-
/**
|
|
10
|
-
* @param value - The column value
|
|
11
|
-
*/
|
|
12
|
-
value: any;
|
|
13
|
-
/**
|
|
14
|
-
* @param headerText - The column header text
|
|
15
|
-
*/
|
|
16
|
-
headerText: string;
|
|
17
|
-
/**
|
|
18
|
-
* @param visible - Indicates whether the column is visible
|
|
19
|
-
*/
|
|
20
|
-
visible: boolean;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Function that gets the DataGrid column configuration
|
|
25
|
-
*/
|
|
26
|
-
export type M4LGetCypressDataGridColumnsConfig<T> = (data: T) => M4LDataGridCypressColumn[];
|
|
27
|
-
|
|
28
|
-
declare global {
|
|
29
|
-
namespace Cypress {
|
|
30
|
-
interface Chainable {
|
|
31
|
-
/**
|
|
32
|
-
* Gets the grid. Returns the first visible M4LDataGrid under the selector.
|
|
33
|
-
* @param selector grid selector
|
|
34
|
-
* @returns the grid
|
|
35
|
-
* @example
|
|
36
|
-
* cy.m4lDataGrid('[class*="M4LDataGrid-root"]').find('[role=row]').should('have.length.at.least', 1);
|
|
37
|
-
*/
|
|
38
|
-
m4lDataGrid(selector: string ): Chainable<JQuery<HTMLElement>>
|
|
39
|
-
/**
|
|
40
|
-
* Validates the visible columns of the grid. Scrolls horizontally as needed for each column.
|
|
41
|
-
* @example
|
|
42
|
-
* const getColumns = (data: MockItem) => [
|
|
43
|
-
* { key: 'name', headerText: 'Name', value: data.name, visible: true },
|
|
44
|
-
* { key: 'code', headerText: 'Code', value: data.code, visible: true },
|
|
45
|
-
* ];
|
|
46
|
-
* cy.m4lDataGridValidateVisibleColumns('[class*="M4LDataGrid-root"]', getColumns, mockItem, 1);
|
|
47
|
-
*/
|
|
48
|
-
m4lDataGridValidateVisibleColumns<T>(
|
|
49
|
-
/**
|
|
50
|
-
* Grid selector
|
|
51
|
-
*/
|
|
52
|
-
selector: string,
|
|
53
|
-
/**
|
|
54
|
-
* Function that gets the visible columns of the grid
|
|
55
|
-
*/
|
|
56
|
-
getColumnsConfig: M4LGetCypressDataGridColumnsConfig<T>,
|
|
57
|
-
/**
|
|
58
|
-
* Grid data
|
|
59
|
-
*/
|
|
60
|
-
mockData: T,
|
|
61
|
-
/**
|
|
62
|
-
* Column index to get
|
|
63
|
-
*/
|
|
64
|
-
baseColumnIndex?: number
|
|
65
|
-
): Chainable<void>;
|
|
66
|
-
/**
|
|
67
|
-
* Gets the grid row specified by 1-based index, ensuring it is visible in the viewport.
|
|
68
|
-
* @example
|
|
69
|
-
* cy.m4lDataGridRow('[class*="M4LDataGrid-root"]', 2, 1).click(); // row 2, column 1
|
|
70
|
-
*/
|
|
71
|
-
m4lDataGridRow(
|
|
72
|
-
/**
|
|
73
|
-
* Grid selector
|
|
74
|
-
*/
|
|
75
|
-
selector: string,
|
|
76
|
-
/**
|
|
77
|
-
* Row index to get
|
|
78
|
-
*/
|
|
79
|
-
targetRowBaseOneIndex: number,
|
|
80
|
-
/**
|
|
81
|
-
* Column index to get
|
|
82
|
-
*/
|
|
83
|
-
baseOneColumnIndex: number
|
|
84
|
-
): Chainable<JQuery<HTMLElement>>;
|
|
85
|
-
/**
|
|
86
|
-
* Opens the row actions menu for the given row and selects the menu item by index.
|
|
87
|
-
* @example
|
|
88
|
-
* cy.m4lDataGridRowAction('[class*="M4LDataGrid-root"]', 0, 2, 1); // row 2, column 1, first menu item
|
|
89
|
-
*/
|
|
90
|
-
m4lDataGridRowAction(
|
|
91
|
-
/**
|
|
92
|
-
* Grid selector
|
|
93
|
-
*/
|
|
94
|
-
selector: string,
|
|
95
|
-
/**
|
|
96
|
-
* menuActions item index
|
|
97
|
-
*/
|
|
98
|
-
menuItemIndex: number,
|
|
99
|
-
/**
|
|
100
|
-
* Row index to get
|
|
101
|
-
*/
|
|
102
|
-
baseOnetargetRowIndex?: number,
|
|
103
|
-
/**
|
|
104
|
-
* Column index to get
|
|
105
|
-
*/
|
|
106
|
-
baseOneColumnIndex?: number,
|
|
107
|
-
): Chainable<Element>
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Finds and shows all columns of the main grid by opening the configurator (third button).
|
|
111
|
-
* @example
|
|
112
|
-
* cy.m4lDataGridFindAllColumns('[class*="M4LDataGrid-root"]');
|
|
113
|
-
*/
|
|
114
|
-
m4lDataGridFindAllColumns(
|
|
115
|
-
/**
|
|
116
|
-
* Grid selector
|
|
117
|
-
*/
|
|
118
|
-
selector: string,
|
|
119
|
-
): Chainable<Element>
|
|
120
|
-
/**
|
|
121
|
-
* Switches the grid view mode (e.g. Card vs Grid). Clicks the view-mode button and selects option by index.
|
|
122
|
-
* @example
|
|
123
|
-
* cy.m4lDataGridViewMode('[class*="M4LDataGrid-root"]', 0);
|
|
124
|
-
* cy.m4lDataGridViewMode('[class*="M4LDataGrid-root"]', 1);
|
|
125
|
-
*/
|
|
126
|
-
m4lDataGridOrCardViewMode(
|
|
127
|
-
/**
|
|
128
|
-
* Selector for the section to validate
|
|
129
|
-
*/
|
|
130
|
-
section: string,
|
|
131
|
-
/**
|
|
132
|
-
* Card or Grid view mode
|
|
133
|
-
*/
|
|
134
|
-
viewMode: number,
|
|
135
|
-
): Chainable<Element>;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const n = () => {
|
|
2
|
-
Cypress.Commands.add("m4lDynamicFilterInputClick", () => {
|
|
3
|
-
cy.get('[class*="M4LDynamicFilter-root"]').find('[class*="M4LDynamicFilter-inputFilter"]').find("input").click();
|
|
4
|
-
}), Cypress.Commands.add("m4lDynamicFilterApplyedDateField", (i) => {
|
|
5
|
-
cy.m4lDynamicFilterInputClick(), cy.m4lPopover().find("li").contains(i).click(), cy.m4lPopover().find("button").contains("N_D:[common_actions.intro]").click();
|
|
6
|
-
}), Cypress.Commands.add("m4lDynamicFilterRefreshButton", (i) => {
|
|
7
|
-
cy.get(i).find('[class*="M4LDynamicFilter-root"]').find('[class*="M4LDynamicFilter-actions"]').find('[class*="MuiButtonBase-root"]').eq(1);
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
export {
|
|
11
|
-
n as r
|
|
12
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
namespace Cypress {
|
|
3
|
-
interface Chainable {
|
|
4
|
-
/**
|
|
5
|
-
* Clicks on the filter input to open the filter popover.
|
|
6
|
-
* @example
|
|
7
|
-
* cy.m4lDynamicFilterInputClick();
|
|
8
|
-
* cy.m4lPopover().find('li').first().click();
|
|
9
|
-
*/
|
|
10
|
-
m4lDynamicFilterInputClick(): Chainable<Element>;
|
|
11
|
-
/**
|
|
12
|
-
* Applies the date filter: opens filter input, selects the date field by label, then confirms.
|
|
13
|
-
* @example
|
|
14
|
-
* cy.m4lDynamicFilterApplyedDateField('Created at');
|
|
15
|
-
*/
|
|
16
|
-
m4lDynamicFilterApplyedDateField(dateFieldLabel: string): Chainable<Element>;
|
|
17
|
-
/**
|
|
18
|
-
* Gets the refresh button (second button in the filter actions area).
|
|
19
|
-
* @example
|
|
20
|
-
* cy.m4lDynamicFilterRefreshButton('[class*="M4LSplitLayout-splitDetail"]').click();
|
|
21
|
-
*/
|
|
22
|
-
m4lDynamicFilterRefreshButton(selector: string): Chainable<Element>;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
const c = () => {
|
|
2
|
-
Cypress.Commands.add("m4lDynamicSortInputClick", () => {
|
|
3
|
-
cy.get('[class*="M4LDynamicSort-root"]').find('[class*="M4LDynamicSort-inputSort"]').find("input").click();
|
|
4
|
-
}), Cypress.Commands.add("m4lDynamicSortApplyedField", (n) => {
|
|
5
|
-
cy.m4lDynamicSortInputClick(), cy.m4lPopover().find("li").contains(n).click(), cy.m4lPopover().find("button").contains("N_D:[common_actions.intro]").click();
|
|
6
|
-
});
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
c as r
|
|
10
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
namespace Cypress {
|
|
3
|
-
interface Chainable {
|
|
4
|
-
/**
|
|
5
|
-
* Clicks on the sort input to open the sort popover.
|
|
6
|
-
* @example
|
|
7
|
-
* cy.m4lDynamicSortInputClick();
|
|
8
|
-
* cy.m4lPopover().find('li').contains('Name').click();
|
|
9
|
-
*/
|
|
10
|
-
m4lDynamicSortInputClick(): Chainable<Element>
|
|
11
|
-
/**
|
|
12
|
-
* Applies the sort for a field: opens sort input, selects the field by label, then confirms.
|
|
13
|
-
* @example
|
|
14
|
-
* cy.m4lDynamicSortApplyedField('Created at');
|
|
15
|
-
*/
|
|
16
|
-
m4lDynamicSortApplyedField(
|
|
17
|
-
/**
|
|
18
|
-
* Date field label
|
|
19
|
-
*/
|
|
20
|
-
dateFieldLabel: string,
|
|
21
|
-
): Chainable<Element>
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const I = '[class*="M4LSplitLayout-splitDetail"]', y = () => {
|
|
2
|
-
Cypress.Commands.add(
|
|
3
|
-
"m4lFiltersAndSortsOptionsValidation",
|
|
4
|
-
(i, t, n, s, c, l) => {
|
|
5
|
-
const o = () => cy.get('[role="presentation"]', { timeout: 1e3 }).should("exist"), r = (e) => {
|
|
6
|
-
o(), cy.get('[role="presentation"]', { timeout: 1e3 }).find("li").contains(e.key).click(), cy.get('[role="presentation"]', { timeout: 1e3 }).find('[class*="MuiPaper-root-MuiPopover-paper"]').should("be.visible").find("input").eq(e.inputIndex).click({ force: !0 });
|
|
7
|
-
}, T = () => {
|
|
8
|
-
cy.get("[role=presentation]").find("button").contains("N_D:[common_actions.intro]").click({ force: !0 });
|
|
9
|
-
}, d = (e) => {
|
|
10
|
-
["select", "selectAsync", "boolean"].includes(e.type) ? (o(), cy.get('[role="presentation"]', { timeout: 1e3 }).find("li").eq(0).click({ force: !0 }), cy.get("[role=presentation]").find('[class*="MuiPaper-root-MuiPopover-paper"]').find('[class*="M4LWindowBase-headerWindowComponent"]').dblclick({ force: !0 })) : ["string", "number"].includes(e.type) && (o(), cy.get('[role="presentation"]', { timeout: 1e3 }).find("input").eq(1).type(e.value));
|
|
11
|
-
}, a = (e, p, u, E) => {
|
|
12
|
-
cy.log(`Validating filter ${e.key}`), cy.get(p, { timeout: 1e3 }).find(u).eq(E).click(), r(e), d(e), T();
|
|
13
|
-
};
|
|
14
|
-
i(t).forEach((e) => {
|
|
15
|
-
l ? (a(e, n, s, c), cy.get(`${I} [class*="M4LDynamicFilter-actions"] button`).eq(1).click(), cy.wait(e.endpoint, { timeout: 1e3 })) : (a(e, n, s, c), cy.wait(e.endpoint, { timeout: 1e3 }).wait("@getList", { timeout: 1e3 }));
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
), Cypress.Commands.add("m4lFiltersAndSortsPersistValidation", (i, t, n) => {
|
|
19
|
-
cy.get(i).find(`[class*="M4LDynamic${t}-applied${t}s"]`).find(`[class*="M4LDynamic${t}-applied${t}InnerContainer"]`).find("[role=button-chip]").should("have.length", n);
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
y as r
|
|
24
|
-
};
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Filter and sort configuration for Filters
|
|
3
|
-
*/
|
|
4
|
-
export type M4lFiltersAndSortsConfig = {
|
|
5
|
-
/**
|
|
6
|
-
* Filter type for string, number, select, selectAsync and boolean types
|
|
7
|
-
*/
|
|
8
|
-
type: string;
|
|
9
|
-
/**
|
|
10
|
-
* Filter key for select, selectAsync and boolean types
|
|
11
|
-
*/
|
|
12
|
-
key: string;
|
|
13
|
-
/**
|
|
14
|
-
* Filter value for string and number types
|
|
15
|
-
*/
|
|
16
|
-
value: string;
|
|
17
|
-
/**
|
|
18
|
-
* Filter endpoint to wait for
|
|
19
|
-
*/
|
|
20
|
-
endpoint: string;
|
|
21
|
-
/**
|
|
22
|
-
* Filter input index
|
|
23
|
-
*/
|
|
24
|
-
inputIndex: number;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
declare global {
|
|
28
|
-
namespace Cypress {
|
|
29
|
-
interface Chainable {
|
|
30
|
-
/**
|
|
31
|
-
* Validates filter and sort options for DynamicFilter. For each filter, selects it, applies value by type, sends input.
|
|
32
|
-
* @example
|
|
33
|
-
* const mockFilters: M4lDynamicFilterConfig[] = [
|
|
34
|
-
* { type: 'string', key: 'Name', value: 'test', endpoint: '@getList', inputIndex: 1 },
|
|
35
|
-
* ];
|
|
36
|
-
* cy.intercept('GET', '/api/items*').as('getList');
|
|
37
|
-
* cy.m4lDynamicFilterValidateFilterAndSortOptions(
|
|
38
|
-
* (f) => f,
|
|
39
|
-
* mockFilters,
|
|
40
|
-
* '[class*="M4LDynamicFilter-root"]',
|
|
41
|
-
* '[class*="M4LDynamicFilter-filterChip"]',
|
|
42
|
-
* 0
|
|
43
|
-
* );
|
|
44
|
-
*/
|
|
45
|
-
m4lFiltersAndSortsOptionsValidation(
|
|
46
|
-
filters: (mockFilters: M4lFiltersAndSortsConfig[]) => M4lFiltersAndSortsConfig[],
|
|
47
|
-
/**
|
|
48
|
-
* Mock of the filters to validate
|
|
49
|
-
*/
|
|
50
|
-
mockFilters: M4lFiltersAndSortsConfig[],
|
|
51
|
-
/**
|
|
52
|
-
* Selector for the filters or sort to validate
|
|
53
|
-
*/
|
|
54
|
-
filtersOrSort: string,
|
|
55
|
-
/**
|
|
56
|
-
* Selector for the section to validate
|
|
57
|
-
*/
|
|
58
|
-
section: string,
|
|
59
|
-
/**
|
|
60
|
-
* Index of the filters or sort to validate
|
|
61
|
-
*/
|
|
62
|
-
index: number,
|
|
63
|
-
/**
|
|
64
|
-
* If true, validates the filter in the logs tab
|
|
65
|
-
*/
|
|
66
|
-
logs?: boolean,
|
|
67
|
-
): Chainable<Element>;
|
|
68
|
-
/**
|
|
69
|
-
* Asserts that the number of applied filter/sort chips matches the expected length.
|
|
70
|
-
* @example
|
|
71
|
-
* cy.m4lDynamicFilterAndSortsPersist('[class*="M4LSplitLayout-splitDetail"]', 'Filter', 2);
|
|
72
|
-
*/
|
|
73
|
-
m4lFiltersAndSortsPersistValidation(
|
|
74
|
-
/**
|
|
75
|
-
* Selector for the section to validate
|
|
76
|
-
*/
|
|
77
|
-
section: string,
|
|
78
|
-
/**
|
|
79
|
-
* Filter or sort type
|
|
80
|
-
*/
|
|
81
|
-
type: 'Filter' | 'Sort',
|
|
82
|
-
/**
|
|
83
|
-
* Length of applied filters and sorts
|
|
84
|
-
*/
|
|
85
|
-
length: number,
|
|
86
|
-
): Chainable<Element>;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
namespace Cypress {
|
|
3
|
-
interface Chainable {
|
|
4
|
-
/**
|
|
5
|
-
* Gets the MenuItem of a MenuAction at the specified position. Optionally asserts disabled state.
|
|
6
|
-
* @example
|
|
7
|
-
* cy.m4lMenuActionsItem(0); // first item, expect visible
|
|
8
|
-
* cy.m4lMenuActionsItem(1, 'isDisabled'); // second item, expect disabled
|
|
9
|
-
*/
|
|
10
|
-
m4lMenuActionsItem(
|
|
11
|
-
/**
|
|
12
|
-
* menuActions item index
|
|
13
|
-
*/
|
|
14
|
-
menuItemIndex: number,
|
|
15
|
-
/**
|
|
16
|
-
* Indicates whether the menuActions item is disabled
|
|
17
|
-
*/
|
|
18
|
-
isDisabled?: 'isDisabled',
|
|
19
|
-
): Chainable<Element>
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
namespace Cypress {
|
|
3
|
-
interface Chainable {
|
|
4
|
-
/**
|
|
5
|
-
* Gets the currently open popover (MUI Paper with role=presentation).
|
|
6
|
-
* @example
|
|
7
|
-
* cy.m4lDynamicFilterInputClick();
|
|
8
|
-
* cy.m4lPopover().find('li').contains('Name').click();
|
|
9
|
-
*/
|
|
10
|
-
m4lPopover(): Chainable<Element>
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
namespace Cypress {
|
|
3
|
-
interface Chainable {
|
|
4
|
-
/**
|
|
5
|
-
* Gets the PropertyValue element (value part) within the given selector.
|
|
6
|
-
* @example
|
|
7
|
-
* cy.m4lPropertyValue('[class*="M4LPropertyValue-root"]').should('have.text', '123');
|
|
8
|
-
*/
|
|
9
|
-
m4lPropertyValue(
|
|
10
|
-
/**
|
|
11
|
-
* Property selector
|
|
12
|
-
*/
|
|
13
|
-
selector: string,
|
|
14
|
-
): Chainable<Element>
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
namespace Cypress {
|
|
3
|
-
interface Chainable {
|
|
4
|
-
/**
|
|
5
|
-
* Gets the tab button at the given index and asserts its text equals tabTitle.
|
|
6
|
-
* @example
|
|
7
|
-
* cy.m4lTabButton('[class*="M4LTab-root"]', 0); // Without title
|
|
8
|
-
* cy.m4lTabButton('[class*="M4LTab-root"]', 0, 'Details');
|
|
9
|
-
* cy.m4lTabButton('[class*="M4LTab-root"]', 1, 'History');
|
|
10
|
-
*/
|
|
11
|
-
m4lTabButton(
|
|
12
|
-
/**
|
|
13
|
-
* @param selector - The component selector to get the tab button
|
|
14
|
-
*/
|
|
15
|
-
selector: string,
|
|
16
|
-
/**
|
|
17
|
-
* @param tabIndex - The tab index to get the button
|
|
18
|
-
*/
|
|
19
|
-
tabIndex: number,
|
|
20
|
-
/**
|
|
21
|
-
* @param tabTitle - The tab title to validate
|
|
22
|
-
*/
|
|
23
|
-
tabTitle?: string,
|
|
24
|
-
): Chainable<Element>
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
const a = () => {
|
|
2
|
-
Cypress.Commands.add("m4lWindowBaseHeader", () => {
|
|
3
|
-
cy.get('[class^="M4LDragResizeWindowRND-draggableHandle"]').find('[class^="M4LDragResizeWindowRND-draggableCancel"]');
|
|
4
|
-
}), Cypress.Commands.add("m4lWindowBaseLeftAction", (e) => {
|
|
5
|
-
cy.m4lWindowBaseHeader().find("button").eq(e);
|
|
6
|
-
}), Cypress.Commands.add("m4lWindowBaseLeftActionClick", (e) => {
|
|
7
|
-
cy.m4lWindowBaseLeftAction(e).click({ force: !0 });
|
|
8
|
-
}), Cypress.Commands.add("m4lWindowBaseMenuAction", (e) => {
|
|
9
|
-
cy.m4lWindowBaseHeader().find('[class*="M4LMenuActions-root-M4LWindowBase-menuActionsWindowBase"]').find("button").eq(0).click(), cy.get("[role=presentation]").find('[class^="MuiPaper-root"]').find("[role=menuitem]").eq(e);
|
|
10
|
-
}), Cypress.Commands.add("m4lWindowBaseMenuActionDisabled", (e) => {
|
|
11
|
-
cy.m4lWindowBaseMenuAction(e).should("have.attr", "aria-disabled", "true");
|
|
12
|
-
}), Cypress.Commands.add("m4lDialogWindowActions", (e) => {
|
|
13
|
-
cy.get('[class^="MuiDialog-container"]').find('[class^="M4LWindowBase-root"]').should("contain", e);
|
|
14
|
-
}), Cypress.Commands.add("m4lDialogWindowActionsValidateTitle", (e) => {
|
|
15
|
-
cy.get('[class^="M4LGridLayout-root"]').find('[class*="M4LPopupsViewer-root"]').find('[class*="M4LDragResizeWindowRND-draggableHandle"]').find('[class*="M4LTypography-root"]').should("have.text", e);
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
a as r
|
|
20
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
namespace Cypress {
|
|
3
|
-
interface Chainable {
|
|
4
|
-
/**
|
|
5
|
-
* Gets the module header (draggable handle area).
|
|
6
|
-
* @example
|
|
7
|
-
* cy.m4lWindowBaseHeader().find('button').first().click();
|
|
8
|
-
*/
|
|
9
|
-
m4lWindowBaseHeader(): Chainable<Element>
|
|
10
|
-
/**
|
|
11
|
-
* Gets a button on the left side of the module by 0-based index.
|
|
12
|
-
* @example
|
|
13
|
-
* cy.m4lWindowBaseLeftAction(0).click(); // first left button
|
|
14
|
-
*/
|
|
15
|
-
m4lWindowBaseLeftAction(
|
|
16
|
-
/**
|
|
17
|
-
* Button position
|
|
18
|
-
*/
|
|
19
|
-
buttonPosition: number,
|
|
20
|
-
): Chainable<Element>
|
|
21
|
-
/**
|
|
22
|
-
* Clicks on the left button of the module by 0-based index.
|
|
23
|
-
* @example
|
|
24
|
-
* cy.m4lWindowBaseLeftActionClick(0);
|
|
25
|
-
*/
|
|
26
|
-
m4lWindowBaseLeftActionClick(
|
|
27
|
-
/**
|
|
28
|
-
* Button position
|
|
29
|
-
*/
|
|
30
|
-
buttonPosition: number,
|
|
31
|
-
): Chainable<Element>
|
|
32
|
-
/**
|
|
33
|
-
* Opens the header menu and returns the menu item at the given 0-based position.
|
|
34
|
-
* @example
|
|
35
|
-
* cy.m4lWindowBaseMenuAction(0).click(); // click first menu item
|
|
36
|
-
*/
|
|
37
|
-
m4lWindowBaseMenuAction(
|
|
38
|
-
/**
|
|
39
|
-
* Button position
|
|
40
|
-
*/
|
|
41
|
-
menuItemPosition: number,
|
|
42
|
-
): Chainable<Element>
|
|
43
|
-
/**
|
|
44
|
-
* Asserts that the menu item at the given position is disabled.
|
|
45
|
-
* @example
|
|
46
|
-
* cy.m4lWindowBaseMenuActionDisabled(2);
|
|
47
|
-
*/
|
|
48
|
-
m4lWindowBaseMenuActionDisabled(
|
|
49
|
-
/**
|
|
50
|
-
* Button position
|
|
51
|
-
*/
|
|
52
|
-
menuItemPosition: number,
|
|
53
|
-
): Chainable<Element>
|
|
54
|
-
/**
|
|
55
|
-
* Finds the dialog by title and returns the container (e.g. to then find and click accept).
|
|
56
|
-
* @example
|
|
57
|
-
* cy.m4lDialogWindowActions('Confirm').find('button').contains('Accept').click();
|
|
58
|
-
*/
|
|
59
|
-
m4lDialogWindowActions(
|
|
60
|
-
/**
|
|
61
|
-
* Dialog title
|
|
62
|
-
*/
|
|
63
|
-
title: string,
|
|
64
|
-
): Chainable<Element>
|
|
65
|
-
/**
|
|
66
|
-
* Asserts that a popup window has the given title.
|
|
67
|
-
* @example
|
|
68
|
-
* cy.m4lDialogWindowActionsValidateTitle('Edit item');
|
|
69
|
-
*/
|
|
70
|
-
m4lDialogWindowActionsValidateTitle(
|
|
71
|
-
/**
|
|
72
|
-
* Dialog title
|
|
73
|
-
*/
|
|
74
|
-
title: string,
|
|
75
|
-
): Chainable<Element>
|
|
76
|
-
// login(email: string, password: string): Chainable<void>
|
|
77
|
-
// drag(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
|
|
78
|
-
// dismiss(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
|
|
79
|
-
// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export {};
|