@thinkwise/testwise 0.1.75 → 0.1.97
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 +13 -4
- package/components/BaseComponentObjects.ts +1 -1
- package/components/actionbar/Actionbar.ts +45 -38
- package/components/actionbar/ActionbarObjects.ts +53 -17
- package/components/actionbar/CustomActionBar.ts +10 -0
- package/components/cardlist/Cardlist.ts +14 -0
- package/components/cardlist/CardlistObjects.ts +5 -0
- package/components/chart/Chart.ts +14 -0
- package/components/chart/ChartObjects.ts +5 -0
- package/components/combined-filter/CombinedFIlterObjects.ts +5 -0
- package/components/combined-filter/CombinedFilter.ts +14 -0
- package/components/cube-view-bar/CubeViewBar.ts +14 -0
- package/components/cube-view-bar/CubeViewBarObjects.ts +5 -0
- package/components/filter/FilterForm.ts +11 -8
- package/components/filter/FilterFormObjects.ts +5 -0
- package/components/filter/FindForm.ts +2 -10
- package/components/grid/Grid.ts +4 -2
- package/components/grid/GridObjects.ts +1 -1
- package/components/index.ts +21 -2
- package/components/maps/Maps.ts +14 -0
- package/components/maps/MapsObjects.ts +5 -0
- package/components/menu/ListBarMenuComponent.ts +37 -0
- package/components/menu/ListBarMenuComponentObjects.ts +14 -0
- package/components/pivot-grid/PivotGrid.ts +14 -0
- package/components/pivot-grid/PivotGridFieldList.ts +14 -0
- package/components/pivot-grid/PivotGridFieldListObjects.ts +5 -0
- package/components/pivot-grid/PivotGridObjects.ts +5 -0
- package/components/pop-up/PopUpComponent.ts +7 -5
- package/components/pop-up/PopUpComponentObjects.ts +4 -5
- package/components/prefilter-list/PrefilterList.ts +14 -0
- package/components/prefilter-list/PrefilterListObjects.ts +5 -0
- package/components/preview/Preview.ts +14 -0
- package/components/preview/PreviewObjects.ts +5 -0
- package/components/report-bar/ReportBar.ts +14 -0
- package/components/report-bar/ReportBarObjects.ts +5 -0
- package/components/report-tiles/ReportTiles.ts +14 -0
- package/components/report-tiles/ReportTilesObjects.ts +5 -0
- package/components/scheduler/Scheduler.ts +14 -0
- package/components/scheduler/SchedulerObjects.ts +5 -0
- package/components/snackbar/SnackBar.ts +29 -0
- package/components/snackbar/SnackBarObjects.ts +14 -0
- package/components/splitter/Splitter.ts +11 -0
- package/components/splitter/SplitterObjects.ts +5 -0
- package/components/tab/ComponentTab.ts +5 -0
- package/components/tab/ComponentTabObjects.ts +3 -0
- package/components/tab/DetailTab.ts +1 -1
- package/components/tab/DetailTabObjects.ts +2 -1
- package/components/tab/Tab.ts +14 -0
- package/components/tab/TabObjects.ts +5 -0
- package/components/task/TaskTiles.ts +28 -0
- package/components/task/TaskTilesObjects.ts +24 -0
- package/components/topbar/TopBar.ts +14 -0
- package/components/topbar/TopBarObjects.ts +12 -0
- package/components/tree-view/TreeView.ts +14 -0
- package/components/tree-view/TreeViewObjects.ts +5 -0
- package/dist/Testwise.d.ts +2 -1
- package/dist/Testwise.js +14 -5
- package/dist/Testwise.js.map +1 -1
- package/dist/bdd.d.ts +6 -0
- package/dist/bdd.js +9 -0
- package/dist/bdd.js.map +1 -0
- package/dist/biome.json +1 -1
- package/dist/components/BaseComponentObjects.d.ts +1 -1
- package/dist/components/actionbar/Actionbar.d.ts +31 -26
- package/dist/components/actionbar/Actionbar.js +34 -26
- package/dist/components/actionbar/Actionbar.js.map +1 -1
- package/dist/components/actionbar/ActionbarObjects.d.ts +23 -11
- package/dist/components/actionbar/ActionbarObjects.js +30 -11
- package/dist/components/actionbar/ActionbarObjects.js.map +1 -1
- package/dist/components/actionbar/CustomActionBar.d.ts +5 -0
- package/dist/components/actionbar/CustomActionBar.js +7 -0
- package/dist/components/actionbar/CustomActionBar.js.map +1 -0
- package/dist/components/cardlist/Cardlist.d.ts +7 -0
- package/dist/components/cardlist/Cardlist.js +10 -0
- package/dist/components/cardlist/Cardlist.js.map +1 -0
- package/dist/components/cardlist/CardlistObjects.d.ts +3 -0
- package/dist/components/cardlist/CardlistObjects.js +4 -0
- package/dist/components/cardlist/CardlistObjects.js.map +1 -0
- package/dist/components/chart/Chart.d.ts +7 -0
- package/dist/components/chart/Chart.js +10 -0
- package/dist/components/chart/Chart.js.map +1 -0
- package/dist/components/chart/ChartObjects.d.ts +3 -0
- package/dist/components/chart/ChartObjects.js +4 -0
- package/dist/components/chart/ChartObjects.js.map +1 -0
- package/dist/components/combined-filter/CombinedFIlterObjects.d.ts +3 -0
- package/dist/components/combined-filter/CombinedFIlterObjects.js +4 -0
- package/dist/components/combined-filter/CombinedFIlterObjects.js.map +1 -0
- package/dist/components/combined-filter/CombinedFilter.d.ts +7 -0
- package/dist/components/combined-filter/CombinedFilter.js +10 -0
- package/dist/components/combined-filter/CombinedFilter.js.map +1 -0
- package/dist/components/cube-view-bar/CubeViewBar.d.ts +7 -0
- package/dist/components/cube-view-bar/CubeViewBar.js +10 -0
- package/dist/components/cube-view-bar/CubeViewBar.js.map +1 -0
- package/dist/components/cube-view-bar/CubeViewBarObjects.d.ts +3 -0
- package/dist/components/cube-view-bar/CubeViewBarObjects.js +4 -0
- package/dist/components/cube-view-bar/CubeViewBarObjects.js.map +1 -0
- package/dist/components/filter/FilterForm.d.ts +6 -4
- package/dist/components/filter/FilterForm.js +7 -7
- package/dist/components/filter/FilterForm.js.map +1 -1
- package/dist/components/filter/FilterFormObjects.d.ts +3 -0
- package/dist/components/filter/FilterFormObjects.js +4 -0
- package/dist/components/filter/FilterFormObjects.js.map +1 -0
- package/dist/components/filter/FindForm.d.ts +1 -4
- package/dist/components/filter/FindForm.js +1 -8
- package/dist/components/filter/FindForm.js.map +1 -1
- package/dist/components/grid/Grid.js +4 -1
- package/dist/components/grid/Grid.js.map +1 -1
- package/dist/components/grid/GridObjects.js +1 -1
- package/dist/components/grid/GridObjects.js.map +1 -1
- package/dist/components/index.d.ts +21 -2
- package/dist/components/index.js +21 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/maps/Maps.d.ts +7 -0
- package/dist/components/maps/Maps.js +10 -0
- package/dist/components/maps/Maps.js.map +1 -0
- package/dist/components/maps/MapsObjects.d.ts +3 -0
- package/dist/components/maps/MapsObjects.js +4 -0
- package/dist/components/maps/MapsObjects.js.map +1 -0
- package/dist/components/menu/ListBarMenuComponent.d.ts +10 -0
- package/dist/components/menu/ListBarMenuComponent.js +29 -0
- package/dist/components/menu/ListBarMenuComponent.js.map +1 -0
- package/dist/components/menu/ListBarMenuComponentObjects.d.ts +7 -0
- package/dist/components/menu/ListBarMenuComponentObjects.js +8 -0
- package/dist/components/menu/ListBarMenuComponentObjects.js.map +1 -0
- package/dist/components/pivot-grid/PivotGrid.d.ts +7 -0
- package/dist/components/pivot-grid/PivotGrid.js +10 -0
- package/dist/components/pivot-grid/PivotGrid.js.map +1 -0
- package/dist/components/pivot-grid/PivotGridFieldList.d.ts +7 -0
- package/dist/components/pivot-grid/PivotGridFieldList.js +10 -0
- package/dist/components/pivot-grid/PivotGridFieldList.js.map +1 -0
- package/dist/components/pivot-grid/PivotGridFieldListObjects.d.ts +3 -0
- package/dist/components/pivot-grid/PivotGridFieldListObjects.js +4 -0
- package/dist/components/pivot-grid/PivotGridFieldListObjects.js.map +1 -0
- package/dist/components/pivot-grid/PivotGridObjects.d.ts +3 -0
- package/dist/components/pivot-grid/PivotGridObjects.js +4 -0
- package/dist/components/pivot-grid/PivotGridObjects.js.map +1 -0
- package/dist/components/pop-up/PopUpComponent.d.ts +5 -5
- package/dist/components/pop-up/PopUpComponent.js +6 -4
- package/dist/components/pop-up/PopUpComponent.js.map +1 -1
- package/dist/components/pop-up/PopUpComponentObjects.d.ts +3 -4
- package/dist/components/pop-up/PopUpComponentObjects.js +3 -4
- package/dist/components/pop-up/PopUpComponentObjects.js.map +1 -1
- package/dist/components/prefilter-list/PrefilterList.d.ts +7 -0
- package/dist/components/prefilter-list/PrefilterList.js +10 -0
- package/dist/components/prefilter-list/PrefilterList.js.map +1 -0
- package/dist/components/prefilter-list/PrefilterListObjects.d.ts +3 -0
- package/dist/components/prefilter-list/PrefilterListObjects.js +4 -0
- package/dist/components/prefilter-list/PrefilterListObjects.js.map +1 -0
- package/dist/components/preview/Preview.d.ts +7 -0
- package/dist/components/preview/Preview.js +10 -0
- package/dist/components/preview/Preview.js.map +1 -0
- package/dist/components/preview/PreviewObjects.d.ts +3 -0
- package/dist/components/preview/PreviewObjects.js +4 -0
- package/dist/components/preview/PreviewObjects.js.map +1 -0
- package/dist/components/report-bar/ReportBar.d.ts +7 -0
- package/dist/components/report-bar/ReportBar.js +10 -0
- package/dist/components/report-bar/ReportBar.js.map +1 -0
- package/dist/components/report-bar/ReportBarObjects.d.ts +3 -0
- package/dist/components/report-bar/ReportBarObjects.js +4 -0
- package/dist/components/report-bar/ReportBarObjects.js.map +1 -0
- package/dist/components/report-tiles/ReportTiles.d.ts +7 -0
- package/dist/components/report-tiles/ReportTiles.js +10 -0
- package/dist/components/report-tiles/ReportTiles.js.map +1 -0
- package/dist/components/report-tiles/ReportTilesObjects.d.ts +3 -0
- package/dist/components/report-tiles/ReportTilesObjects.js +4 -0
- package/dist/components/report-tiles/ReportTilesObjects.js.map +1 -0
- package/dist/components/scheduler/Scheduler.d.ts +7 -0
- package/dist/components/scheduler/Scheduler.js +10 -0
- package/dist/components/scheduler/Scheduler.js.map +1 -0
- package/dist/components/scheduler/SchedulerObjects.d.ts +3 -0
- package/dist/components/scheduler/SchedulerObjects.js +4 -0
- package/dist/components/scheduler/SchedulerObjects.js.map +1 -0
- package/dist/components/snackbar/SnackBar.d.ts +10 -0
- package/dist/components/snackbar/SnackBar.js +21 -0
- package/dist/components/snackbar/SnackBar.js.map +1 -0
- package/dist/components/snackbar/SnackBarObjects.d.ts +8 -0
- package/dist/components/snackbar/SnackBarObjects.js +10 -0
- package/dist/components/snackbar/SnackBarObjects.js.map +1 -0
- package/dist/components/splitter/Splitter.d.ts +6 -0
- package/dist/components/splitter/Splitter.js +8 -0
- package/dist/components/splitter/Splitter.js.map +1 -0
- package/dist/components/splitter/SplitterObjects.d.ts +3 -0
- package/dist/components/splitter/SplitterObjects.js +4 -0
- package/dist/components/splitter/SplitterObjects.js.map +1 -0
- package/dist/components/tab/ComponentTab.d.ts +1 -0
- package/dist/components/tab/ComponentTab.js +4 -0
- package/dist/components/tab/ComponentTab.js.map +1 -1
- package/dist/components/tab/ComponentTabObjects.d.ts +1 -0
- package/dist/components/tab/ComponentTabObjects.js +1 -0
- package/dist/components/tab/ComponentTabObjects.js.map +1 -1
- package/dist/components/tab/DetailTab.js +1 -1
- package/dist/components/tab/DetailTab.js.map +1 -1
- package/dist/components/tab/DetailTabObjects.d.ts +1 -0
- package/dist/components/tab/DetailTabObjects.js +1 -0
- package/dist/components/tab/DetailTabObjects.js.map +1 -1
- package/dist/components/tab/Tab.d.ts +7 -0
- package/dist/components/tab/Tab.js +10 -0
- package/dist/components/tab/Tab.js.map +1 -0
- package/dist/components/tab/TabObjects.d.ts +3 -0
- package/dist/components/tab/TabObjects.js +4 -0
- package/dist/components/tab/TabObjects.js.map +1 -0
- package/dist/components/task/{TaskTile.d.ts → TaskTiles.d.ts} +4 -4
- package/dist/components/task/TaskTiles.js +20 -0
- package/dist/components/task/TaskTiles.js.map +1 -0
- package/dist/components/task/{TaskTileObjects.d.ts → TaskTilesObjects.d.ts} +1 -1
- package/dist/components/task/TaskTilesObjects.js +18 -0
- package/dist/components/task/TaskTilesObjects.js.map +1 -0
- package/dist/components/topbar/TopBar.d.ts +7 -0
- package/dist/components/topbar/TopBar.js +9 -0
- package/dist/components/topbar/TopBar.js.map +1 -0
- package/dist/components/topbar/TopBarObjects.d.ts +7 -0
- package/dist/components/topbar/TopBarObjects.js +9 -0
- package/dist/components/topbar/TopBarObjects.js.map +1 -0
- package/dist/components/tree-view/TreeView.d.ts +7 -0
- package/dist/components/tree-view/TreeView.js +10 -0
- package/dist/components/tree-view/TreeView.js.map +1 -0
- package/dist/components/tree-view/TreeViewObjects.d.ts +3 -0
- package/dist/components/tree-view/TreeViewObjects.js +4 -0
- package/dist/components/tree-view/TreeViewObjects.js.map +1 -0
- package/dist/helpers/TestExtensions.d.ts +8 -0
- package/dist/helpers/TestExtensions.js +21 -0
- package/dist/helpers/TestExtensions.js.map +1 -0
- package/dist/interfaces/IComponentObjects.js.map +1 -0
- package/dist/interfaces/IStoredTestResults.d.ts +5 -0
- package/dist/interfaces/IStoredTestResults.js +2 -0
- package/dist/interfaces/IStoredTestResults.js.map +1 -0
- package/dist/package-lock.json +411 -615
- package/dist/package.json +3 -2
- package/dist/page-extensions/GlobalComponents.d.ts +5 -2
- package/dist/page-extensions/GlobalComponents.js +4 -1
- package/dist/page-extensions/GlobalComponents.js.map +1 -1
- package/dist/page-extensions/GoToDeepLink.d.ts +1 -1
- package/dist/page-extensions/LoginFeatures.d.ts +1 -1
- package/dist/page-extensions/UserSimulation.d.ts +1 -1
- package/dist/page-extensions/WaitEventHandler.d.ts +1 -1
- package/dist/page-overrides/ClickOverride.d.ts +1 -1
- package/dist/page-overrides/FillOverride.d.ts +1 -1
- package/dist/page-overrides/FillOverride.js +7 -6
- package/dist/page-overrides/FillOverride.js.map +1 -1
- package/dist/services/ReportingService.js.map +1 -1
- package/dist/types/Test.js +2 -0
- package/dist/types/Test.js.map +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/interfaces/IStoredTestResults.ts +6 -0
- package/package.json +3 -2
- package/page-extensions/GlobalComponents.ts +14 -2
- package/page-extensions/GoToDeepLink.ts +1 -1
- package/page-extensions/LoginFeatures.ts +1 -1
- package/page-extensions/UserSimulation.ts +1 -1
- package/page-extensions/WaitEventHandler.ts +1 -1
- package/page-overrides/ClickOverride.ts +1 -1
- package/page-overrides/FillOverride.ts +10 -7
- package/promptCredentials.js +124 -124
- package/scripts/setup.js +34 -34
- package/services/ReportingService.ts +2 -6
- package/types/index.ts +1 -1
- package/components/BaseComponent.ts +0 -95
- package/components/Splitter.ts +0 -11
- package/components/TSFComponent.ts +0 -8
- package/components/task/TaskTile.ts +0 -28
- package/components/task/TaskTileObjects.ts +0 -20
- package/dist/components/BaseComponent.d.ts +0 -29
- package/dist/components/BaseComponent.js +0 -67
- package/dist/components/BaseComponent.js.map +0 -1
- package/dist/components/IComponentObjects.js.map +0 -1
- package/dist/components/Splitter.d.ts +0 -5
- package/dist/components/Splitter.js +0 -10
- package/dist/components/Splitter.js.map +0 -1
- package/dist/components/TSFComponent.d.ts +0 -6
- package/dist/components/TSFComponent.js +0 -2
- package/dist/components/TSFComponent.js.map +0 -1
- package/dist/components/task/TaskTile.js +0 -20
- package/dist/components/task/TaskTile.js.map +0 -1
- package/dist/components/task/TaskTileObjects.js +0 -15
- package/dist/components/task/TaskTileObjects.js.map +0 -1
- package/dist/seed-data/screen-schemas/chart.json +0 -25
- package/dist/seed-data/screen-schemas/chart_horizontal.json +0 -25
- package/dist/seed-data/screen-schemas/chart_no_fields.json +0 -14
- package/dist/seed-data/screen-schemas/cube.json +0 -40
- package/dist/seed-data/screen-schemas/cube_horizontal.json +0 -40
- package/dist/seed-data/screen-schemas/cube_no_fields.json +0 -25
- package/dist/seed-data/screen-schemas/form_only.json +0 -20
- package/dist/seed-data/screen-schemas/form_with_tree.json +0 -20
- package/dist/seed-data/screen-schemas/grid_with_card_list.json +0 -20
- package/dist/seed-data/screen-schemas/grid_with_filter_form.json +0 -20
- package/dist/seed-data/screen-schemas/grid_with_map.json +0 -20
- package/dist/seed-data/screen-schemas/grid_with_prefilter_bar.json +0 -20
- package/dist/seed-data/screen-schemas/grid_with_report_bar.json +0 -20
- package/dist/seed-data/screen-schemas/grid_with_report_tiles.json +0 -20
- package/dist/seed-data/screen-schemas/hierarchy.json +0 -43
- package/dist/seed-data/screen-schemas/hierarchy_card_list.json +0 -39
- package/dist/seed-data/screen-schemas/hierarchy_no_filter.json +0 -38
- package/dist/seed-data/screen-schemas/look_up_popup.json +0 -48
- package/dist/seed-data/screen-schemas/master_detail.json +0 -39
- package/dist/seed-data/screen-schemas/master_detail_no_filter.json +0 -34
- package/dist/seed-data/screen-schemas/master_detail_vertical.json +0 -39
- package/dist/seed-data/screen-schemas/master_detail_with_preview.json +0 -25
- package/dist/seed-data/screen-schemas/master_detail_with_task_bar.json +0 -48
- package/dist/seed-data/screen-schemas/master_detail_with_task_tiles.json +0 -44
- package/dist/seed-data/screen-schemas/master_vertical_detail.json +0 -39
- package/dist/seed-data/screen-schemas/pivot_grid.json +0 -25
- package/dist/seed-data/screen-schemas/pivot_grid_horizontal.json +0 -25
- package/dist/seed-data/screen-schemas/pivot_grid_no_fields.json +0 -14
- package/dist/seed-data/screen-schemas/scheduler.json +0 -14
- package/dist/seed-data/screen-schemas/test.json +0 -30
- package/dist/seed-data/screen-schemas/testpoonam.json +0 -40
- package/dist/seed-data/screen-schemas/view_customer_cube.json +0 -36
- package/dist/seed-data/subjects.json +0 -1586
- package/dist/types/CoreTypes.js +0 -2
- package/dist/types/CoreTypes.js.map +0 -1
- /package/dist/{components → interfaces}/IComponentObjects.d.ts +0 -0
- /package/dist/{components → interfaces}/IComponentObjects.js +0 -0
- /package/dist/types/{CoreTypes.d.ts → Test.d.ts} +0 -0
- /package/{components → interfaces}/IComponentObjects.ts +0 -0
- /package/types/{CoreTypes.ts → Test.ts} +0 -0
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thinkwise/testwise",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.96",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"chalk": "^5.4.1",
|
|
23
23
|
"csv-parse": "^5.6.0",
|
|
24
24
|
"dotenv": "^17.2.2",
|
|
25
|
+
"playwright-bdd": "^8.4.2",
|
|
25
26
|
"prompts": "^2.4.2"
|
|
26
27
|
},
|
|
27
28
|
"peerDependencies": {
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
"typescript": "^5.8.3"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
|
-
"@biomejs/biome": "^2.
|
|
33
|
+
"@biomejs/biome": "^2.3.8",
|
|
33
34
|
"@eslint/js": "^9.28.0",
|
|
34
35
|
"@playwright/test": "^1.52.0",
|
|
35
36
|
"eslint": "^9.28.0",
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { Page } from '@playwright/test';
|
|
2
|
-
import { ExportComponent, PopUpComponent } from '../components/index.js';
|
|
3
|
-
import type { Test } from '../types/
|
|
2
|
+
import { ExportComponent, ListBarMenuComponent, PopUpComponent, SnackBarComponent, TopBarComponent } from '../components/index.js';
|
|
3
|
+
import type { Test } from '../types/Test.js';
|
|
4
4
|
declare class GlobalComponents {
|
|
5
5
|
popUp: PopUpComponent;
|
|
6
6
|
export: ExportComponent;
|
|
7
|
+
snackBar: SnackBarComponent;
|
|
8
|
+
topBar: TopBarComponent;
|
|
9
|
+
listBarMenu: ListBarMenuComponent;
|
|
7
10
|
constructor(page: Page);
|
|
8
11
|
}
|
|
9
12
|
declare module '@playwright/test' {
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { ExportComponent, PopUpComponent } from '../components/index.js';
|
|
1
|
+
import { ExportComponent, ListBarMenuComponent, PopUpComponent, SnackBarComponent, TopBarComponent } from '../components/index.js';
|
|
2
2
|
class GlobalComponents {
|
|
3
3
|
constructor(page) {
|
|
4
4
|
this.popUp = new PopUpComponent(page);
|
|
5
5
|
this.export = new ExportComponent(page);
|
|
6
|
+
this.snackBar = new SnackBarComponent(page);
|
|
7
|
+
this.topBar = new TopBarComponent(page);
|
|
8
|
+
this.listBarMenu = new ListBarMenuComponent(page);
|
|
6
9
|
}
|
|
7
10
|
}
|
|
8
11
|
export class Components {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalComponents.js","sourceRoot":"","sources":["../../page-extensions/GlobalComponents.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"GlobalComponents.js","sourceRoot":"","sources":["../../page-extensions/GlobalComponents.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,cAAc,EACd,iBAAiB,EACjB,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAGhC,MAAM,gBAAgB;IAOpB,YAAY,IAAU;QACpB,IAAI,CAAC,KAAK,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QACtC,IAAI,CAAC,MAAM,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,CAAC,QAAQ,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAC5C,IAAI,CAAC,MAAM,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,CAAC,WAAW,GAAG,IAAI,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;CACF;AAQD,MAAM,OAAO,UAAU;IAGrB,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,UAAU,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;gBAE7C,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,5 +1,5 @@
|
|
|
1
1
|
import { GlobalWaitEventHandler } from '../helpers/GlobalWaitEventHandler.js';
|
|
2
|
-
import type { Test } from '../types/
|
|
2
|
+
import type { Test } from '../types/Test.js';
|
|
3
3
|
declare module '@playwright/test' {
|
|
4
4
|
interface Page {
|
|
5
5
|
waitEventHandler: GlobalWaitEventHandler;
|
|
@@ -38,20 +38,21 @@ export class FillOverride {
|
|
|
38
38
|
}
|
|
39
39
|
const currentValue = await locator.inputValue();
|
|
40
40
|
const valueIsDifferent = currentValue !== value;
|
|
41
|
-
const
|
|
42
|
-
const
|
|
41
|
+
const formFieldTestIdPrefix = 'form-field__';
|
|
42
|
+
const isQualifyingFormField = await locator.evaluate((el, formFieldTestIdPrefix) => {
|
|
43
43
|
const elementTestId = el.getAttribute('data-testid');
|
|
44
|
+
const parentWithFormSectionTestId = el.closest('[data-testid^="form-section__"]');
|
|
44
45
|
if (elementTestId) {
|
|
45
|
-
return
|
|
46
|
+
return elementTestId.includes(formFieldTestIdPrefix) && parentWithFormSectionTestId !== null;
|
|
46
47
|
}
|
|
47
48
|
return false;
|
|
48
|
-
},
|
|
49
|
-
if (valueIsDifferent &&
|
|
49
|
+
}, formFieldTestIdPrefix);
|
|
50
|
+
if (valueIsDifferent && isQualifyingFormField) {
|
|
50
51
|
await page.waitEventHandler.waitForCanContinue();
|
|
51
52
|
page.waitEventHandler.waitForResponse('/staged');
|
|
52
53
|
}
|
|
53
54
|
await originalFillMethod(value, options);
|
|
54
|
-
if (
|
|
55
|
+
if (isQualifyingFormField) {
|
|
55
56
|
await locator.evaluate((el) => {
|
|
56
57
|
const ariaExpanded = el.getAttribute('aria-expanded');
|
|
57
58
|
if (!ariaExpanded)
|
|
@@ -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;QAFd,kBAAa,GAAkB,IAAI,aAAa,EAAE,C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AU,GAAG,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;gBAC/E,IAAI,CAAC,SAAS,GAAG,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;gBAC7E,IAAI,CAAC,gBAAgB,GAAG,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,kBAAkB,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;gBAC3F,IAAI,CAAC,SAAS,GAAG,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;gBAC7E,IAAI,CAAC,UAAU,GAAG,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;gBAE/E,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportingService.js","sourceRoot":"","sources":["../../services/ReportingService.ts"],"names":[],"mappings":"AAAA,iGAAiG;AAGjG,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"ReportingService.js","sourceRoot":"","sources":["../../services/ReportingService.ts"],"names":[],"mappings":"AAAA,iGAAiG;AAGjG,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAGnE,MAAM,gBAAgB;IAAtB;QACU,oBAAe,GAA0B,IAAI,CAAC;QAC9C,aAAQ,GAAwB,EAAE,CAAC;IA0B7C,CAAC;IAxBC,SAAS,CAAC,IAAc,EAAE,MAAkB;QAC1C,OAAO,CAAC,IAAI,CAAC,eAAe,IAAI,CAAC,KAAK,aAAa,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;QAEpE,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,KAAK,MAAM;YAAE,OAAO;QAErD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,MAAkB;QAC5B,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,KAAK,MAAM;YAAE,OAAO;QAErD,IAAI,CAAC,eAAe,GAAG,IAAI,cAAc,EAAE,CAAC;QAE5C,MAAM,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;YACzB,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACvC,MAAM,IAAI,CAAC,eAAe,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC;YAChG,CAAC;QACH,CAAC;QAED,IAAI,MAAM,CAAC,MAAM,KAAK,QAAQ,IAAI,OAAO,CAAC,GAAG,CAAC,uBAAuB,KAAK,MAAM;YAC9E,MAAM,IAAI,CAAC,eAAe,EAAE,YAAY,EAAE,CAAC;IAC/C,CAAC;CACF;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Test.js","sourceRoot":"","sources":["../../types/Test.ts"],"names":[],"mappings":""}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './Test.js';
|
|
2
2
|
export * from './Universal.js';
|
package/dist/types/index.js
CHANGED
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thinkwise/testwise",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.97",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"chalk": "^5.4.1",
|
|
23
23
|
"csv-parse": "^5.6.0",
|
|
24
24
|
"dotenv": "^17.2.2",
|
|
25
|
+
"playwright-bdd": "^8.4.2",
|
|
25
26
|
"prompts": "^2.4.2"
|
|
26
27
|
},
|
|
27
28
|
"peerDependencies": {
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
"typescript": "^5.8.3"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
|
-
"@biomejs/biome": "^2.
|
|
33
|
+
"@biomejs/biome": "^2.3.8",
|
|
33
34
|
"@eslint/js": "^9.28.0",
|
|
34
35
|
"@playwright/test": "^1.52.0",
|
|
35
36
|
"eslint": "^9.28.0",
|
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
import type { Page } from '@playwright/test';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
ExportComponent,
|
|
4
|
+
ListBarMenuComponent,
|
|
5
|
+
PopUpComponent,
|
|
6
|
+
SnackBarComponent,
|
|
7
|
+
TopBarComponent
|
|
8
|
+
} from '../components/index.js';
|
|
9
|
+
import type { Test } from '../types/Test.js';
|
|
4
10
|
|
|
5
11
|
class GlobalComponents {
|
|
6
12
|
public popUp: PopUpComponent;
|
|
7
13
|
public export: ExportComponent;
|
|
14
|
+
public snackBar: SnackBarComponent;
|
|
15
|
+
public topBar: TopBarComponent;
|
|
16
|
+
public listBarMenu: ListBarMenuComponent;
|
|
8
17
|
|
|
9
18
|
constructor(page: Page) {
|
|
10
19
|
this.popUp = new PopUpComponent(page);
|
|
11
20
|
this.export = new ExportComponent(page);
|
|
21
|
+
this.snackBar = new SnackBarComponent(page);
|
|
22
|
+
this.topBar = new TopBarComponent(page);
|
|
23
|
+
this.listBarMenu = new ListBarMenuComponent(page);
|
|
12
24
|
}
|
|
13
25
|
}
|
|
14
26
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LoginHelper } from '../helpers/LoginHelper.js';
|
|
2
|
-
import type { Test } from '../types/CoreTypes.js';
|
|
3
2
|
import type { UniversalLoginOptions } from '../types/index.js';
|
|
3
|
+
import type { Test } from '../types/Test.js';
|
|
4
4
|
|
|
5
5
|
declare module '@playwright/test' {
|
|
6
6
|
interface Page {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Locator } from '@playwright/test';
|
|
2
2
|
import { FlightTracker } from '../helpers/FlightTracker.js';
|
|
3
3
|
import { testwiseConfig } from '../services/ConfigBuilder.js';
|
|
4
|
-
import type { Test } from '../types/
|
|
4
|
+
import type { Test } from '../types/Test.js';
|
|
5
5
|
|
|
6
6
|
const waitForRequestsToComplete =
|
|
7
7
|
testwiseConfig().get<boolean>('featureSettings.InflightRequests.waitForRequestsToComplete') ?? true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Locator } from '@playwright/test';
|
|
2
2
|
import { FlightTracker } from '../helpers/FlightTracker.js';
|
|
3
3
|
import { testwiseConfig } from '../services/ConfigBuilder.js';
|
|
4
|
-
import type { Test } from '../types/
|
|
4
|
+
import type { Test } from '../types/Test.js';
|
|
5
5
|
|
|
6
6
|
const requestWatchlist: string[] = testwiseConfig().get<string[]>('featureSettings.InflightRequests.paths') ?? [];
|
|
7
7
|
const waitForRequestsToComplete =
|
|
@@ -48,24 +48,27 @@ export class FillOverride {
|
|
|
48
48
|
const currentValue = await locator.inputValue();
|
|
49
49
|
const valueIsDifferent = currentValue !== value;
|
|
50
50
|
|
|
51
|
-
const
|
|
51
|
+
const formFieldTestIdPrefix: string = 'form-field__';
|
|
52
52
|
|
|
53
|
-
const
|
|
53
|
+
const isQualifyingFormField = await locator.evaluate((el, formFieldTestIdPrefix) => {
|
|
54
54
|
const elementTestId = el.getAttribute('data-testid');
|
|
55
|
+
|
|
56
|
+
const parentWithFormSectionTestId = el.closest('[data-testid^="form-section__"]');
|
|
57
|
+
|
|
55
58
|
if (elementTestId) {
|
|
56
|
-
return
|
|
59
|
+
return elementTestId.includes(formFieldTestIdPrefix) && parentWithFormSectionTestId !== null;
|
|
57
60
|
}
|
|
58
61
|
return false;
|
|
59
|
-
},
|
|
62
|
+
}, formFieldTestIdPrefix);
|
|
60
63
|
|
|
61
|
-
if (valueIsDifferent &&
|
|
64
|
+
if (valueIsDifferent && isQualifyingFormField) {
|
|
62
65
|
await page.waitEventHandler.waitForCanContinue();
|
|
63
66
|
page.waitEventHandler.waitForResponse('/staged');
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
await originalFillMethod(value, options);
|
|
67
70
|
|
|
68
|
-
if (
|
|
71
|
+
if (isQualifyingFormField) {
|
|
69
72
|
await locator.evaluate((el) => {
|
|
70
73
|
const ariaExpanded = el.getAttribute('aria-expanded');
|
|
71
74
|
|
package/promptCredentials.js
CHANGED
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { spawnSync } from 'node:child_process';
|
|
3
|
-
import { readFileSync } from 'node:fs';
|
|
4
|
-
import process from 'node:process';
|
|
5
|
-
import chalk from 'chalk';
|
|
6
|
-
import prompts from 'prompts';
|
|
7
|
-
|
|
8
|
-
const packageScripts = JSON.parse(readFileSync('./package.json')).scripts;
|
|
9
|
-
|
|
10
|
-
function exitWithError(error) {
|
|
11
|
-
console.log(chalk.red(error));
|
|
12
|
-
process.exit(1);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function startTestSolution() {
|
|
16
|
-
console.log('Now starting test solution...');
|
|
17
|
-
spawnSync(`yarn --cwd ../ ${args.join(' ')}`, {
|
|
18
|
-
shell: true,
|
|
19
|
-
stdio: 'inherit'
|
|
20
|
-
});
|
|
21
|
-
process.exit();
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const args = process.argv.slice(2);
|
|
25
|
-
|
|
26
|
-
if (!args.length) {
|
|
27
|
-
exitWithError('Error: Got too few parameters. Usage: yarn test:credentials test');
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const yarnScriptToExec = args[0];
|
|
31
|
-
|
|
32
|
-
if (!packageScripts[yarnScriptToExec]) {
|
|
33
|
-
exitWithError(`Error: Given script "${yarnScriptToExec}" doesn't exist in package.json.`);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// INCOMING HACK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
37
|
-
// temp fix to be reworked when converting this file to TS
|
|
38
|
-
import fs from 'node:fs';
|
|
39
|
-
import path from 'node:path';
|
|
40
|
-
|
|
41
|
-
const indiciumURL = (() => {
|
|
42
|
-
try {
|
|
43
|
-
const configPath = path.resolve(process.cwd(), './Testwise.json');
|
|
44
|
-
const config = JSON.parse(fs.readFileSync(configPath, 'utf-8'));
|
|
45
|
-
return config.environmentSettings?.serviceUrl || '';
|
|
46
|
-
} catch (error) {
|
|
47
|
-
console.error('Error reading Testwise.json:', error);
|
|
48
|
-
return '';
|
|
49
|
-
}
|
|
50
|
-
})();
|
|
51
|
-
|
|
52
|
-
// END OF HACK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
53
|
-
|
|
54
|
-
if (process.env.SF_TEST_USERNAME && process.env.SF_TEST_PASSWORD) {
|
|
55
|
-
console.log('Using SF_TEST_USERNAME and SF_TEST_PASSWORD environment variables.');
|
|
56
|
-
startTestSolution();
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const questions = [
|
|
60
|
-
{
|
|
61
|
-
type: 'text',
|
|
62
|
-
name: 'username',
|
|
63
|
-
message: 'Username:',
|
|
64
|
-
validate: (value) => {
|
|
65
|
-
if (!value?.length) {
|
|
66
|
-
return 'Username is required';
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
if (value.toLowerCase() === 'demo') {
|
|
70
|
-
return 'Running tests locally with demo is forbidden as it results in dataset concurrency problems';
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
return true;
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
type: 'invisible',
|
|
78
|
-
name: 'password',
|
|
79
|
-
message: 'Password:',
|
|
80
|
-
validate: (value) => (!value?.length ? 'Password is required' : true)
|
|
81
|
-
}
|
|
82
|
-
];
|
|
83
|
-
|
|
84
|
-
(async () => {
|
|
85
|
-
const credentialsResponse = await prompts(questions);
|
|
86
|
-
|
|
87
|
-
if (!credentialsResponse || !credentialsResponse.username || !credentialsResponse.password) {
|
|
88
|
-
exitWithError('Username or password was not given');
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
const { password, username } = credentialsResponse;
|
|
92
|
-
const params = new URLSearchParams();
|
|
93
|
-
|
|
94
|
-
params.append('UserName', username);
|
|
95
|
-
params.append('Password', password);
|
|
96
|
-
|
|
97
|
-
const fetch = (await import('node-fetch')).default;
|
|
98
|
-
const authResponse = await fetch(`${indiciumURL}/account/api/login`, {
|
|
99
|
-
method: 'POST',
|
|
100
|
-
body: params
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
if (authResponse.status === 204) {
|
|
104
|
-
console.log('Confirmed credentials work @', indiciumURL);
|
|
105
|
-
} else {
|
|
106
|
-
const confirmResponse = await prompts([
|
|
107
|
-
{
|
|
108
|
-
type: 'confirm',
|
|
109
|
-
name: 'value',
|
|
110
|
-
message: `Can't login to ${indiciumURL} with the given credentials. Continue anyways?`,
|
|
111
|
-
initial: true
|
|
112
|
-
}
|
|
113
|
-
]);
|
|
114
|
-
|
|
115
|
-
if (!confirmResponse.value) {
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
process.env.SF_TEST_USERNAME = username;
|
|
121
|
-
process.env.SF_TEST_PASSWORD = password;
|
|
122
|
-
|
|
123
|
-
startTestSolution();
|
|
124
|
-
})();
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { spawnSync } from 'node:child_process';
|
|
3
|
+
import { readFileSync } from 'node:fs';
|
|
4
|
+
import process from 'node:process';
|
|
5
|
+
import chalk from 'chalk';
|
|
6
|
+
import prompts from 'prompts';
|
|
7
|
+
|
|
8
|
+
const packageScripts = JSON.parse(readFileSync('./package.json')).scripts;
|
|
9
|
+
|
|
10
|
+
function exitWithError(error) {
|
|
11
|
+
console.log(chalk.red(error));
|
|
12
|
+
process.exit(1);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function startTestSolution() {
|
|
16
|
+
console.log('Now starting test solution...');
|
|
17
|
+
spawnSync(`yarn --cwd ../ ${args.join(' ')}`, {
|
|
18
|
+
shell: true,
|
|
19
|
+
stdio: 'inherit'
|
|
20
|
+
});
|
|
21
|
+
process.exit();
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const args = process.argv.slice(2);
|
|
25
|
+
|
|
26
|
+
if (!args.length) {
|
|
27
|
+
exitWithError('Error: Got too few parameters. Usage: yarn test:credentials test');
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const yarnScriptToExec = args[0];
|
|
31
|
+
|
|
32
|
+
if (!packageScripts[yarnScriptToExec]) {
|
|
33
|
+
exitWithError(`Error: Given script "${yarnScriptToExec}" doesn't exist in package.json.`);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// INCOMING HACK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
37
|
+
// temp fix to be reworked when converting this file to TS
|
|
38
|
+
import fs from 'node:fs';
|
|
39
|
+
import path from 'node:path';
|
|
40
|
+
|
|
41
|
+
const indiciumURL = (() => {
|
|
42
|
+
try {
|
|
43
|
+
const configPath = path.resolve(process.cwd(), './Testwise.json');
|
|
44
|
+
const config = JSON.parse(fs.readFileSync(configPath, 'utf-8'));
|
|
45
|
+
return config.environmentSettings?.serviceUrl || '';
|
|
46
|
+
} catch (error) {
|
|
47
|
+
console.error('Error reading Testwise.json:', error);
|
|
48
|
+
return '';
|
|
49
|
+
}
|
|
50
|
+
})();
|
|
51
|
+
|
|
52
|
+
// END OF HACK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
53
|
+
|
|
54
|
+
if (process.env.SF_TEST_USERNAME && process.env.SF_TEST_PASSWORD) {
|
|
55
|
+
console.log('Using SF_TEST_USERNAME and SF_TEST_PASSWORD environment variables.');
|
|
56
|
+
startTestSolution();
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const questions = [
|
|
60
|
+
{
|
|
61
|
+
type: 'text',
|
|
62
|
+
name: 'username',
|
|
63
|
+
message: 'Username:',
|
|
64
|
+
validate: (value) => {
|
|
65
|
+
if (!value?.length) {
|
|
66
|
+
return 'Username is required';
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (value.toLowerCase() === 'demo') {
|
|
70
|
+
return 'Running tests locally with demo is forbidden as it results in dataset concurrency problems';
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
type: 'invisible',
|
|
78
|
+
name: 'password',
|
|
79
|
+
message: 'Password:',
|
|
80
|
+
validate: (value) => (!value?.length ? 'Password is required' : true)
|
|
81
|
+
}
|
|
82
|
+
];
|
|
83
|
+
|
|
84
|
+
(async () => {
|
|
85
|
+
const credentialsResponse = await prompts(questions);
|
|
86
|
+
|
|
87
|
+
if (!credentialsResponse || !credentialsResponse.username || !credentialsResponse.password) {
|
|
88
|
+
exitWithError('Username or password was not given');
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
const { password, username } = credentialsResponse;
|
|
92
|
+
const params = new URLSearchParams();
|
|
93
|
+
|
|
94
|
+
params.append('UserName', username);
|
|
95
|
+
params.append('Password', password);
|
|
96
|
+
|
|
97
|
+
const fetch = (await import('node-fetch')).default;
|
|
98
|
+
const authResponse = await fetch(`${indiciumURL}/account/api/login`, {
|
|
99
|
+
method: 'POST',
|
|
100
|
+
body: params
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
if (authResponse.status === 204) {
|
|
104
|
+
console.log('Confirmed credentials work @', indiciumURL);
|
|
105
|
+
} else {
|
|
106
|
+
const confirmResponse = await prompts([
|
|
107
|
+
{
|
|
108
|
+
type: 'confirm',
|
|
109
|
+
name: 'value',
|
|
110
|
+
message: `Can't login to ${indiciumURL} with the given credentials. Continue anyways?`,
|
|
111
|
+
initial: true
|
|
112
|
+
}
|
|
113
|
+
]);
|
|
114
|
+
|
|
115
|
+
if (!confirmResponse.value) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
process.env.SF_TEST_USERNAME = username;
|
|
121
|
+
process.env.SF_TEST_PASSWORD = password;
|
|
122
|
+
|
|
123
|
+
startTestSolution();
|
|
124
|
+
})();
|