@thinkwise/testwise 0.2.62 → 0.2.99
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/Testwise.ts +35 -0
- package/artifact-builder/ArtifactManager.ts +25 -2
- package/artifact-builder/ComponentClassModelBuilder.ts +148 -0
- package/artifact-builder/InterfaceGenerator.ts +31 -33
- package/artifact-builder/ModelDataBuilder.ts +18 -20
- package/artifact-builder/ModelDataRefiner.ts +23 -3
- package/artifact-builder/SchemaGenerator.ts +45 -35
- package/artifact-builder/ScreenInterfaceRefiner.ts +25 -10
- package/artifact-builder/SelectorBuilder.ts +30 -24
- package/artifact-builder/SubjectClassModelBuilder.ts +209 -0
- package/artifact-builder/SubjectComponentGenerator.ts +67 -246
- package/artifact-builder/SubjectGenerator.ts +117 -230
- package/artifact-builder/SubjectRegistration.ts +41 -32
- package/artifact-builder/TsFileModel.ts +94 -0
- package/artifact-builder/TsFileSerializer.ts +247 -0
- package/artifact-builder/helpers/DataRetriever.ts +64 -27
- package/artifact-builder/helpers/NamingHandler.ts +23 -78
- package/artifact-builder/helpers/PipelinePaths.ts +123 -0
- package/artifact-builder/helpers/Stopwatch.ts +10 -0
- package/artifact-builder/helpers/index.ts +1 -0
- package/artifact-builder/index.ts +4 -0
- package/components/BaseComponentObjects.ts +17 -0
- package/components/action-bar/ActionBar.ts +35 -47
- package/components/action-bar/ActionBarObjects.ts +2 -0
- package/components/action-bar/CustomActionBar.ts +6 -0
- package/components/cardlist/Cardlist.ts +6 -0
- package/components/chart/Chart.ts +6 -0
- package/components/combined-filter/CombinedFilter.ts +9 -0
- package/components/cube-view-bar/CubeViewBar.ts +6 -0
- package/components/export/ExportComponent.ts +12 -0
- package/components/filter/ExcelStyleFilterPopup.ts +83 -10
- package/components/filter/ExcelStyleFilterPopupObjects.ts +29 -3
- package/components/filter/FilterForm.ts +10 -0
- package/components/filter/FilterPopup.ts +30 -9
- package/components/filter/FilterPopupObjects.ts +10 -3
- package/components/filter/FindForm.ts +7 -0
- package/components/filter/ManagePrefilterPopup.ts +11 -0
- package/components/form/Form.ts +16 -0
- package/components/grid/Grid.ts +50 -14
- package/components/grid/GridObjects.ts +0 -15
- package/components/maps/Maps.ts +6 -0
- package/components/menu/ListBarMenuComponent.ts +10 -0
- package/components/pivot-grid/PivotGrid.ts +6 -0
- package/components/pivot-grid/PivotGridFieldList.ts +7 -0
- package/components/pop-up/AllRowsPopUp.ts +12 -0
- package/components/pop-up/PopUpComponent.ts +11 -0
- package/components/prefilter-list/PrefilterList.ts +9 -0
- package/components/preview/Preview.ts +6 -0
- package/components/report-bar/ReportBar.ts +6 -0
- package/components/report-tiles/ReportTiles.ts +6 -0
- package/components/scheduler/Scheduler.ts +6 -0
- package/components/snackbar/SnackBar.ts +12 -0
- package/components/splitter/Splitter.ts +6 -0
- package/components/tab/BaseTab.ts +5 -0
- package/components/tab/DetailTabPage.ts +11 -0
- package/components/tab/Tab.ts +10 -0
- package/components/task/TaskBar.ts +13 -3
- package/components/task/TaskTiles.ts +12 -3
- package/components/topbar/TopBar.ts +10 -0
- package/components/tree-view/TreeView.ts +9 -0
- package/controls/DateControl.ts +47 -9
- package/controls/DateControlObjects.ts +15 -0
- package/controls/FormComboBox.ts +43 -26
- package/controls/FormComboBoxObjects.ts +27 -0
- package/controls/GridColumnControl.ts +35 -4
- package/controls/GridColumnControlObjects.ts +1 -1
- package/controls/InputFieldControl.ts +61 -15
- package/controls/InputFieldControlObjects.ts +19 -0
- package/controls/LookupDropdown.ts +59 -31
- package/controls/LookupDropdownObjects.ts +19 -0
- package/dist/Testwise.js +35 -0
- package/dist/Testwise.js.map +1 -1
- package/dist/artifact-builder/ArtifactManager.d.ts +18 -1
- package/dist/artifact-builder/ArtifactManager.js +24 -2
- package/dist/artifact-builder/ArtifactManager.js.map +1 -1
- package/dist/artifact-builder/ComponentClassModelBuilder.d.ts +22 -0
- package/dist/artifact-builder/ComponentClassModelBuilder.js +115 -0
- package/dist/artifact-builder/ComponentClassModelBuilder.js.map +1 -0
- package/dist/artifact-builder/InterfaceGenerator.d.ts +15 -6
- package/dist/artifact-builder/InterfaceGenerator.js +27 -26
- package/dist/artifact-builder/InterfaceGenerator.js.map +1 -1
- package/dist/artifact-builder/ModelDataBuilder.d.ts +7 -0
- package/dist/artifact-builder/ModelDataBuilder.js +13 -5
- package/dist/artifact-builder/ModelDataBuilder.js.map +1 -1
- package/dist/artifact-builder/ModelDataRefiner.d.ts +18 -1
- package/dist/artifact-builder/ModelDataRefiner.js +18 -3
- package/dist/artifact-builder/ModelDataRefiner.js.map +1 -1
- package/dist/artifact-builder/SchemaGenerator.d.ts +21 -5
- package/dist/artifact-builder/SchemaGenerator.js +38 -26
- package/dist/artifact-builder/SchemaGenerator.js.map +1 -1
- package/dist/artifact-builder/ScreenInterfaceRefiner.d.ts +18 -1
- package/dist/artifact-builder/ScreenInterfaceRefiner.js +23 -9
- package/dist/artifact-builder/ScreenInterfaceRefiner.js.map +1 -1
- package/dist/artifact-builder/SelectorBuilder.d.ts +18 -5
- package/dist/artifact-builder/SelectorBuilder.js +29 -14
- package/dist/artifact-builder/SelectorBuilder.js.map +1 -1
- package/dist/artifact-builder/SubjectClassModelBuilder.d.ts +38 -0
- package/dist/artifact-builder/SubjectClassModelBuilder.js +158 -0
- package/dist/artifact-builder/SubjectClassModelBuilder.js.map +1 -0
- package/dist/artifact-builder/SubjectComponentGenerator.d.ts +25 -14
- package/dist/artifact-builder/SubjectComponentGenerator.js +65 -189
- package/dist/artifact-builder/SubjectComponentGenerator.js.map +1 -1
- package/dist/artifact-builder/SubjectGenerator.d.ts +32 -13
- package/dist/artifact-builder/SubjectGenerator.js +81 -165
- package/dist/artifact-builder/SubjectGenerator.js.map +1 -1
- package/dist/artifact-builder/SubjectRegistration.d.ts +22 -8
- package/dist/artifact-builder/SubjectRegistration.js +29 -14
- package/dist/artifact-builder/SubjectRegistration.js.map +1 -1
- package/dist/artifact-builder/TsFileModel.d.ts +86 -0
- package/dist/artifact-builder/TsFileModel.js +2 -0
- package/dist/artifact-builder/TsFileModel.js.map +1 -0
- package/dist/artifact-builder/TsFileSerializer.d.ts +19 -0
- package/dist/artifact-builder/TsFileSerializer.js +225 -0
- package/dist/artifact-builder/TsFileSerializer.js.map +1 -0
- package/dist/artifact-builder/helpers/DataRetriever.d.ts +22 -3
- package/dist/artifact-builder/helpers/DataRetriever.js +56 -26
- package/dist/artifact-builder/helpers/DataRetriever.js.map +1 -1
- package/dist/artifact-builder/helpers/NamingHandler.d.ts +18 -6
- package/dist/artifact-builder/helpers/NamingHandler.js +20 -61
- package/dist/artifact-builder/helpers/NamingHandler.js.map +1 -1
- package/dist/artifact-builder/helpers/PipelinePaths.d.ts +52 -0
- package/dist/artifact-builder/helpers/PipelinePaths.js +99 -0
- package/dist/artifact-builder/helpers/PipelinePaths.js.map +1 -0
- package/dist/artifact-builder/helpers/Stopwatch.d.ts +10 -0
- package/dist/artifact-builder/helpers/Stopwatch.js +10 -0
- package/dist/artifact-builder/helpers/Stopwatch.js.map +1 -1
- package/dist/artifact-builder/helpers/index.d.ts +1 -0
- package/dist/artifact-builder/helpers/index.js +1 -0
- package/dist/artifact-builder/helpers/index.js.map +1 -1
- package/dist/artifact-builder/index.d.ts +4 -0
- package/dist/artifact-builder/index.js +4 -0
- package/dist/artifact-builder/index.js.map +1 -1
- package/dist/components/BaseComponentObjects.d.ts +17 -0
- package/dist/components/BaseComponentObjects.js +17 -0
- package/dist/components/BaseComponentObjects.js.map +1 -1
- package/dist/components/action-bar/ActionBar.d.ts +21 -24
- package/dist/components/action-bar/ActionBar.js +31 -24
- package/dist/components/action-bar/ActionBar.js.map +1 -1
- package/dist/components/action-bar/ActionBarObjects.d.ts +1 -0
- package/dist/components/action-bar/ActionBarObjects.js +1 -0
- package/dist/components/action-bar/ActionBarObjects.js.map +1 -1
- package/dist/components/action-bar/CustomActionBar.d.ts +6 -0
- package/dist/components/action-bar/CustomActionBar.js +6 -0
- package/dist/components/action-bar/CustomActionBar.js.map +1 -1
- package/dist/components/cardlist/Cardlist.d.ts +6 -0
- package/dist/components/cardlist/Cardlist.js +6 -0
- package/dist/components/cardlist/Cardlist.js.map +1 -1
- package/dist/components/chart/Chart.d.ts +6 -0
- package/dist/components/chart/Chart.js +6 -0
- package/dist/components/chart/Chart.js.map +1 -1
- package/dist/components/combined-filter/CombinedFilter.d.ts +9 -0
- package/dist/components/combined-filter/CombinedFilter.js +9 -0
- package/dist/components/combined-filter/CombinedFilter.js.map +1 -1
- package/dist/components/cube-view-bar/CubeViewBar.d.ts +6 -0
- package/dist/components/cube-view-bar/CubeViewBar.js +6 -0
- package/dist/components/cube-view-bar/CubeViewBar.js.map +1 -1
- package/dist/components/export/ExportComponent.d.ts +12 -0
- package/dist/components/export/ExportComponent.js +12 -0
- package/dist/components/export/ExportComponent.js.map +1 -1
- package/dist/components/filter/ExcelStyleFilterPopup.d.ts +25 -2
- package/dist/components/filter/ExcelStyleFilterPopup.js +60 -6
- package/dist/components/filter/ExcelStyleFilterPopup.js.map +1 -1
- package/dist/components/filter/ExcelStyleFilterPopupObjects.d.ts +8 -1
- package/dist/components/filter/ExcelStyleFilterPopupObjects.js +15 -2
- package/dist/components/filter/ExcelStyleFilterPopupObjects.js.map +1 -1
- package/dist/components/filter/FilterForm.d.ts +10 -0
- package/dist/components/filter/FilterForm.js +10 -0
- package/dist/components/filter/FilterForm.js.map +1 -1
- package/dist/components/filter/FilterPopup.d.ts +22 -4
- package/dist/components/filter/FilterPopup.js +17 -9
- package/dist/components/filter/FilterPopup.js.map +1 -1
- package/dist/components/filter/FilterPopupObjects.d.ts +5 -2
- package/dist/components/filter/FilterPopupObjects.js +5 -2
- package/dist/components/filter/FilterPopupObjects.js.map +1 -1
- package/dist/components/filter/FindForm.d.ts +7 -0
- package/dist/components/filter/FindForm.js +7 -0
- package/dist/components/filter/FindForm.js.map +1 -1
- package/dist/components/filter/ManagePrefilterPopup.d.ts +11 -0
- package/dist/components/filter/ManagePrefilterPopup.js +11 -0
- package/dist/components/filter/ManagePrefilterPopup.js.map +1 -1
- package/dist/components/form/Form.d.ts +16 -0
- package/dist/components/form/Form.js +16 -0
- package/dist/components/form/Form.js.map +1 -1
- package/dist/components/grid/Grid.d.ts +20 -1
- package/dist/components/grid/Grid.js +35 -25
- package/dist/components/grid/Grid.js.map +1 -1
- package/dist/components/grid/GridObjects.d.ts +0 -4
- package/dist/components/grid/GridObjects.js +0 -6
- package/dist/components/grid/GridObjects.js.map +1 -1
- package/dist/components/maps/Maps.d.ts +6 -0
- package/dist/components/maps/Maps.js +6 -0
- package/dist/components/maps/Maps.js.map +1 -1
- package/dist/components/menu/ListBarMenuComponent.d.ts +10 -0
- package/dist/components/menu/ListBarMenuComponent.js +10 -0
- package/dist/components/menu/ListBarMenuComponent.js.map +1 -1
- package/dist/components/pivot-grid/PivotGrid.d.ts +6 -0
- package/dist/components/pivot-grid/PivotGrid.js +6 -0
- package/dist/components/pivot-grid/PivotGrid.js.map +1 -1
- package/dist/components/pivot-grid/PivotGridFieldList.d.ts +7 -0
- package/dist/components/pivot-grid/PivotGridFieldList.js +7 -0
- package/dist/components/pivot-grid/PivotGridFieldList.js.map +1 -1
- package/dist/components/pop-up/AllRowsPopUp.d.ts +12 -0
- package/dist/components/pop-up/AllRowsPopUp.js +12 -0
- package/dist/components/pop-up/AllRowsPopUp.js.map +1 -1
- package/dist/components/pop-up/PopUpComponent.d.ts +11 -0
- package/dist/components/pop-up/PopUpComponent.js +11 -0
- package/dist/components/pop-up/PopUpComponent.js.map +1 -1
- package/dist/components/prefilter-list/PrefilterList.d.ts +9 -0
- package/dist/components/prefilter-list/PrefilterList.js +9 -0
- package/dist/components/prefilter-list/PrefilterList.js.map +1 -1
- package/dist/components/preview/Preview.d.ts +6 -0
- package/dist/components/preview/Preview.js +6 -0
- package/dist/components/preview/Preview.js.map +1 -1
- package/dist/components/report-bar/ReportBar.d.ts +6 -0
- package/dist/components/report-bar/ReportBar.js +6 -0
- package/dist/components/report-bar/ReportBar.js.map +1 -1
- package/dist/components/report-tiles/ReportTiles.d.ts +6 -0
- package/dist/components/report-tiles/ReportTiles.js +6 -0
- package/dist/components/report-tiles/ReportTiles.js.map +1 -1
- package/dist/components/scheduler/Scheduler.d.ts +6 -0
- package/dist/components/scheduler/Scheduler.js +6 -0
- package/dist/components/scheduler/Scheduler.js.map +1 -1
- package/dist/components/snackbar/SnackBar.d.ts +12 -0
- package/dist/components/snackbar/SnackBar.js +12 -0
- package/dist/components/snackbar/SnackBar.js.map +1 -1
- package/dist/components/splitter/Splitter.d.ts +6 -0
- package/dist/components/splitter/Splitter.js +6 -0
- package/dist/components/splitter/Splitter.js.map +1 -1
- package/dist/components/tab/BaseTab.d.ts +5 -0
- package/dist/components/tab/BaseTab.js +5 -0
- package/dist/components/tab/BaseTab.js.map +1 -1
- package/dist/components/tab/DetailTabPage.d.ts +11 -0
- package/dist/components/tab/DetailTabPage.js +11 -0
- package/dist/components/tab/DetailTabPage.js.map +1 -1
- package/dist/components/tab/Tab.d.ts +10 -0
- package/dist/components/tab/Tab.js +10 -0
- package/dist/components/tab/Tab.js.map +1 -1
- package/dist/components/task/TaskBar.d.ts +12 -2
- package/dist/components/task/TaskBar.js +13 -3
- package/dist/components/task/TaskBar.js.map +1 -1
- package/dist/components/task/TaskTiles.d.ts +11 -2
- package/dist/components/task/TaskTiles.js +12 -3
- package/dist/components/task/TaskTiles.js.map +1 -1
- package/dist/components/topbar/TopBar.d.ts +10 -0
- package/dist/components/topbar/TopBar.js +10 -0
- package/dist/components/topbar/TopBar.js.map +1 -1
- package/dist/components/tree-view/TreeView.d.ts +9 -0
- package/dist/components/tree-view/TreeView.js +9 -0
- package/dist/components/tree-view/TreeView.js.map +1 -1
- package/dist/controls/DateControl.d.ts +40 -2
- package/dist/controls/DateControl.js +24 -7
- package/dist/controls/DateControl.js.map +1 -1
- package/dist/controls/DateControlObjects.d.ts +8 -1
- package/dist/controls/DateControlObjects.js +8 -1
- package/dist/controls/DateControlObjects.js.map +1 -1
- package/dist/controls/FormComboBox.d.ts +30 -0
- package/dist/controls/FormComboBox.js +19 -16
- package/dist/controls/FormComboBox.js.map +1 -1
- package/dist/controls/FormComboBoxObjects.d.ts +12 -1
- package/dist/controls/FormComboBoxObjects.js +15 -1
- package/dist/controls/FormComboBoxObjects.js.map +1 -1
- package/dist/controls/GridColumnControl.d.ts +30 -0
- package/dist/controls/GridColumnControl.js +13 -4
- package/dist/controls/GridColumnControl.js.map +1 -1
- package/dist/controls/GridColumnControlObjects.js +1 -1
- package/dist/controls/GridColumnControlObjects.js.map +1 -1
- package/dist/controls/InputFieldControl.d.ts +50 -3
- package/dist/controls/InputFieldControl.js +40 -11
- package/dist/controls/InputFieldControl.js.map +1 -1
- package/dist/controls/InputFieldControlObjects.d.ts +10 -1
- package/dist/controls/InputFieldControlObjects.js +10 -1
- package/dist/controls/InputFieldControlObjects.js.map +1 -1
- package/dist/controls/LookupDropdown.d.ts +29 -0
- package/dist/controls/LookupDropdown.js +36 -25
- package/dist/controls/LookupDropdown.js.map +1 -1
- package/dist/controls/LookupDropdownObjects.d.ts +10 -0
- package/dist/controls/LookupDropdownObjects.js +11 -0
- package/dist/controls/LookupDropdownObjects.js.map +1 -0
- package/dist/enums/ElementTypes.d.ts +18 -0
- package/dist/enums/ElementTypes.js +18 -0
- package/dist/enums/ElementTypes.js.map +1 -1
- package/dist/enums/ExportFormat.d.ts +8 -0
- package/dist/enums/ExportFormat.js +8 -0
- package/dist/enums/ExportFormat.js.map +1 -1
- package/dist/enums/LogLevel.d.ts +17 -0
- package/dist/enums/LogLevel.js +17 -1
- package/dist/enums/LogLevel.js.map +1 -1
- package/dist/enums/index.d.ts +1 -0
- package/dist/enums/index.js +1 -0
- package/dist/enums/index.js.map +1 -1
- package/dist/helpers/ConfigChecker.d.ts +13 -0
- package/dist/helpers/ConfigChecker.js +13 -0
- package/dist/helpers/ConfigChecker.js.map +1 -1
- package/dist/helpers/Ensure.d.ts +13 -0
- package/dist/helpers/Ensure.js +13 -0
- package/dist/helpers/Ensure.js.map +1 -1
- package/dist/helpers/FlightTracker.d.ts +13 -3
- package/dist/helpers/FlightTracker.js +103 -17
- package/dist/helpers/FlightTracker.js.map +1 -1
- package/dist/helpers/GlobalWaitEventHandler.d.ts +13 -0
- package/dist/helpers/GlobalWaitEventHandler.js +13 -0
- package/dist/helpers/GlobalWaitEventHandler.js.map +1 -1
- package/dist/helpers/LoginHelper.d.ts +35 -1
- package/dist/helpers/LoginHelper.js +46 -11
- package/dist/helpers/LoginHelper.js.map +1 -1
- package/dist/helpers/PathResolver.d.ts +22 -0
- package/dist/helpers/PathResolver.js +22 -0
- package/dist/helpers/PathResolver.js.map +1 -1
- package/dist/helpers/Poll.d.ts +13 -1
- package/dist/helpers/Poll.js +12 -0
- package/dist/helpers/Poll.js.map +1 -1
- package/dist/helpers/RegexHelper.d.ts +15 -0
- package/dist/helpers/RegexHelper.js +15 -3
- package/dist/helpers/RegexHelper.js.map +1 -1
- package/dist/helpers/SubjectNavigator.d.ts +26 -0
- package/dist/helpers/SubjectNavigator.js +51 -0
- package/dist/helpers/SubjectNavigator.js.map +1 -0
- package/dist/helpers/UserSimulationHelper.d.ts +14 -0
- package/dist/helpers/UserSimulationHelper.js +14 -0
- package/dist/helpers/UserSimulationHelper.js.map +1 -1
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.js +1 -0
- package/dist/helpers/index.js.map +1 -1
- package/dist/index.d.ts +6 -20
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/interfaces/IComponentObjects.d.ts +12 -0
- package/dist/interfaces/IComponentSchemaMeta.d.ts +15 -0
- package/dist/interfaces/IComponentSchemaMeta.js +2 -0
- package/dist/interfaces/IComponentSchemaMeta.js.map +1 -0
- package/dist/interfaces/IProperty.d.ts +13 -0
- package/dist/interfaces/IRegisteredSubjects.d.ts +12 -0
- package/dist/interfaces/ISeedSubjectDraft.d.ts +16 -0
- package/dist/interfaces/ISeedSubjectDraft.js +2 -0
- package/dist/interfaces/ISeedSubjectDraft.js.map +1 -0
- package/dist/interfaces/ISubject.d.ts +13 -0
- package/dist/interfaces/ISubjectDetail.d.ts +11 -0
- package/dist/interfaces/ISubjectDetail.js +2 -0
- package/dist/interfaces/ISubjectDetail.js.map +1 -0
- package/dist/mcp/ArtifactResolver.d.ts +152 -0
- package/dist/mcp/ArtifactResolver.js +232 -0
- package/dist/mcp/ArtifactResolver.js.map +1 -0
- package/dist/mcp/index.d.ts +2 -0
- package/dist/mcp/index.js +2 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/page-extensions/GlobalComponents.d.ts +30 -0
- package/dist/page-extensions/GlobalComponents.js +30 -0
- package/dist/page-extensions/GlobalComponents.js.map +1 -1
- package/dist/page-extensions/GoToDeepLink.d.ts +9 -0
- package/dist/page-extensions/GoToDeepLink.js +9 -0
- package/dist/page-extensions/GoToDeepLink.js.map +1 -1
- package/dist/page-extensions/LoginFeatures.d.ts +8 -0
- package/dist/page-extensions/LoginFeatures.js +8 -0
- package/dist/page-extensions/LoginFeatures.js.map +1 -1
- package/dist/page-extensions/SubjectRegistry.d.ts +31 -0
- package/dist/page-extensions/SubjectRegistry.js +31 -0
- package/dist/page-extensions/SubjectRegistry.js.map +1 -1
- package/dist/page-extensions/UserSimulation.d.ts +21 -0
- package/dist/page-extensions/UserSimulation.js +21 -0
- package/dist/page-extensions/UserSimulation.js.map +1 -1
- package/dist/page-extensions/WaitEventHandler.d.ts +20 -0
- package/dist/page-extensions/WaitEventHandler.js +20 -0
- package/dist/page-extensions/WaitEventHandler.js.map +1 -1
- package/dist/page-overrides/ClickOverride.d.ts +23 -2
- package/dist/page-overrides/ClickOverride.js +34 -50
- package/dist/page-overrides/ClickOverride.js.map +1 -1
- package/dist/page-overrides/FillOverride.d.ts +23 -0
- package/dist/page-overrides/FillOverride.js +46 -66
- package/dist/page-overrides/FillOverride.js.map +1 -1
- package/dist/services/ConfigBuilder.d.ts +24 -0
- package/dist/services/ConfigBuilder.js +24 -0
- package/dist/services/ConfigBuilder.js.map +1 -1
- package/dist/services/IndiciumApi.service.d.ts +26 -0
- package/dist/services/IndiciumApi.service.js +40 -5
- package/dist/services/IndiciumApi.service.js.map +1 -1
- package/dist/services/Logger.d.ts +13 -0
- package/dist/services/Logger.js +39 -0
- package/dist/services/Logger.js.map +1 -1
- package/dist/types/Components.d.ts +18 -1
- package/dist/types/Components.js +0 -1
- package/dist/types/Components.js.map +1 -1
- package/dist/types/LocatorType.d.ts +5 -0
- package/dist/types/LocatorType.js +2 -0
- package/dist/types/LocatorType.js.map +1 -0
- package/dist/types/PollTypes.d.ts +8 -0
- package/dist/types/Test.d.ts +18 -0
- package/dist/types/Universal.d.ts +12 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -1
- package/enums/ElementTypes.ts +18 -0
- package/enums/ExportFormat.ts +8 -0
- package/enums/LogLevel.ts +17 -1
- package/enums/index.ts +1 -0
- package/helpers/ConfigChecker.ts +13 -0
- package/helpers/Ensure.ts +13 -0
- package/helpers/FlightTracker.ts +109 -20
- package/helpers/GlobalWaitEventHandler.ts +13 -0
- package/helpers/LoginHelper.ts +49 -12
- package/helpers/PathResolver.ts +22 -0
- package/helpers/Poll.ts +13 -1
- package/helpers/RegexHelper.ts +15 -3
- package/helpers/SubjectNavigator.ts +57 -0
- package/helpers/UserSimulationHelper.ts +14 -0
- package/helpers/index.ts +1 -0
- package/index.ts +1 -0
- package/interfaces/IComponentObjects.ts +12 -0
- package/interfaces/IComponentSchemaMeta.ts +17 -0
- package/interfaces/IProperty.ts +13 -0
- package/interfaces/IRegisteredSubjects.ts +12 -0
- package/interfaces/ISeedSubjectDraft.ts +17 -0
- package/interfaces/ISubject.ts +13 -0
- package/interfaces/ISubjectDetail.ts +12 -0
- package/mcp/ArtifactResolver.ts +296 -0
- package/mcp/index.ts +2 -0
- package/package.json +20 -8
- package/page-extensions/GlobalComponents.ts +30 -0
- package/page-extensions/GoToDeepLink.ts +9 -0
- package/page-extensions/LoginFeatures.ts +8 -0
- package/page-extensions/SubjectRegistry.ts +32 -0
- package/page-extensions/UserSimulation.ts +21 -0
- package/page-extensions/WaitEventHandler.ts +20 -0
- package/page-overrides/ClickOverride.ts +36 -55
- package/page-overrides/FillOverride.ts +59 -73
- package/promptCredentials.js +1 -1
- package/scripts/Testwise.template.json +1 -1
- package/scripts/diagram.js +2267 -0
- package/scripts/main.js +84 -63
- package/scripts/postinstall.js +55 -42
- package/scripts/setup.js +91 -37
- package/scripts/sync.js +767 -748
- package/services/ConfigBuilder.ts +24 -0
- package/services/IndiciumApi.service.ts +44 -6
- package/services/Logger.ts +40 -0
- package/templates/copilot-instructions.md +130 -0
- package/templates/mcp.json +9 -0
- package/templates/testwise-test-expert.agent.md +453 -0
- package/tests/tsconfig.json +12 -0
- package/tsconfig.json +6 -2
- package/types/Components.ts +17 -2
- package/types/LocatorType.ts +5 -0
- package/types/PollTypes.ts +8 -0
- package/types/Test.ts +18 -0
- package/types/Universal.ts +12 -0
- package/types/index.ts +2 -0
- package/dist/interfaces/IStoredTestResults.d.ts +0 -5
- package/dist/interfaces/IStoredTestResults.js +0 -2
- package/dist/interfaces/IStoredTestResults.js.map +0 -1
- package/dist/templates/test-artifacts/SubjectPageBase.d.ts +0 -5
- package/dist/templates/test-artifacts/SubjectPageBase.js +0 -6
- package/dist/templates/test-artifacts/SubjectPageBase.js.map +0 -1
- package/dist/templates/test-artifacts/screens/index.d.ts +0 -1
- package/dist/templates/test-artifacts/screens/index.js +0 -2
- package/dist/templates/test-artifacts/screens/index.js.map +0 -1
- package/dist/templates/test-artifacts/subjects/index.d.ts +0 -1
- package/dist/templates/test-artifacts/subjects/index.js +0 -2
- package/dist/templates/test-artifacts/subjects/index.js.map +0 -1
- package/interfaces/IStoredTestResults.ts +0 -6
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
import { GlobalWaitEventHandler } from '../helpers/GlobalWaitEventHandler.js';
|
|
2
|
+
/**
|
|
3
|
+
* Playwright fixture layer that attaches a `GlobalWaitEventHandler` instance
|
|
4
|
+
* to `page.waitEventHandler` before each test.
|
|
5
|
+
*
|
|
6
|
+
* Use `page.waitEventHandler` when you need to block test execution until a
|
|
7
|
+
* specific URL pattern has been responded to — for example, waiting for a
|
|
8
|
+
* background data-load endpoint before asserting on results.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* await page.waitEventHandler.waitForUrl('/api/employees/load');
|
|
12
|
+
* await expect(subject.grid.rows()).toHaveCount(10);
|
|
13
|
+
*/
|
|
2
14
|
export class WaitEventHandler {
|
|
15
|
+
/**
|
|
16
|
+
* Extends the Playwright `Test` fixture to attach a `GlobalWaitEventHandler` instance
|
|
17
|
+
* to `page.waitEventHandler` before each test.
|
|
18
|
+
* @param test - The Playwright `Test` fixture to extend.
|
|
19
|
+
*/
|
|
3
20
|
constructor(test) {
|
|
4
21
|
this._test = test.extend({
|
|
5
22
|
page: async ({ page }, use) => {
|
|
@@ -8,6 +25,9 @@ export class WaitEventHandler {
|
|
|
8
25
|
}
|
|
9
26
|
});
|
|
10
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Returns the extended `Test` fixture with `page.waitEventHandler` wired up.
|
|
30
|
+
*/
|
|
11
31
|
get test() {
|
|
12
32
|
return this._test;
|
|
13
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WaitEventHandler.js","sourceRoot":"","sources":["../../page-extensions/WaitEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAS9E,MAAM,OAAO,gBAAgB;IAG3B,YAAY,IAAU;QACpB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;YACvB,IAAI,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE;gBAC5B,IAAI,CAAC,gBAAgB,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAEzD,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC;YAClB,CAAC;SACF,CAAC,CAAC;IACL,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"WaitEventHandler.js","sourceRoot":"","sources":["../../page-extensions/WaitEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAS9E;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,gBAAgB;IAG3B;;;;OAIG;IACH,YAAY,IAAU;QACpB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;YACvB,IAAI,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE;gBAC5B,IAAI,CAAC,gBAAgB,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAEzD,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC;YAClB,CAAC;SACF,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF"}
|
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
import type { Test } from '../types/Test.js';
|
|
2
|
+
/**
|
|
3
|
+
* Playwright fixture layer that wraps every Locator `click()` call to wait
|
|
4
|
+
* for in-flight XHR requests to settle before returning control to the test.
|
|
5
|
+
*
|
|
6
|
+
* **Why this exists:** The Thinkwise application fires XHR calls immediately
|
|
7
|
+
* after a click (save, navigation, data load). Without this override a test
|
|
8
|
+
* that clicks a button and then immediately reads a value races against the
|
|
9
|
+
* server response. `ClickOverride` uses `FlightTracker` under the hood to
|
|
10
|
+
* block until all relevant requests finish.
|
|
11
|
+
*
|
|
12
|
+
* **How to disable** (if a specific test must opt out):
|
|
13
|
+
* Set `featureSettings.InflightRequests.waitForRequestsToComplete: false` in
|
|
14
|
+
* `Testwise.json` — but this is rarely needed.
|
|
15
|
+
*/
|
|
2
16
|
export declare class ClickOverride {
|
|
3
17
|
private _test;
|
|
4
|
-
|
|
5
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Extends the Playwright `Test` fixture to wrap every locator's `click` method with
|
|
20
|
+
* in-flight XHR tracking via `FlightTracker`, waiting for all relevant requests to
|
|
21
|
+
* settle after each click. Behaviour is configurable via `featureSettings.InflightRequests`.
|
|
22
|
+
* @param test - The Playwright `Test` fixture to extend.
|
|
23
|
+
*/
|
|
6
24
|
constructor(test: Test);
|
|
25
|
+
/**
|
|
26
|
+
* Returns the extended `Test` fixture with the click override active.
|
|
27
|
+
*/
|
|
7
28
|
get test(): Test;
|
|
8
29
|
}
|
|
@@ -1,65 +1,46 @@
|
|
|
1
1
|
import { FlightTracker } from '../helpers/FlightTracker.js';
|
|
2
2
|
import { testwiseConfig } from '../services/ConfigBuilder.js';
|
|
3
3
|
const waitForRequestsToComplete = testwiseConfig().get('featureSettings.InflightRequests.waitForRequestsToComplete') ?? true;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Playwright fixture layer that wraps every Locator `click()` call to wait
|
|
6
|
+
* for in-flight XHR requests to settle before returning control to the test.
|
|
7
|
+
*
|
|
8
|
+
* **Why this exists:** The Thinkwise application fires XHR calls immediately
|
|
9
|
+
* after a click (save, navigation, data load). Without this override a test
|
|
10
|
+
* that clicks a button and then immediately reads a value races against the
|
|
11
|
+
* server response. `ClickOverride` uses `FlightTracker` under the hood to
|
|
12
|
+
* block until all relevant requests finish.
|
|
13
|
+
*
|
|
14
|
+
* **How to disable** (if a specific test must opt out):
|
|
15
|
+
* Set `featureSettings.InflightRequests.waitForRequestsToComplete: false` in
|
|
16
|
+
* `Testwise.json` — but this is rarely needed.
|
|
17
|
+
*/
|
|
5
18
|
export class ClickOverride {
|
|
19
|
+
/**
|
|
20
|
+
* Extends the Playwright `Test` fixture to wrap every locator's `click` method with
|
|
21
|
+
* in-flight XHR tracking via `FlightTracker`, waiting for all relevant requests to
|
|
22
|
+
* settle after each click. Behaviour is configurable via `featureSettings.InflightRequests`.
|
|
23
|
+
* @param test - The Playwright `Test` fixture to extend.
|
|
24
|
+
*/
|
|
6
25
|
constructor(test) {
|
|
7
|
-
this._page = null;
|
|
8
|
-
this.flightTracker = new FlightTracker();
|
|
9
26
|
this._test = test.extend({
|
|
10
27
|
page: async ({ page }, use) => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
28
|
+
const flightTracker = new FlightTracker();
|
|
29
|
+
page.on('request', (request) => {
|
|
30
|
+
flightTracker.handleRequestStarted(request.url(), request.resourceType());
|
|
31
|
+
});
|
|
32
|
+
page.on('response', (response) => {
|
|
33
|
+
flightTracker.handleRequestFinished(response.request().url());
|
|
34
|
+
});
|
|
35
|
+
page.on('requestfailed', (request) => {
|
|
36
|
+
flightTracker.handleRequestFailed(request.url());
|
|
37
|
+
});
|
|
21
38
|
const overrideClickMethod = (locator) => {
|
|
22
39
|
const originalClickMethod = locator.click.bind(locator);
|
|
23
|
-
page.on('request', (request) => {
|
|
24
|
-
if (isTrackable(request.url(), request.resourceType())) {
|
|
25
|
-
this.flightTracker.requestsInFlight++;
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
page.on('response', (response) => {
|
|
29
|
-
if (isTrackable(response.request().url(), response.request().resourceType())) {
|
|
30
|
-
if (this.flightTracker.requestsInFlight > 0) {
|
|
31
|
-
this.flightTracker.requestsInFlight--;
|
|
32
|
-
}
|
|
33
|
-
if (this.flightTracker.requestsInFlight === 0) {
|
|
34
|
-
this.flightTracker.eventEmitter.emit('idle');
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
40
|
locator.click = async (options) => {
|
|
39
41
|
await originalClickMethod(options);
|
|
40
42
|
if (waitForRequestsToComplete) {
|
|
41
|
-
|
|
42
|
-
await this.flightTracker.waitToContinue();
|
|
43
|
-
}
|
|
44
|
-
catch (error) {
|
|
45
|
-
console.warn('Exception while waiting for inflight requests to finish:', error);
|
|
46
|
-
if (this._page) {
|
|
47
|
-
const inflightRequests = await this._page.evaluate(() => {
|
|
48
|
-
return performance
|
|
49
|
-
.getEntriesByType('resource')
|
|
50
|
-
.filter((entry) => {
|
|
51
|
-
const res = entry;
|
|
52
|
-
return (res.initiatorType === 'xmlhttprequest' &&
|
|
53
|
-
!res.name.includes('/detect_change(') &&
|
|
54
|
-
!res.name.includes('/set_gui_start_use_log_session'));
|
|
55
|
-
})
|
|
56
|
-
.map((entry) => entry.name);
|
|
57
|
-
});
|
|
58
|
-
console.debug('Current inflight XHR requests:', inflightRequests);
|
|
59
|
-
}
|
|
60
|
-
if (!continueOnError)
|
|
61
|
-
throw error;
|
|
62
|
-
}
|
|
43
|
+
await flightTracker.waitToContinue();
|
|
63
44
|
}
|
|
64
45
|
return;
|
|
65
46
|
};
|
|
@@ -98,6 +79,9 @@ export class ClickOverride {
|
|
|
98
79
|
}
|
|
99
80
|
});
|
|
100
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* Returns the extended `Test` fixture with the click override active.
|
|
84
|
+
*/
|
|
101
85
|
get test() {
|
|
102
86
|
return this._test;
|
|
103
87
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClickOverride.js","sourceRoot":"","sources":["../../page-overrides/ClickOverride.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG9D,MAAM,yBAAyB,GAC7B,cAAc,EAAE,CAAC,GAAG,CAAU,4DAA4D,CAAC,IAAI,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ClickOverride.js","sourceRoot":"","sources":["../../page-overrides/ClickOverride.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,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
|
2
|
+
/**
|
|
3
|
+
* Playwright fixture layer that wraps every Locator `fill()` call to wait
|
|
4
|
+
* for in-flight XHR requests to settle before returning control to the test.
|
|
5
|
+
*
|
|
6
|
+
* **Why this exists:** After filling a lookup or auto-complete field the
|
|
7
|
+
* Thinkwise application fires XHR calls to search/resolve the typed value.
|
|
8
|
+
* Without this override, subsequent assertions or interactions race against
|
|
9
|
+
* those server responses. `FillOverride` uses `FlightTracker` to block until
|
|
10
|
+
* all relevant requests on the watchlist finish.
|
|
11
|
+
*
|
|
12
|
+
* The `featureSettings.InflightRequests.paths` list in `Testwise.json`
|
|
13
|
+
* controls which API endpoints are watched during fill operations.
|
|
14
|
+
*/
|
|
2
15
|
export declare class FillOverride {
|
|
3
16
|
private _test;
|
|
4
17
|
private flightTracker;
|
|
18
|
+
/**
|
|
19
|
+
* Extends the Playwright `Test` fixture to wrap every locator's `fill` method:
|
|
20
|
+
* waits for watched in-flight requests to settle, fills the element, and — for
|
|
21
|
+
* qualifying form fields — triggers a `/staged` response wait and blurs the element
|
|
22
|
+
* if the value changed. Watchlist and behaviour are configurable via `featureSettings`.
|
|
23
|
+
* @param test - The Playwright `Test` fixture to extend.
|
|
24
|
+
*/
|
|
5
25
|
constructor(test: Test);
|
|
26
|
+
/**
|
|
27
|
+
* Returns the extended `Test` fixture with the fill override active.
|
|
28
|
+
*/
|
|
6
29
|
get test(): Test;
|
|
7
30
|
}
|
|
@@ -2,7 +2,37 @@ import { FlightTracker } from '../helpers/FlightTracker.js';
|
|
|
2
2
|
import { testwiseConfig } from '../services/ConfigBuilder.js';
|
|
3
3
|
const requestWatchlist = testwiseConfig().get('featureSettings.InflightRequests.paths') ?? [];
|
|
4
4
|
const waitForRequestsToComplete = testwiseConfig().get('featureSettings.InflightRequests.waitForRequestsToComplete') ?? true;
|
|
5
|
+
const locatorMethods = [
|
|
6
|
+
'locator',
|
|
7
|
+
'getByText',
|
|
8
|
+
'getByTestId',
|
|
9
|
+
'getByAltText',
|
|
10
|
+
'getByLabel',
|
|
11
|
+
'getByRole',
|
|
12
|
+
'getByPlaceholder',
|
|
13
|
+
'getByTitle'
|
|
14
|
+
];
|
|
15
|
+
/**
|
|
16
|
+
* Playwright fixture layer that wraps every Locator `fill()` call to wait
|
|
17
|
+
* for in-flight XHR requests to settle before returning control to the test.
|
|
18
|
+
*
|
|
19
|
+
* **Why this exists:** After filling a lookup or auto-complete field the
|
|
20
|
+
* Thinkwise application fires XHR calls to search/resolve the typed value.
|
|
21
|
+
* Without this override, subsequent assertions or interactions race against
|
|
22
|
+
* those server responses. `FillOverride` uses `FlightTracker` to block until
|
|
23
|
+
* all relevant requests on the watchlist finish.
|
|
24
|
+
*
|
|
25
|
+
* The `featureSettings.InflightRequests.paths` list in `Testwise.json`
|
|
26
|
+
* controls which API endpoints are watched during fill operations.
|
|
27
|
+
*/
|
|
5
28
|
export class FillOverride {
|
|
29
|
+
/**
|
|
30
|
+
* Extends the Playwright `Test` fixture to wrap every locator's `fill` method:
|
|
31
|
+
* waits for watched in-flight requests to settle, fills the element, and — for
|
|
32
|
+
* qualifying form fields — triggers a `/staged` response wait and blurs the element
|
|
33
|
+
* if the value changed. Watchlist and behaviour are configurable via `featureSettings`.
|
|
34
|
+
* @param test - The Playwright `Test` fixture to extend.
|
|
35
|
+
*/
|
|
6
36
|
constructor(test) {
|
|
7
37
|
this.flightTracker = new FlightTracker();
|
|
8
38
|
this._test = test.extend({
|
|
@@ -26,80 +56,30 @@ export class FillOverride {
|
|
|
26
56
|
});
|
|
27
57
|
}
|
|
28
58
|
const overrideFillMethod = (locator) => {
|
|
29
|
-
const
|
|
59
|
+
const originalFill = locator.fill.bind(locator);
|
|
30
60
|
locator.fill = async (value, options) => {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
catch (e) {
|
|
36
|
-
console.warn('Exception:', e);
|
|
37
|
-
this.flightTracker.requestsInFlight = 0;
|
|
38
|
-
}
|
|
39
|
-
const currentValue = await locator.inputValue();
|
|
40
|
-
const valueIsDifferent = currentValue !== value;
|
|
41
|
-
const formFieldTestIdPrefix = 'form-field__';
|
|
42
|
-
const isQualifyingFormField = await locator.evaluate((el, formFieldTestIdPrefix) => {
|
|
43
|
-
const elementTestId = el.getAttribute('data-testid');
|
|
44
|
-
const parentWithFormSectionTestId = el.closest('[data-testid^="form-section__"]');
|
|
45
|
-
if (elementTestId) {
|
|
46
|
-
return elementTestId.includes(formFieldTestIdPrefix) && parentWithFormSectionTestId !== null;
|
|
47
|
-
}
|
|
48
|
-
return false;
|
|
49
|
-
}, formFieldTestIdPrefix);
|
|
50
|
-
if (valueIsDifferent && isQualifyingFormField) {
|
|
51
|
-
await page.waitEventHandler.waitForCanContinue();
|
|
52
|
-
page.waitEventHandler.waitForResponse('/staged');
|
|
53
|
-
}
|
|
54
|
-
await originalFillMethod(value, options);
|
|
55
|
-
if (isQualifyingFormField) {
|
|
56
|
-
await locator.evaluate((el) => {
|
|
57
|
-
const ariaExpanded = el.getAttribute('aria-expanded');
|
|
58
|
-
if (!ariaExpanded)
|
|
59
|
-
el.blur();
|
|
60
|
-
});
|
|
61
|
-
}
|
|
61
|
+
if (waitForRequestsToComplete)
|
|
62
|
+
await this.flightTracker.waitToContinue();
|
|
63
|
+
await page.waitEventHandler.waitForCanContinue();
|
|
64
|
+
await originalFill(value, options);
|
|
62
65
|
};
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
const originalGetByTestIdMethod = locator.getByTestId.bind(locator);
|
|
68
|
-
locator.getByTestId = (...args) => overrideFillMethod(originalGetByTestIdMethod(...args));
|
|
69
|
-
const originalGetByAltTextMethod = locator.getByAltText.bind(locator);
|
|
70
|
-
locator.getByAltText = (...args) => overrideFillMethod(originalGetByAltTextMethod(...args));
|
|
71
|
-
const originalGetByLabelMethod = locator.getByLabel.bind(locator);
|
|
72
|
-
locator.getByLabel = (...args) => overrideFillMethod(originalGetByLabelMethod(...args));
|
|
73
|
-
const originalGetByRoleMethod = locator.getByRole.bind(locator);
|
|
74
|
-
locator.getByRole = (...args) => overrideFillMethod(originalGetByRoleMethod(...args));
|
|
75
|
-
const originalGetByPlaceholderMethod = locator.getByPlaceholder.bind(locator);
|
|
76
|
-
locator.getByPlaceholder = (...args) => overrideFillMethod(originalGetByPlaceholderMethod(...args));
|
|
77
|
-
const originalGetByTitleMethod = locator.getByTitle.bind(locator);
|
|
78
|
-
locator.getByTitle = (...args) => overrideFillMethod(originalGetByTitleMethod(...args));
|
|
66
|
+
for (const method of locatorMethods) {
|
|
67
|
+
const original = locator[method].bind(locator);
|
|
68
|
+
locator[method] = (...args) => overrideFillMethod(original(...args));
|
|
69
|
+
}
|
|
79
70
|
return locator;
|
|
80
71
|
};
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
const originalGetByAltText = page.getByAltText.bind(page);
|
|
86
|
-
const originalGetByLabel = page.getByLabel.bind(page);
|
|
87
|
-
const originalGetByRole = page.getByRole.bind(page);
|
|
88
|
-
const originalGetByPlaceholder = page.getByPlaceholder.bind(page);
|
|
89
|
-
const originalGetByText = page.getByText.bind(page);
|
|
90
|
-
const originalGetByTitle = page.getByTitle.bind(page);
|
|
91
|
-
// Override other top-level methods as before
|
|
92
|
-
page.getByTestId = (...args) => overrideFillMethod(originalGetByTestId(...args));
|
|
93
|
-
page.getByAltText = (...args) => overrideFillMethod(originalGetByAltText(...args));
|
|
94
|
-
page.getByLabel = (...args) => overrideFillMethod(originalGetByLabel(...args));
|
|
95
|
-
page.getByRole = (...args) => overrideFillMethod(originalGetByRole(...args));
|
|
96
|
-
page.getByPlaceholder = (...args) => overrideFillMethod(originalGetByPlaceholder(...args));
|
|
97
|
-
page.getByText = (...args) => overrideFillMethod(originalGetByText(...args));
|
|
98
|
-
page.getByTitle = (...args) => overrideFillMethod(originalGetByTitle(...args));
|
|
72
|
+
for (const method of locatorMethods) {
|
|
73
|
+
const original = page[method].bind(page);
|
|
74
|
+
page[method] = (...args) => overrideFillMethod(original(...args));
|
|
75
|
+
}
|
|
99
76
|
await use(page);
|
|
100
77
|
}
|
|
101
78
|
});
|
|
102
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* Returns the extended `Test` fixture with the fill override active.
|
|
82
|
+
*/
|
|
103
83
|
get test() {
|
|
104
84
|
return this._test;
|
|
105
85
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FillOverride.js","sourceRoot":"","sources":["../../page-overrides/FillOverride.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG9D,MAAM,gBAAgB,GAAa,cAAc,EAAE,CAAC,GAAG,CAAW,wCAAwC,CAAC,IAAI,EAAE,CAAC;AAClH,MAAM,yBAAyB,GAC7B,cAAc,EAAE,CAAC,GAAG,CAAU,4DAA4D,CAAC,IAAI,IAAI,CAAC;AAEtG,MAAM,OAAO,YAAY;IAIvB,YAAY,IAAU;
|
|
1
|
+
{"version":3,"file":"FillOverride.js","sourceRoot":"","sources":["../../page-overrides/FillOverride.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG9D,MAAM,gBAAgB,GAAa,cAAc,EAAE,CAAC,GAAG,CAAW,wCAAwC,CAAC,IAAI,EAAE,CAAC;AAClH,MAAM,yBAAyB,GAC7B,cAAc,EAAE,CAAC,GAAG,CAAU,4DAA4D,CAAC,IAAI,IAAI,CAAC;AAEtG,MAAM,cAAc,GAAG;IACrB,SAAS;IACT,WAAW;IACX,aAAa;IACb,cAAc;IACd,YAAY;IACZ,WAAW;IACX,kBAAkB;IAClB,YAAY;CACJ,CAAC;AAEX;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,YAAY;IAIvB;;;;;;OAMG;IACH,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BAAyB;4BAAE,MAAM,IAAI,CAAC,aAAa,CAAC,cAAc,EAAE,CAAC;wBAEzE,MAAM,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,CAAC;wBACjD,MAAM,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;oBACrC,CAAC,CAAC;oBAEF,KAAK,MAAM,MAAM,IAAI,cAAc,EAAE,CAAC;wBACpC,MAAM,QAAQ,GAAI,OAAO,CAAC,MAAM,CAAqC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;wBACnF,OAAsE,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,IAAe,EAAE,EAAE,CACvG,kBAAkB,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;oBAC1C,CAAC;oBAED,OAAO,OAAO,CAAC;gBACjB,CAAC,CAAC;gBAEF,KAAK,MAAM,MAAM,IAAI,cAAc,EAAE,CAAC;oBACpC,MAAM,QAAQ,GAAI,IAAI,CAAC,MAAM,CAAqC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;oBAC7E,IAAmE,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,IAAe,EAAE,EAAE,CACpG,kBAAkB,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;gBAC1C,CAAC;gBAED,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC;YAClB,CAAC;SACF,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF"}
|
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reads and exposes the consumer project's `Testwise.json` configuration file
|
|
3
|
+
* and any `.env` files found in the project root.
|
|
4
|
+
*
|
|
5
|
+
* **What it does:**
|
|
6
|
+
* - Locates `Testwise.json` relative to `process.env.INIT_CWD` (the directory
|
|
7
|
+
* from which `npm run` was invoked — i.e. the consumer project root).
|
|
8
|
+
* - Parses and applies every `.env` file found in that directory into
|
|
9
|
+
* `process.env` so environment variables are available to all pipeline steps
|
|
10
|
+
* and helpers before they construct.
|
|
11
|
+
* - Exposes a dot-notation `get<T>(key)` accessor to retrieve deeply nested
|
|
12
|
+
* config values without needing to cast or navigate the raw JSON.
|
|
13
|
+
*
|
|
14
|
+
* **How to use it in tests or helpers:**
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { testwiseConfig } from '../services/ConfigBuilder.js';
|
|
17
|
+
*
|
|
18
|
+
* const baseUrl = testwiseConfig().get<string>('application.baseUrl');
|
|
19
|
+
* const timeout = testwiseConfig().get<number>('featureSettings.InflightRequests.waitTimeout');
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* The exported `testwiseConfig()` function returns a singleton—the file is
|
|
23
|
+
* only read once per process.
|
|
24
|
+
*/
|
|
1
25
|
declare class ConfigBuilder {
|
|
2
26
|
private config;
|
|
3
27
|
constructor();
|
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import dotenv from 'dotenv';
|
|
4
|
+
/**
|
|
5
|
+
* Reads and exposes the consumer project's `Testwise.json` configuration file
|
|
6
|
+
* and any `.env` files found in the project root.
|
|
7
|
+
*
|
|
8
|
+
* **What it does:**
|
|
9
|
+
* - Locates `Testwise.json` relative to `process.env.INIT_CWD` (the directory
|
|
10
|
+
* from which `npm run` was invoked — i.e. the consumer project root).
|
|
11
|
+
* - Parses and applies every `.env` file found in that directory into
|
|
12
|
+
* `process.env` so environment variables are available to all pipeline steps
|
|
13
|
+
* and helpers before they construct.
|
|
14
|
+
* - Exposes a dot-notation `get<T>(key)` accessor to retrieve deeply nested
|
|
15
|
+
* config values without needing to cast or navigate the raw JSON.
|
|
16
|
+
*
|
|
17
|
+
* **How to use it in tests or helpers:**
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { testwiseConfig } from '../services/ConfigBuilder.js';
|
|
20
|
+
*
|
|
21
|
+
* const baseUrl = testwiseConfig().get<string>('application.baseUrl');
|
|
22
|
+
* const timeout = testwiseConfig().get<number>('featureSettings.InflightRequests.waitTimeout');
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* The exported `testwiseConfig()` function returns a singleton—the file is
|
|
26
|
+
* only read once per process.
|
|
27
|
+
*/
|
|
4
28
|
class ConfigBuilder {
|
|
5
29
|
constructor() {
|
|
6
30
|
this.config = null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigBuilder.js","sourceRoot":"","sources":["../../services/ConfigBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,MAAM,aAAa;IAGjB;QAFQ,WAAM,GAAmC,IAAI,CAAC;QAGpD,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;QACtD,MAAM,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;QAE9D,4EAA4E;QAC5E,MAAM,QAAQ,GAAG,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;QAEjF,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;YAC/B,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;YAChF,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;QACxC,CAAC;QAED,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,cA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@@ export declare class IndiciumApiService {
|
|
|
10
10
|
* before any API calls are made.
|
|
11
11
|
*/
|
|
12
12
|
private ensureReady;
|
|
13
|
+
private static extractMessage;
|
|
13
14
|
private initialize;
|
|
14
15
|
private verifyConnection;
|
|
16
|
+
/**
|
|
17
|
+
* Returns whether the service successfully connected to and verified the configured
|
|
18
|
+
* GUI application alias. Use this to guard against misconfiguration before making API calls.
|
|
19
|
+
* @returns `true` if the connection was verified; `false` otherwise.
|
|
20
|
+
*/
|
|
15
21
|
canConnectToProject(): Promise<boolean>;
|
|
22
|
+
/**
|
|
23
|
+
* Returns the resolved GUI application ID for the configured alias, or `null` if
|
|
24
|
+
* verification failed (e.g. the alias was not found or the service URL is unreachable).
|
|
25
|
+
*/
|
|
16
26
|
getVerifiedGuiApplId(): Promise<number | null>;
|
|
27
|
+
/**
|
|
28
|
+
* Fetches all UI table records (`i_ui_tab`) for the verified GUI application.
|
|
29
|
+
* @returns An array of table objects, or an empty array if not verified or on error.
|
|
30
|
+
*/
|
|
17
31
|
getAllTables(): Promise<any[]>;
|
|
32
|
+
/**
|
|
33
|
+
* Fetches all UI column records (`i_ui_col`) for the verified GUI application.
|
|
34
|
+
* @returns An array of column objects, or an empty array if not verified or on error.
|
|
35
|
+
*/
|
|
18
36
|
getAllColumns(): Promise<any[]>;
|
|
37
|
+
/**
|
|
38
|
+
* Fetches all lookup table relationships (`i_ui_tab_look_up`) for the verified GUI application.
|
|
39
|
+
* @returns An array of lookup objects, or an empty array if not verified or on error.
|
|
40
|
+
*/
|
|
19
41
|
getLookups(): Promise<any[]>;
|
|
42
|
+
/**
|
|
43
|
+
* Fetches all screen component records (`i_ui_screen_component`) for the verified GUI application.
|
|
44
|
+
* @returns An array of screen component objects, or an empty array if not verified or on error.
|
|
45
|
+
*/
|
|
20
46
|
getScreenComponents(): Promise<any[]>;
|
|
21
47
|
/**
|
|
22
48
|
* Returns the verified GUI Application ID.
|
|
@@ -18,6 +18,16 @@ export class IndiciumApiService {
|
|
|
18
18
|
async ensureReady() {
|
|
19
19
|
await this.initPromise;
|
|
20
20
|
}
|
|
21
|
+
static extractMessage(error) {
|
|
22
|
+
if (axios.isAxiosError(error)) {
|
|
23
|
+
const axiosErr = error;
|
|
24
|
+
const status = axiosErr.response?.status;
|
|
25
|
+
const statusText = axiosErr.response?.statusText;
|
|
26
|
+
const url = axiosErr.config?.url ?? '';
|
|
27
|
+
return status ? `HTTP ${status} ${statusText} — ${url}` : axiosErr.message;
|
|
28
|
+
}
|
|
29
|
+
return error instanceof Error ? error.message : String(error);
|
|
30
|
+
}
|
|
21
31
|
async initialize() {
|
|
22
32
|
const config = testwiseConfig();
|
|
23
33
|
const serviceUrl = config.get('environmentSettings.serviceUrl')?.replace(/\/$/, '');
|
|
@@ -55,17 +65,30 @@ export class IndiciumApiService {
|
|
|
55
65
|
}
|
|
56
66
|
}
|
|
57
67
|
catch (error) {
|
|
58
|
-
console.error(
|
|
68
|
+
console.error(`IndiciumApiService: Verification failed: ${IndiciumApiService.extractMessage(error)}`);
|
|
59
69
|
}
|
|
60
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Returns whether the service successfully connected to and verified the configured
|
|
73
|
+
* GUI application alias. Use this to guard against misconfiguration before making API calls.
|
|
74
|
+
* @returns `true` if the connection was verified; `false` otherwise.
|
|
75
|
+
*/
|
|
61
76
|
async canConnectToProject() {
|
|
62
77
|
await this.ensureReady();
|
|
63
78
|
return this.isVerified;
|
|
64
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* Returns the resolved GUI application ID for the configured alias, or `null` if
|
|
82
|
+
* verification failed (e.g. the alias was not found or the service URL is unreachable).
|
|
83
|
+
*/
|
|
65
84
|
async getVerifiedGuiApplId() {
|
|
66
85
|
await this.ensureReady();
|
|
67
86
|
return this.guiApplId;
|
|
68
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* Fetches all UI table records (`i_ui_tab`) for the verified GUI application.
|
|
90
|
+
* @returns An array of table objects, or an empty array if not verified or on error.
|
|
91
|
+
*/
|
|
69
92
|
async getAllTables() {
|
|
70
93
|
await this.ensureReady();
|
|
71
94
|
if (!this.isVerified || !this.guiApplId)
|
|
@@ -75,10 +98,14 @@ export class IndiciumApiService {
|
|
|
75
98
|
return response.data?.value || [];
|
|
76
99
|
}
|
|
77
100
|
catch (error) {
|
|
78
|
-
console.error(
|
|
101
|
+
console.error(`IndiciumApiService: Failed to fetch tables: ${IndiciumApiService.extractMessage(error)}`);
|
|
79
102
|
return [];
|
|
80
103
|
}
|
|
81
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* Fetches all UI column records (`i_ui_col`) for the verified GUI application.
|
|
107
|
+
* @returns An array of column objects, or an empty array if not verified or on error.
|
|
108
|
+
*/
|
|
82
109
|
async getAllColumns() {
|
|
83
110
|
await this.ensureReady();
|
|
84
111
|
if (!this.isVerified || !this.guiApplId)
|
|
@@ -88,10 +115,14 @@ export class IndiciumApiService {
|
|
|
88
115
|
return response.data?.value || [];
|
|
89
116
|
}
|
|
90
117
|
catch (error) {
|
|
91
|
-
console.error(
|
|
118
|
+
console.error(`IndiciumApiService: Failed to fetch columns: ${IndiciumApiService.extractMessage(error)}`);
|
|
92
119
|
return [];
|
|
93
120
|
}
|
|
94
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* Fetches all lookup table relationships (`i_ui_tab_look_up`) for the verified GUI application.
|
|
124
|
+
* @returns An array of lookup objects, or an empty array if not verified or on error.
|
|
125
|
+
*/
|
|
95
126
|
async getLookups() {
|
|
96
127
|
await this.ensureReady();
|
|
97
128
|
if (!this.isVerified || !this.guiApplId)
|
|
@@ -101,10 +132,14 @@ export class IndiciumApiService {
|
|
|
101
132
|
return response.data?.value || [];
|
|
102
133
|
}
|
|
103
134
|
catch (error) {
|
|
104
|
-
console.error(
|
|
135
|
+
console.error(`IndiciumApiService: Failed to fetch lookups: ${IndiciumApiService.extractMessage(error)}`);
|
|
105
136
|
return [];
|
|
106
137
|
}
|
|
107
138
|
}
|
|
139
|
+
/**
|
|
140
|
+
* Fetches all screen component records (`i_ui_screen_component`) for the verified GUI application.
|
|
141
|
+
* @returns An array of screen component objects, or an empty array if not verified or on error.
|
|
142
|
+
*/
|
|
108
143
|
async getScreenComponents() {
|
|
109
144
|
await this.ensureReady();
|
|
110
145
|
if (!this.isVerified || !this.guiApplId)
|
|
@@ -114,7 +149,7 @@ export class IndiciumApiService {
|
|
|
114
149
|
return response.data?.value || [];
|
|
115
150
|
}
|
|
116
151
|
catch (error) {
|
|
117
|
-
console.error(
|
|
152
|
+
console.error(`IndiciumApiService: Failed to fetch screen components: ${IndiciumApiService.extractMessage(error)}`);
|
|
118
153
|
return [];
|
|
119
154
|
}
|
|
120
155
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IndiciumApi.service.js","sourceRoot":"","sources":["../../services/IndiciumApi.service.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,0EAA0E;AAC1E,8EAA8E;AAC9E,OAAO,
|
|
1
|
+
{"version":3,"file":"IndiciumApi.service.js","sourceRoot":"","sources":["../../services/IndiciumApi.service.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,0EAA0E;AAC1E,8EAA8E;AAC9E,OAAO,KAA8C,MAAM,OAAO,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,OAAO,kBAAkB;IAO7B;QANQ,kBAAa,GAAyB,IAAI,CAAC;QAC3C,iBAAY,GAAkB,IAAI,CAAC;QACnC,cAAS,GAAkB,IAAI,CAAC;QAChC,eAAU,GAAG,KAAK,CAAC;QAIzB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;IACvC,CAAC;IAED;;;OAGG;IACK,KAAK,CAAC,WAAW;QACvB,MAAM,IAAI,CAAC,WAAW,CAAC;IACzB,CAAC;IAEO,MAAM,CAAC,cAAc,CAAC,KAAc;QAC1C,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,EA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