@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
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from './installHostAlarmsCountRoute';
|
|
2
|
+
export * from './installHostAreasRoute';
|
|
3
|
+
export * from './installHostAuthenticatedBootstrapRoutes';
|
|
4
|
+
export * from './installHostAuthenticatedMfModuleDictionaryRoute';
|
|
5
|
+
export * from './installHostAuthenticatedMfPreviewBootstrap';
|
|
6
|
+
export * from './installHostAuthenticatedSessionRoute';
|
|
7
|
+
export * from './installHostCookiesRoute';
|
|
8
|
+
export * from './installHostGuestBootstrapRoutes';
|
|
9
|
+
export * from './installHostGuestSessionRoute';
|
|
10
|
+
export * from './installHostLocaleRoute';
|
|
11
|
+
export * from './installHostMenusRoute';
|
|
12
|
+
export * from './installHostModuleDictionaryRoute';
|
|
13
|
+
export * from './installHostPasswordNewRoute';
|
|
14
|
+
export * from './installHostPasswordResetRoute';
|
|
15
|
+
export * from './installHostUiConfigAssetRoutes';
|
|
16
|
+
export * from './installHostUiConfigRoute';
|
|
17
|
+
export * from './installHostUserPreferencesRoute';
|
|
18
|
+
export * from './installListEndpointRoute';
|
|
19
|
+
export * from './installModulePrivilegesRoute';
|
|
20
|
+
export * from './installMicrofrontendRenderStub';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { InstallHostAlarmsCountRouteOptions } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Install the alarms-count route used by the host app-bar badge refresh flow.
|
|
4
|
+
*/
|
|
5
|
+
export declare function installHostAlarmsCountRoute(options: InstallHostAlarmsCountRouteOptions): Promise<void>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { InstallHostAuthenticatedBootstrapRoutesOptions } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Install the standard authenticated bootstrap route set used by host-style
|
|
4
|
+
* platform shells.
|
|
5
|
+
*/
|
|
6
|
+
export declare function installHostAuthenticatedBootstrapRoutes(options: InstallHostAuthenticatedBootstrapRoutesOptions): Promise<void>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { InstallHostAuthenticatedMfModuleDictionaryRouteOptions } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Install the standard authenticated MF module-dictionary route after host-side launch.
|
|
4
|
+
*/
|
|
5
|
+
export declare function installHostAuthenticatedMfModuleDictionaryRoute(options: InstallHostAuthenticatedMfModuleDictionaryRouteOptions): Promise<void>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { InstallHostAuthenticatedMfPreviewBootstrapOptions } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Install the authenticated host-shell baseline plus one deterministic MF menu entry.
|
|
4
|
+
*
|
|
5
|
+
* `menuPosition` decides which host menu carries that entry. `sidebar` (the default) is
|
|
6
|
+
* the door every list module has. `account` publishes the entry to the avatar popover
|
|
7
|
+
* instead and leaves the sidebar empty, which is the only faithful shape for the
|
|
8
|
+
* user-scoped preferences modules: the product never lists them in the sidebar, so a
|
|
9
|
+
* suite that found them there would be passing on an invented door.
|
|
10
|
+
*/
|
|
11
|
+
export declare function installHostAuthenticatedMfPreviewBootstrap(options: InstallHostAuthenticatedMfPreviewBootstrapOptions): Promise<void>;
|
package/types/packages/testing/playwright/src/installers/installHostAuthenticatedSessionRoute.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { InstallHostAuthenticatedSessionRouteOptions } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Install the authenticated session bootstrap route used by host platform
|
|
4
|
+
* flows.
|
|
5
|
+
*/
|
|
6
|
+
export declare function installHostAuthenticatedSessionRoute(options: InstallHostAuthenticatedSessionRouteOptions): Promise<void>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { InstallHostCookiesRouteOptions } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Install the cookies route used by the host platform shell.
|
|
4
|
+
* The authenticated baseline needs deterministic GET data plus an in-memory
|
|
5
|
+
* mutation store so close/reopen flows can observe the cookie writes they just
|
|
6
|
+
* persisted through the shell seam.
|
|
7
|
+
*/
|
|
8
|
+
export declare function installHostCookiesRoute(options: InstallHostCookiesRouteOptions): Promise<void>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { InstallHostGuestBootstrapRoutesOptions } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Install the standard guest bootstrap route set used by host-style apps.
|
|
4
|
+
* Reuse this when the flow matches the shared host shell; keep selectors and
|
|
5
|
+
* feature assertions local to the owning app E2E project.
|
|
6
|
+
*/
|
|
7
|
+
export declare function installHostGuestBootstrapRoutes(options: InstallHostGuestBootstrapRoutesOptions): Promise<void>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { InstallHostGuestSessionRouteOptions } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Install the unauthenticated session bootstrap route used by host guest flows.
|
|
4
|
+
* This only handles the initial GET auth probe and lets app-specific POST login
|
|
5
|
+
* flows stay local or use separate installers.
|
|
6
|
+
*/
|
|
7
|
+
export declare function installHostGuestSessionRoute(options: InstallHostGuestSessionRouteOptions): Promise<void>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { InstallHostMenusRouteOptions } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Install the menus route used by the host platform shell.
|
|
4
|
+
* Keep concrete menu-item shapes local to the consuming app when a test cares
|
|
5
|
+
* about menu interaction details.
|
|
6
|
+
*
|
|
7
|
+
* Serves `accountMenuData` to the account popover when the caller supplies it, and
|
|
8
|
+
* `menuData` to everything else. Without `accountMenuData` both positions answer with
|
|
9
|
+
* `menuData`, preserving the behaviour every suite written before the split relies on.
|
|
10
|
+
*/
|
|
11
|
+
export declare function installHostMenusRoute(options: InstallHostMenusRouteOptions): Promise<void>;
|
package/types/packages/testing/playwright/src/installers/installHostModuleDictionaryRoute.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { InstallHostModuleDictionaryRouteOptions } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Install the no-auth/auth module-dictionary bootstrap route for a specific
|
|
4
|
+
* module. Keep module-specific dictionary contents local to the app E2E project.
|
|
5
|
+
*/
|
|
6
|
+
export declare function installHostModuleDictionaryRoute(options: InstallHostModuleDictionaryRouteOptions): Promise<void>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { InstallHostPasswordNewRouteOptions } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Install the shared new-password submit route used by host-style guest
|
|
4
|
+
* flows.
|
|
5
|
+
*/
|
|
6
|
+
export declare function installHostPasswordNewRoute(options: InstallHostPasswordNewRouteOptions): Promise<void>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { InstallHostPasswordResetRouteOptions } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Install the shared password-reset submit route used by host-style guest
|
|
4
|
+
* flows.
|
|
5
|
+
*/
|
|
6
|
+
export declare function installHostPasswordResetRoute(options: InstallHostPasswordResetRouteOptions): Promise<void>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HostUIConfigFixture } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Install placeholder asset routes for UI-config-driven branding assets so the
|
|
4
|
+
* no-auth shell can render deterministically without hitting remote storage.
|
|
5
|
+
*/
|
|
6
|
+
export declare function installHostUiConfigAssetRoutes(options: {
|
|
7
|
+
page: import('@playwright/test').Page;
|
|
8
|
+
uiConfig?: Partial<HostUIConfigFixture>;
|
|
9
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { InstallHostUIConfigRouteOptions } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Install the blocking host UI-config route used during the first app-shell
|
|
4
|
+
* bootstrap. App E2E projects should keep only flow-specific assertions local
|
|
5
|
+
* and reuse this shared network contract when the bootstrap behavior is the same.
|
|
6
|
+
*/
|
|
7
|
+
export declare function installHostUiConfigRoute(options: InstallHostUIConfigRouteOptions): Promise<void>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { InstallHostUserPreferencesRouteOptions } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Install the authenticated user-preferences bootstrap route used by the host
|
|
4
|
+
* platform shell before authenticated runtime providers settle.
|
|
5
|
+
*/
|
|
6
|
+
export declare function installHostUserPreferencesRoute(options: InstallHostUserPreferencesRouteOptions): Promise<void>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { InstallListEndpointRouteOptions } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Intercept a list microfrontend's data endpoint and fulfill it with the shared
|
|
4
|
+
* `{ data, pager }` envelope, so any list E2E renders a deterministic set of rows
|
|
5
|
+
* without reaching a real backend.
|
|
6
|
+
*/
|
|
7
|
+
export declare function installListEndpointRoute<TRow>(options: InstallListEndpointRouteOptions<TRow>): Promise<void>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { InstallMicrofrontendRenderStubOptions } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Install a deterministic `window.render_v2_<prefix>_<moduleId>` /
|
|
4
|
+
* `window.unmount_<prefix>_<moduleId>` contract so host-shell E2E coverage can
|
|
5
|
+
* validate MF window ownership without downloading a real remote bundle.
|
|
6
|
+
*
|
|
7
|
+
* Keep app-specific selectors and assertions local to the consuming E2E project.
|
|
8
|
+
*/
|
|
9
|
+
export declare function installMicrofrontendRenderStub(options: InstallMicrofrontendRenderStubOptions): Promise<void>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { InstallModulePrivilegesRouteOptions } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Grant module privileges in a host-preview E2E by intercepting the privileges
|
|
4
|
+
* probe (`GET auth/login?privileges=...`) and returning the granted keys. The
|
|
5
|
+
* module's `hasPrivilege(key)` only checks key presence, so any present key
|
|
6
|
+
* enables its privilege-gated action (e.g. the Add button).
|
|
7
|
+
*
|
|
8
|
+
* Install this AFTER the authenticated bootstrap so it takes precedence over the
|
|
9
|
+
* session route, which also matches `auth/login` but without the privileges query.
|
|
10
|
+
*/
|
|
11
|
+
export declare function installModulePrivilegesRoute(options: InstallModulePrivilegesRouteOptions): Promise<void>;
|