@thinkwise/testwise 0.2.21 → 0.2.67
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 +2 -0
- package/artifact-builder/SelectorBuilder.ts +2 -2
- package/artifact-builder/SubjectComponentGenerator.ts +21 -12
- package/artifact-builder/SubjectGenerator.ts +20 -6
- package/components/action-bar/ActionBar.ts +7 -7
- package/components/action-bar/CustomActionBar.ts +0 -5
- package/components/cardlist/Cardlist.ts +3 -3
- package/components/chart/Chart.ts +3 -3
- package/components/combined-filter/CombinedFilter.ts +3 -3
- package/components/cube-view-bar/CubeViewBar.ts +3 -3
- package/components/filter/ExcelStyleFilterPopup.ts +69 -0
- package/components/filter/ExcelStyleFilterPopupObjects.ts +46 -0
- package/components/filter/FilterForm.ts +3 -3
- package/components/filter/FilterPopup.ts +187 -0
- package/components/filter/FilterPopupObjects.ts +63 -0
- package/components/filter/ManagePrefilterPopup.ts +44 -0
- package/components/filter/ManagePrefilterPopupObjects.ts +28 -0
- package/components/form/Form.ts +3 -3
- package/components/grid/Grid.ts +48 -133
- package/components/grid/GridObjects.ts +0 -19
- package/components/index.ts +4 -0
- package/components/maps/Maps.ts +3 -3
- package/components/menu/ListBarMenuComponent.ts +11 -0
- package/components/menu/ListBarMenuComponentObjects.ts +6 -0
- package/components/pivot-grid/PivotGrid.ts +3 -3
- package/components/pivot-grid/PivotGridFieldList.ts +3 -3
- package/components/pop-up/AllRowsPopUp.ts +29 -0
- package/components/pop-up/AllRowsPopUpObjects.ts +22 -0
- package/components/prefilter-list/PrefilterList.ts +3 -3
- package/components/preview/Preview.ts +3 -3
- package/components/report-bar/ReportBar.ts +3 -3
- package/components/report-tiles/ReportTiles.ts +3 -3
- package/components/scheduler/Scheduler.ts +3 -3
- package/components/splitter/Splitter.ts +3 -3
- package/components/tab/BaseTab.ts +3 -3
- package/components/tab/DetailTabPage.ts +4 -4
- package/components/tab/Tab.ts +4 -4
- package/components/task/TaskBar.ts +3 -3
- package/components/task/TaskTiles.ts +3 -3
- package/components/topbar/TopBar.ts +2 -0
- package/components/tree-view/TreeView.ts +3 -3
- package/controls/DateControl.ts +13 -14
- package/controls/DateControlObjects.ts +15 -0
- package/controls/FormComboBox.ts +17 -30
- package/controls/FormComboBoxObjects.ts +27 -0
- package/controls/GridColumnControl.ts +68 -0
- package/controls/GridColumnControlObjects.ts +20 -0
- package/controls/InputFieldControl.ts +17 -20
- package/controls/InputFieldControlObjects.ts +19 -0
- package/controls/LookupDropdown.ts +65 -24
- package/controls/LookupDropdownObjects.ts +19 -0
- package/controls/index.ts +1 -0
- package/dist/Testwise.d.ts +1 -0
- package/dist/Testwise.js +1 -0
- package/dist/Testwise.js.map +1 -1
- package/dist/artifact-builder/SelectorBuilder.d.ts +1 -1
- package/dist/artifact-builder/SelectorBuilder.js +2 -2
- package/dist/artifact-builder/SelectorBuilder.js.map +1 -1
- package/dist/artifact-builder/SubjectComponentGenerator.js +18 -12
- package/dist/artifact-builder/SubjectComponentGenerator.js.map +1 -1
- package/dist/artifact-builder/SubjectGenerator.d.ts +1 -0
- package/dist/artifact-builder/SubjectGenerator.js +16 -6
- package/dist/artifact-builder/SubjectGenerator.js.map +1 -1
- package/dist/components/action-bar/ActionBar.d.ts +2 -2
- package/dist/components/action-bar/ActionBar.js +7 -7
- package/dist/components/action-bar/ActionBar.js.map +1 -1
- package/dist/components/action-bar/CustomActionBar.d.ts +0 -2
- package/dist/components/action-bar/CustomActionBar.js +0 -3
- package/dist/components/action-bar/CustomActionBar.js.map +1 -1
- package/dist/components/cardlist/Cardlist.d.ts +2 -2
- package/dist/components/cardlist/Cardlist.js +2 -2
- package/dist/components/cardlist/Cardlist.js.map +1 -1
- package/dist/components/chart/Chart.d.ts +2 -2
- package/dist/components/chart/Chart.js +2 -2
- package/dist/components/chart/Chart.js.map +1 -1
- package/dist/components/combined-filter/CombinedFilter.d.ts +2 -2
- package/dist/components/combined-filter/CombinedFilter.js +2 -2
- package/dist/components/combined-filter/CombinedFilter.js.map +1 -1
- package/dist/components/cube-view-bar/CubeViewBar.d.ts +2 -2
- package/dist/components/cube-view-bar/CubeViewBar.js +2 -2
- package/dist/components/cube-view-bar/CubeViewBar.js.map +1 -1
- package/dist/components/filter/ExcelStyleFilterPopup.d.ts +19 -0
- package/dist/components/filter/ExcelStyleFilterPopup.js +64 -0
- package/dist/components/filter/ExcelStyleFilterPopup.js.map +1 -0
- package/dist/components/filter/ExcelStyleFilterPopupObjects.d.ts +16 -0
- package/dist/components/filter/ExcelStyleFilterPopupObjects.js +26 -0
- package/dist/components/filter/ExcelStyleFilterPopupObjects.js.map +1 -0
- package/dist/components/filter/FilterForm.d.ts +2 -2
- package/dist/components/filter/FilterForm.js +2 -2
- package/dist/components/filter/FilterForm.js.map +1 -1
- package/dist/components/filter/FilterPopup.d.ts +41 -0
- package/dist/components/filter/FilterPopup.js +126 -0
- package/dist/components/filter/FilterPopup.js.map +1 -0
- package/dist/components/filter/FilterPopupObjects.d.ts +29 -0
- package/dist/components/filter/FilterPopupObjects.js +30 -0
- package/dist/components/filter/FilterPopupObjects.js.map +1 -0
- package/dist/components/filter/ManagePrefilterPopup.d.ts +14 -0
- package/dist/components/filter/ManagePrefilterPopup.js +33 -0
- package/dist/components/filter/ManagePrefilterPopup.js.map +1 -0
- package/dist/components/filter/ManagePrefilterPopupObjects.d.ts +11 -0
- package/dist/components/filter/ManagePrefilterPopupObjects.js +19 -0
- package/dist/components/filter/ManagePrefilterPopupObjects.js.map +1 -0
- package/dist/components/form/Form.d.ts +2 -2
- package/dist/components/form/Form.js +2 -2
- package/dist/components/form/Form.js.map +1 -1
- package/dist/components/grid/Grid.d.ts +7 -37
- package/dist/components/grid/Grid.js +32 -127
- package/dist/components/grid/Grid.js.map +1 -1
- package/dist/components/grid/GridObjects.d.ts +0 -6
- package/dist/components/grid/GridObjects.js +0 -8
- package/dist/components/grid/GridObjects.js.map +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +4 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/maps/Maps.d.ts +2 -2
- package/dist/components/maps/Maps.js +2 -2
- package/dist/components/maps/Maps.js.map +1 -1
- package/dist/components/menu/ListBarMenuComponent.d.ts +6 -0
- package/dist/components/menu/ListBarMenuComponent.js +10 -0
- package/dist/components/menu/ListBarMenuComponent.js.map +1 -1
- package/dist/components/menu/ListBarMenuComponentObjects.d.ts +2 -0
- package/dist/components/menu/ListBarMenuComponentObjects.js +2 -0
- package/dist/components/menu/ListBarMenuComponentObjects.js.map +1 -1
- package/dist/components/pivot-grid/PivotGrid.d.ts +2 -2
- package/dist/components/pivot-grid/PivotGrid.js +2 -2
- package/dist/components/pivot-grid/PivotGrid.js.map +1 -1
- package/dist/components/pivot-grid/PivotGridFieldList.d.ts +2 -2
- package/dist/components/pivot-grid/PivotGridFieldList.js +2 -2
- 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 +19 -0
- package/dist/components/pop-up/AllRowsPopUp.js.map +1 -0
- package/dist/components/pop-up/AllRowsPopUpObjects.d.ts +11 -0
- package/dist/components/pop-up/AllRowsPopUpObjects.js +13 -0
- package/dist/components/pop-up/AllRowsPopUpObjects.js.map +1 -0
- package/dist/components/prefilter-list/PrefilterList.d.ts +2 -2
- package/dist/components/prefilter-list/PrefilterList.js +2 -2
- package/dist/components/prefilter-list/PrefilterList.js.map +1 -1
- package/dist/components/preview/Preview.d.ts +2 -2
- package/dist/components/preview/Preview.js +2 -2
- package/dist/components/preview/Preview.js.map +1 -1
- package/dist/components/report-bar/ReportBar.d.ts +2 -2
- package/dist/components/report-bar/ReportBar.js +2 -2
- package/dist/components/report-bar/ReportBar.js.map +1 -1
- package/dist/components/report-tiles/ReportTiles.d.ts +2 -2
- package/dist/components/report-tiles/ReportTiles.js +2 -2
- package/dist/components/report-tiles/ReportTiles.js.map +1 -1
- package/dist/components/scheduler/Scheduler.d.ts +2 -2
- package/dist/components/scheduler/Scheduler.js +2 -2
- package/dist/components/scheduler/Scheduler.js.map +1 -1
- package/dist/components/splitter/Splitter.d.ts +2 -2
- package/dist/components/splitter/Splitter.js +2 -2
- package/dist/components/splitter/Splitter.js.map +1 -1
- package/dist/components/tab/BaseTab.d.ts +2 -2
- package/dist/components/tab/BaseTab.js +2 -2
- package/dist/components/tab/BaseTab.js.map +1 -1
- package/dist/components/tab/DetailTabPage.d.ts +2 -2
- package/dist/components/tab/DetailTabPage.js +3 -3
- package/dist/components/tab/DetailTabPage.js.map +1 -1
- package/dist/components/tab/Tab.d.ts +2 -2
- package/dist/components/tab/Tab.js +3 -3
- package/dist/components/tab/Tab.js.map +1 -1
- package/dist/components/task/TaskBar.d.ts +2 -2
- package/dist/components/task/TaskBar.js +2 -2
- package/dist/components/task/TaskBar.js.map +1 -1
- package/dist/components/task/TaskTiles.d.ts +2 -2
- package/dist/components/task/TaskTiles.js +2 -2
- package/dist/components/task/TaskTiles.js.map +1 -1
- package/dist/components/topbar/TopBar.d.ts +1 -0
- package/dist/components/topbar/TopBar.js +1 -0
- package/dist/components/topbar/TopBar.js.map +1 -1
- package/dist/components/tree-view/TreeView.d.ts +2 -2
- package/dist/components/tree-view/TreeView.js +2 -2
- package/dist/components/tree-view/TreeView.js.map +1 -1
- package/dist/controls/DateControl.d.ts +4 -5
- package/dist/controls/DateControl.js +11 -11
- package/dist/controls/DateControl.js.map +1 -1
- package/dist/controls/DateControlObjects.d.ts +8 -0
- package/dist/controls/DateControlObjects.js +9 -0
- package/dist/controls/DateControlObjects.js.map +1 -0
- package/dist/controls/FormComboBox.d.ts +2 -2
- package/dist/controls/FormComboBox.js +15 -20
- package/dist/controls/FormComboBox.js.map +1 -1
- package/dist/controls/FormComboBoxObjects.d.ts +12 -0
- package/dist/controls/FormComboBoxObjects.js +16 -0
- package/dist/controls/FormComboBoxObjects.js.map +1 -0
- package/dist/controls/GridColumnControl.d.ts +10 -0
- package/dist/controls/GridColumnControl.js +43 -0
- package/dist/controls/GridColumnControl.js.map +1 -0
- package/dist/controls/GridColumnControlObjects.d.ts +9 -0
- package/dist/controls/GridColumnControlObjects.js +13 -0
- package/dist/controls/GridColumnControlObjects.js.map +1 -0
- package/dist/controls/InputFieldControl.d.ts +4 -6
- package/dist/controls/InputFieldControl.js +14 -15
- package/dist/controls/InputFieldControl.js.map +1 -1
- package/dist/controls/InputFieldControlObjects.d.ts +10 -0
- package/dist/controls/InputFieldControlObjects.js +11 -0
- package/dist/controls/InputFieldControlObjects.js.map +1 -0
- package/dist/controls/LookupDropdown.d.ts +6 -1
- package/dist/controls/LookupDropdown.js +51 -19
- 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/controls/index.d.ts +1 -0
- package/dist/controls/index.js +1 -0
- package/dist/controls/index.js.map +1 -1
- package/dist/enums/ElementTypes.d.ts +1 -1
- package/dist/enums/ElementTypes.js +1 -1
- package/dist/enums/ElementTypes.js.map +1 -1
- package/dist/helpers/FlightTracker.d.ts +7 -0
- package/dist/helpers/FlightTracker.js +63 -11
- package/dist/helpers/FlightTracker.js.map +1 -1
- package/dist/helpers/LoginHelper.d.ts +11 -3
- package/dist/helpers/LoginHelper.js +59 -13
- package/dist/helpers/LoginHelper.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/page-extensions/GlobalComponents.d.ts +2 -1
- package/dist/page-extensions/GlobalComponents.js +2 -1
- package/dist/page-extensions/GlobalComponents.js.map +1 -1
- package/dist/page-overrides/ClickOverride.d.ts +1 -0
- package/dist/page-overrides/ClickOverride.js +57 -46
- package/dist/page-overrides/ClickOverride.js.map +1 -1
- package/dist/types/Universal.d.ts +1 -0
- package/enums/ElementTypes.ts +1 -1
- package/helpers/FlightTracker.ts +71 -11
- package/helpers/LoginHelper.ts +79 -21
- package/index.ts +1 -1
- package/package.json +6 -5
- package/page-extensions/GlobalComponents.ts +3 -0
- package/page-overrides/ClickOverride.ts +69 -64
- package/types/Universal.ts +1 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Locator
|
|
1
|
+
import type { Locator } from '@playwright/test';
|
|
2
2
|
import { ReportBarObjects } from './ReportBarObjects.js';
|
|
3
3
|
export declare class ReportBar {
|
|
4
4
|
reportBarObjects: ReportBarObjects;
|
|
5
|
-
constructor(
|
|
5
|
+
constructor(context: Locator);
|
|
6
6
|
get context(): Locator | null;
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReportBarObjects } from './ReportBarObjects.js';
|
|
2
2
|
export class ReportBar {
|
|
3
|
-
constructor(
|
|
4
|
-
this.reportBarObjects = new ReportBarObjects(page, context);
|
|
3
|
+
constructor(context) {
|
|
4
|
+
this.reportBarObjects = new ReportBarObjects(context.page(), context);
|
|
5
5
|
}
|
|
6
6
|
get context() {
|
|
7
7
|
return this.reportBarObjects.context;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportBar.js","sourceRoot":"","sources":["../../../components/report-bar/ReportBar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,OAAO,SAAS;IAGpB,YAAY,
|
|
1
|
+
{"version":3,"file":"ReportBar.js","sourceRoot":"","sources":["../../../components/report-bar/ReportBar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,OAAO,SAAS;IAGpB,YAAY,OAAgB;QAC1B,IAAI,CAAC,gBAAgB,GAAG,IAAI,gBAAgB,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;IACvC,CAAC;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Locator
|
|
1
|
+
import type { Locator } from '@playwright/test';
|
|
2
2
|
import { ReportTilesObjects } from './ReportTilesObjects.js';
|
|
3
3
|
export declare class ReportTiles {
|
|
4
4
|
reportTilesObjects: ReportTilesObjects;
|
|
5
|
-
constructor(
|
|
5
|
+
constructor(context: Locator);
|
|
6
6
|
get context(): Locator | null;
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReportTilesObjects } from './ReportTilesObjects.js';
|
|
2
2
|
export class ReportTiles {
|
|
3
|
-
constructor(
|
|
4
|
-
this.reportTilesObjects = new ReportTilesObjects(page, context);
|
|
3
|
+
constructor(context) {
|
|
4
|
+
this.reportTilesObjects = new ReportTilesObjects(context.page(), context);
|
|
5
5
|
}
|
|
6
6
|
get context() {
|
|
7
7
|
return this.reportTilesObjects.context;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportTiles.js","sourceRoot":"","sources":["../../../components/report-tiles/ReportTiles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,OAAO,WAAW;IAGtB,YAAY,
|
|
1
|
+
{"version":3,"file":"ReportTiles.js","sourceRoot":"","sources":["../../../components/report-tiles/ReportTiles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,OAAO,WAAW;IAGtB,YAAY,OAAgB;QAC1B,IAAI,CAAC,kBAAkB,GAAG,IAAI,kBAAkB,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC;IACzC,CAAC;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Locator
|
|
1
|
+
import type { Locator } from '@playwright/test';
|
|
2
2
|
import { SchedulerObjects } from './SchedulerObjects.js';
|
|
3
3
|
export declare class Scheduler {
|
|
4
4
|
treeViewObjects: SchedulerObjects;
|
|
5
|
-
constructor(
|
|
5
|
+
constructor(context: Locator);
|
|
6
6
|
get context(): Locator | null;
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SchedulerObjects } from './SchedulerObjects.js';
|
|
2
2
|
export class Scheduler {
|
|
3
|
-
constructor(
|
|
4
|
-
this.treeViewObjects = new SchedulerObjects(page, context);
|
|
3
|
+
constructor(context) {
|
|
4
|
+
this.treeViewObjects = new SchedulerObjects(context.page(), context);
|
|
5
5
|
}
|
|
6
6
|
get context() {
|
|
7
7
|
return this.treeViewObjects.context;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scheduler.js","sourceRoot":"","sources":["../../../components/scheduler/Scheduler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,OAAO,SAAS;IAGpB,YAAY,
|
|
1
|
+
{"version":3,"file":"Scheduler.js","sourceRoot":"","sources":["../../../components/scheduler/Scheduler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,OAAO,SAAS;IAGpB,YAAY,OAAgB;QAC1B,IAAI,CAAC,eAAe,GAAG,IAAI,gBAAgB,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC;IACtC,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Locator
|
|
1
|
+
import type { Locator } from '@playwright/test';
|
|
2
2
|
import { SplitterObjects } from './SplitterObjects.js';
|
|
3
3
|
export declare class Splitter {
|
|
4
4
|
splitterObjects: SplitterObjects;
|
|
5
|
-
constructor(
|
|
5
|
+
constructor(context: Locator);
|
|
6
6
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SplitterObjects } from './SplitterObjects.js';
|
|
2
2
|
export class Splitter {
|
|
3
3
|
// ToDo: this is not the correct implementation, its temporary to allow generation to continue
|
|
4
|
-
constructor(
|
|
5
|
-
this.splitterObjects = new SplitterObjects(page, context);
|
|
4
|
+
constructor(context) {
|
|
5
|
+
this.splitterObjects = new SplitterObjects(context.page(), context);
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=Splitter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Splitter.js","sourceRoot":"","sources":["../../../components/splitter/Splitter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,OAAO,QAAQ;IAGnB,8FAA8F;IAC9F,YAAY,
|
|
1
|
+
{"version":3,"file":"Splitter.js","sourceRoot":"","sources":["../../../components/splitter/Splitter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,OAAO,QAAQ;IAGnB,8FAA8F;IAC9F,YAAY,OAAgB;QAC1B,IAAI,CAAC,eAAe,GAAG,IAAI,eAAe,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CACF"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Locator
|
|
1
|
+
import type { Locator } from '@playwright/test';
|
|
2
2
|
import { BaseTabObjects } from './BaseTabObjects.js';
|
|
3
3
|
export declare class BaseTab {
|
|
4
4
|
protected _objects: BaseTabObjects;
|
|
5
|
-
constructor(
|
|
5
|
+
constructor(context: Locator);
|
|
6
6
|
openById(name: string): Promise<void>;
|
|
7
7
|
openByIndex(index: number): Promise<void>;
|
|
8
8
|
getTabById(name: string): Locator;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseTabObjects } from './BaseTabObjects.js';
|
|
2
2
|
export class BaseTab {
|
|
3
|
-
constructor(
|
|
4
|
-
this._objects = new BaseTabObjects(page, context);
|
|
3
|
+
constructor(context) {
|
|
4
|
+
this._objects = new BaseTabObjects(context.page(), context);
|
|
5
5
|
}
|
|
6
6
|
// --- Common actions ---
|
|
7
7
|
// Clicks a tab by its tabstrip test id prefix (e.g., "form", "users", "list").
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseTab.js","sourceRoot":"","sources":["../../../components/tab/BaseTab.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,OAAO,OAAO;IAGlB,YAAY,
|
|
1
|
+
{"version":3,"file":"BaseTab.js","sourceRoot":"","sources":["../../../components/tab/BaseTab.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,OAAO,OAAO;IAGlB,YAAY,OAAgB;QAC1B,IAAI,CAAC,QAAQ,GAAG,IAAI,cAAc,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED,yBAAyB;IAEzB,+EAA+E;IAC/E,yEAAyE;IAClE,KAAK,CAAC,QAAQ,CAAC,IAAY;QAChC,MAAM,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC;IAChD,CAAC;IAED,2DAA2D;IACpD,KAAK,CAAC,WAAW,CAAC,KAAa;QACpC,MAAM,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC;IAChD,CAAC;IAED,yBAAyB;IAClB,UAAU,CAAC,IAAY;QAC5B,OAAO,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;IAEM,aAAa,CAAC,KAAa;QAChC,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC;IAED,2DAA2D;IACpD,KAAK,CAAC,aAAa,CAAC,IAAY;QACrC,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC9C,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;QAC3D,IAAI,CAAC,OAAO;YAAE,OAAO,CAAC,CAAC;QACvB,MAAM,GAAG,GAAG,CAAC,MAAM,KAAK,CAAC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,GAAG,CAAC;QACvD,MAAM,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QACnC,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACjC,CAAC;CACF"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Locator
|
|
1
|
+
import type { Locator } from '@playwright/test';
|
|
2
2
|
import { BaseTab } from './BaseTab.js';
|
|
3
3
|
import { DetailTabPageObjects } from './DetailTabPageObjects.js';
|
|
4
4
|
export declare class DetailTabPage extends BaseTab {
|
|
5
5
|
protected _objects: DetailTabPageObjects;
|
|
6
|
-
constructor(
|
|
6
|
+
constructor(context: Locator);
|
|
7
7
|
getDetailTabPageById(name: string): Locator;
|
|
8
8
|
getDetailTabPageByIndex(index: number): Locator;
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseTab } from './BaseTab.js';
|
|
2
2
|
import { DetailTabPageObjects } from './DetailTabPageObjects.js';
|
|
3
3
|
export class DetailTabPage extends BaseTab {
|
|
4
|
-
constructor(
|
|
5
|
-
super(
|
|
6
|
-
this._objects = new DetailTabPageObjects(page, context);
|
|
4
|
+
constructor(context) {
|
|
5
|
+
super(context);
|
|
6
|
+
this._objects = new DetailTabPageObjects(context.page(), context);
|
|
7
7
|
}
|
|
8
8
|
getDetailTabPageById(name) {
|
|
9
9
|
return this._objects.detailTab(name);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailTabPage.js","sourceRoot":"","sources":["../../../components/tab/DetailTabPage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,MAAM,OAAO,aAAc,SAAQ,OAAO;IAGxC,YAAY,
|
|
1
|
+
{"version":3,"file":"DetailTabPage.js","sourceRoot":"","sources":["../../../components/tab/DetailTabPage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,MAAM,OAAO,aAAc,SAAQ,OAAO;IAGxC,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,QAAQ,GAAG,IAAI,oBAAoB,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAEM,oBAAoB,CAAC,IAAY;QACtC,OAAO,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAEM,uBAAuB,CAAC,KAAa;QAC1C,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC;CACF"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Locator
|
|
1
|
+
import type { Locator } from '@playwright/test';
|
|
2
2
|
import { BaseTab } from './BaseTab.js';
|
|
3
3
|
import { TabObjects } from './TabObjects.js';
|
|
4
4
|
export declare class Tab extends BaseTab {
|
|
5
5
|
protected _objects: TabObjects;
|
|
6
|
-
constructor(
|
|
6
|
+
constructor(context: Locator);
|
|
7
7
|
openListTab(tabindex?: string): Promise<void>;
|
|
8
8
|
getListTab(tabindex?: string): Locator;
|
|
9
9
|
openFormTab(): Promise<void>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseTab } from './BaseTab.js';
|
|
2
2
|
import { TabObjects } from './TabObjects.js';
|
|
3
3
|
export class Tab extends BaseTab {
|
|
4
|
-
constructor(
|
|
5
|
-
super(
|
|
6
|
-
this._objects = new TabObjects(page, context);
|
|
4
|
+
constructor(context) {
|
|
5
|
+
super(context);
|
|
6
|
+
this._objects = new TabObjects(context.page(), context);
|
|
7
7
|
}
|
|
8
8
|
// --- Component-specific helpers ---
|
|
9
9
|
// Opens the “List” tab in this tabstrip (default tabindex = -1 for master).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tab.js","sourceRoot":"","sources":["../../../components/tab/Tab.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,OAAO,GAAI,SAAQ,OAAO;IAG9B,YAAY,
|
|
1
|
+
{"version":3,"file":"Tab.js","sourceRoot":"","sources":["../../../components/tab/Tab.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,OAAO,GAAI,SAAQ,OAAO;IAG9B,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,QAAQ,GAAG,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED,qCAAqC;IAErC,4EAA4E;IAC5E,wFAAwF;IACjF,KAAK,CAAC,WAAW,CAAC,WAAmB,IAAI;QAC9C,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,CAAC;IAChD,CAAC;IAED,2CAA2C;IACpC,UAAU,CAAC,WAAmB,IAAI;QACvC,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACzC,CAAC;IAED,kDAAkD;IAC3C,KAAK,CAAC,WAAW;QACtB,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC;IACxC,CAAC;IAED,2CAA2C;IACpC,UAAU;QACf,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;IACjC,CAAC;IAED,6DAA6D;IACtD,KAAK,CAAC,WAAW,CAAC,KAAa;QACpC,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC;IACzC,CAAC;CACF"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { Locator
|
|
1
|
+
import type { Locator } from '@playwright/test';
|
|
2
2
|
export declare class TaskBar {
|
|
3
3
|
private _taskBarObjects;
|
|
4
4
|
/**
|
|
5
5
|
* @param taskBarContext the taskbar container element (same idea as Grid's context)
|
|
6
6
|
*/
|
|
7
|
-
constructor(
|
|
7
|
+
constructor(taskBarContext: Locator);
|
|
8
8
|
/** returns all task buttons */
|
|
9
9
|
tasks: () => Locator;
|
|
10
10
|
/** returns a task button by its data-testid key */
|
|
@@ -3,7 +3,7 @@ export class TaskBar {
|
|
|
3
3
|
/**
|
|
4
4
|
* @param taskBarContext the taskbar container element (same idea as Grid's context)
|
|
5
5
|
*/
|
|
6
|
-
constructor(
|
|
6
|
+
constructor(taskBarContext) {
|
|
7
7
|
/** returns all task buttons */
|
|
8
8
|
this.tasks = () => this._taskBarObjects.tasks(); // matches Grid's "rows()" noun-style
|
|
9
9
|
/** returns a task button by its data-testid key */
|
|
@@ -17,7 +17,7 @@ export class TaskBar {
|
|
|
17
17
|
this.clickByLabel = async (label) => {
|
|
18
18
|
await this.getTaskByLabel(label).click();
|
|
19
19
|
};
|
|
20
|
-
this._taskBarObjects = new TaskBarObjects(page, taskBarContext);
|
|
20
|
+
this._taskBarObjects = new TaskBarObjects(taskBarContext.page(), taskBarContext);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
//# sourceMappingURL=TaskBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskBar.js","sourceRoot":"","sources":["../../../components/task/TaskBar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,OAAO,OAAO;IAGlB;;OAEG;IACH,YAAY,
|
|
1
|
+
{"version":3,"file":"TaskBar.js","sourceRoot":"","sources":["../../../components/task/TaskBar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,OAAO,OAAO;IAGlB;;OAEG;IACH,YAAY,cAAuB;QAInC,+BAA+B;QACxB,UAAK,GAAG,GAAY,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,CAAC,CAAC,qCAAqC;QAEjG,mDAAmD;QAC5C,gBAAW,GAAG,CAAC,GAAW,EAAW,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QAElF,iDAAiD;QAC1C,mBAAc,GAAG,CAAC,KAAa,EAAW,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAE5F,oDAAoD;QAC7C,cAAS,GAAG,KAAK,EAAE,GAAW,EAAiB,EAAE;YACtD,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC;QACtC,CAAC,CAAC;QAEK,iBAAY,GAAG,KAAK,EAAE,KAAa,EAAiB,EAAE;YAC3D,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC;QAC3C,CAAC,CAAC;QAnBA,IAAI,CAAC,eAAe,GAAG,IAAI,cAAc,CAAC,cAAc,CAAC,IAAI,EAAE,EAAE,cAAc,CAAC,CAAC;IACnF,CAAC;CAmBF"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { Locator
|
|
1
|
+
import type { Locator } from '@playwright/test';
|
|
2
2
|
export declare class TaskTiles {
|
|
3
3
|
private _taskTilesObjects;
|
|
4
4
|
/**
|
|
5
5
|
* @param taskTilesContext the taskTiles container element
|
|
6
6
|
*/
|
|
7
|
-
constructor(
|
|
7
|
+
constructor(taskTilesContext: Locator);
|
|
8
8
|
/** returns all task tile buttons */
|
|
9
9
|
tasks: () => Locator;
|
|
10
10
|
getTaskById: (key: string) => Locator;
|
|
@@ -3,7 +3,7 @@ export class TaskTiles {
|
|
|
3
3
|
/**
|
|
4
4
|
* @param taskTilesContext the taskTiles container element
|
|
5
5
|
*/
|
|
6
|
-
constructor(
|
|
6
|
+
constructor(taskTilesContext) {
|
|
7
7
|
/** returns all task tile buttons */
|
|
8
8
|
this.tasks = () => this._taskTilesObjects.tasks();
|
|
9
9
|
this.getTaskById = (key) => this._taskTilesObjects.taskById(key);
|
|
@@ -14,7 +14,7 @@ export class TaskTiles {
|
|
|
14
14
|
this.clickByLabel = async (label) => {
|
|
15
15
|
await this.getTaskByLabel(label).click();
|
|
16
16
|
};
|
|
17
|
-
this._taskTilesObjects = new TaskTilesObjects(page, taskTilesContext);
|
|
17
|
+
this._taskTilesObjects = new TaskTilesObjects(taskTilesContext.page(), taskTilesContext);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
//# sourceMappingURL=TaskTiles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskTiles.js","sourceRoot":"","sources":["../../../components/task/TaskTiles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,OAAO,SAAS;IAGpB;;OAEG;IACH,YAAY,
|
|
1
|
+
{"version":3,"file":"TaskTiles.js","sourceRoot":"","sources":["../../../components/task/TaskTiles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,OAAO,SAAS;IAGpB;;OAEG;IACH,YAAY,gBAAyB;QAIrC,oCAAoC;QAC7B,UAAK,GAAG,GAAY,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,CAAC;QAEtD,gBAAW,GAAG,CAAC,GAAW,EAAW,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QAE7E,mBAAc,GAAG,CAAC,KAAa,EAAW,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAEvF,cAAS,GAAG,KAAK,EAAE,GAAW,EAAiB,EAAE;YACtD,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC;QACtC,CAAC,CAAC;QAEK,iBAAY,GAAG,KAAK,EAAE,KAAa,EAAiB,EAAE;YAC3D,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC;QAC3C,CAAC,CAAC;QAhBA,IAAI,CAAC,iBAAiB,GAAG,IAAI,gBAAgB,CAAC,gBAAgB,CAAC,IAAI,EAAE,EAAE,gBAAgB,CAAC,CAAC;IAC3F,CAAC;CAgBF"}
|
|
@@ -3,6 +3,7 @@ export class TopBarComponent {
|
|
|
3
3
|
constructor(page, topbarContext = null) {
|
|
4
4
|
this.getTopBarTitle = () => this._objects.topBarTitle();
|
|
5
5
|
this.getTopBarBreadcrumb = () => this._objects.topBarBreadcrumb();
|
|
6
|
+
this.getMainHeader = () => this._objects.mainHeader;
|
|
6
7
|
this._objects = new TopBarObjects(page, topbarContext);
|
|
7
8
|
}
|
|
8
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopBar.js","sourceRoot":"","sources":["../../../components/topbar/TopBar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,OAAO,eAAe;IAG1B,YAAY,IAAU,EAAE,gBAAgC,IAAI;QAIrD,mBAAc,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;QAEnD,wBAAmB,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"TopBar.js","sourceRoot":"","sources":["../../../components/topbar/TopBar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,OAAO,eAAe;IAG1B,YAAY,IAAU,EAAE,gBAAgC,IAAI;QAIrD,mBAAc,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;QAEnD,wBAAmB,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC;QAE7D,kBAAa,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC;QAPpD,IAAI,CAAC,QAAQ,GAAG,IAAI,aAAa,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IACzD,CAAC;CAOF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Locator
|
|
1
|
+
import type { Locator } from '@playwright/test';
|
|
2
2
|
import { TreeViewObjects } from './TreeViewObjects.js';
|
|
3
3
|
export declare class TreeView {
|
|
4
4
|
treeViewObjects: TreeViewObjects;
|
|
5
|
-
constructor(
|
|
5
|
+
constructor(context: Locator);
|
|
6
6
|
get context(): Locator | null;
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TreeViewObjects } from './TreeViewObjects.js';
|
|
2
2
|
export class TreeView {
|
|
3
|
-
constructor(
|
|
4
|
-
this.treeViewObjects = new TreeViewObjects(page, context);
|
|
3
|
+
constructor(context) {
|
|
4
|
+
this.treeViewObjects = new TreeViewObjects(context.page(), context);
|
|
5
5
|
}
|
|
6
6
|
get context() {
|
|
7
7
|
return this.treeViewObjects.context;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeView.js","sourceRoot":"","sources":["../../../components/tree-view/TreeView.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,OAAO,QAAQ;IAGnB,YAAY,
|
|
1
|
+
{"version":3,"file":"TreeView.js","sourceRoot":"","sources":["../../../components/tree-view/TreeView.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,OAAO,QAAQ;IAGnB,YAAY,OAAgB;QAC1B,IAAI,CAAC,eAAe,GAAG,IAAI,eAAe,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC;IACtC,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Locator
|
|
1
|
+
import type { Locator } from '@playwright/test';
|
|
2
2
|
export type IDateControl = Locator & IDateControlCore;
|
|
3
3
|
export type IDateControlCore = {
|
|
4
4
|
fill(value: string): Promise<void>;
|
|
@@ -7,9 +7,8 @@ export type IDateControlCore = {
|
|
|
7
7
|
inputElement(): Locator;
|
|
8
8
|
};
|
|
9
9
|
export declare class DateControl implements IDateControlCore {
|
|
10
|
-
private
|
|
11
|
-
|
|
12
|
-
constructor(page: Page, id: string);
|
|
10
|
+
private _objects;
|
|
11
|
+
constructor(context: Locator, id: string);
|
|
13
12
|
/**
|
|
14
13
|
* Enter a date value in any common format (e.g., "MM/DD/YYYY", "YYYY-MM-DD", "DD-MM-YYYY").
|
|
15
14
|
* The method will extract the numbers and input them sequentially, allowing the date picker to format it correctly.
|
|
@@ -22,4 +21,4 @@ export declare class DateControl implements IDateControlCore {
|
|
|
22
21
|
inputValue(): Promise<string>;
|
|
23
22
|
inputElement(): Locator;
|
|
24
23
|
}
|
|
25
|
-
export declare function createDateControl(
|
|
24
|
+
export declare function createDateControl(context: Locator, id: string): IDateControl;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { DateControlObjects } from './DateControlObjects.js';
|
|
1
2
|
export class DateControl {
|
|
2
|
-
constructor(
|
|
3
|
-
this.
|
|
4
|
-
this._inputLocator = this._dateFieldLocator.locator('input');
|
|
3
|
+
constructor(context, id) {
|
|
4
|
+
this._objects = new DateControlObjects(context, id);
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
7
|
* Enter a date value in any common format (e.g., "MM/DD/YYYY", "YYYY-MM-DD", "DD-MM-YYYY").
|
|
@@ -12,22 +12,22 @@ export class DateControl {
|
|
|
12
12
|
*/
|
|
13
13
|
async fill(value) {
|
|
14
14
|
const numbersOnlyValue = value.replace(/\D/g, '');
|
|
15
|
-
await this.
|
|
16
|
-
await this.
|
|
15
|
+
await this._objects.fieldInput().focus();
|
|
16
|
+
await this._objects.fieldInput().pressSequentially(numbersOnlyValue);
|
|
17
17
|
}
|
|
18
18
|
async clear() {
|
|
19
|
-
await this.
|
|
19
|
+
await this._objects.fieldInput().fill('');
|
|
20
20
|
}
|
|
21
21
|
async inputValue() {
|
|
22
|
-
return await this.
|
|
22
|
+
return await this._objects.fieldInput().inputValue();
|
|
23
23
|
}
|
|
24
24
|
inputElement() {
|
|
25
|
-
return this.
|
|
25
|
+
return this._objects.fieldInput();
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
export function createDateControl(
|
|
29
|
-
const inputFieldControl = new DateControl(
|
|
30
|
-
const locator =
|
|
28
|
+
export function createDateControl(context, id) {
|
|
29
|
+
const inputFieldControl = new DateControl(context, id);
|
|
30
|
+
const locator = context.getByTestId(`form-field__${id}`);
|
|
31
31
|
return new Proxy(inputFieldControl, {
|
|
32
32
|
get(target, prop, receiver) {
|
|
33
33
|
if (prop in target) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateControl.js","sourceRoot":"","sources":["../../controls/DateControl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DateControl.js","sourceRoot":"","sources":["../../controls/DateControl.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAW7D,MAAM,OAAO,WAAW;IAGtB,YAAY,OAAgB,EAAE,EAAU;QACtC,IAAI,CAAC,QAAQ,GAAG,IAAI,kBAAkB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,IAAI,CAAC,KAAa;QAC7B,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAElD,MAAM,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,CAAC;QACzC,MAAM,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IACvE,CAAC;IAEM,KAAK,CAAC,KAAK;QAChB,MAAM,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC5C,CAAC;IAEM,KAAK,CAAC,UAAU;QACrB,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,UAAU,EAAE,CAAC;IACvD,CAAC;IAEM,YAAY;QACjB,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;IACpC,CAAC;CACF;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAgB,EAAE,EAAU;IAC5D,MAAM,iBAAiB,GAAG,IAAI,WAAW,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACvD,MAAM,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;IAEzD,OAAO,IAAI,KAAK,CAAC,iBAAiB,EAAE;QAClC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ;YACxB,IAAI,IAAI,IAAI,MAAM,EAAE,CAAC;gBACnB,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;YAC7C,CAAC;YACD,MAAM,KAAK,GAAI,OAAe,CAAC,IAAI,CAAC,CAAC;YAErC,IAAI,OAAO,KAAK,KAAK,UAAU,EAAE,CAAC;gBAChC,OAAO,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAC7B,CAAC;YACD,OAAO,KAAK,CAAC;QACf,CAAC;KACF,CAA4B,CAAC;AAChC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export class DateControlObjects {
|
|
2
|
+
constructor(context, id) {
|
|
3
|
+
this.fieldInput = () => this._context;
|
|
4
|
+
this.dateField = () => this._context.getByTestId(`form-field__${this._id}`);
|
|
5
|
+
this._context = context;
|
|
6
|
+
this._id = id;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=DateControlObjects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateControlObjects.js","sourceRoot":"","sources":["../../controls/DateControlObjects.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,kBAAkB;IAI7B,YAAY,OAAgB,EAAE,EAAU;QAKjC,eAAU,GAAG,GAAY,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC;QAE1C,cAAS,GAAG,GAAY,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,eAAe,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;QANrF,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;IAChB,CAAC;CAKF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Locator
|
|
1
|
+
import type { Locator } from '@playwright/test';
|
|
2
2
|
export type IFormComboBox = Locator & IFormComboBoxCore;
|
|
3
3
|
export type IFormComboBoxCore = {
|
|
4
4
|
lookupSelect(optionToSelect: string): Promise<void>;
|
|
@@ -6,4 +6,4 @@ export type IFormComboBoxCore = {
|
|
|
6
6
|
getValidationMessage(): Promise<string>;
|
|
7
7
|
clearByClick(): Promise<void>;
|
|
8
8
|
};
|
|
9
|
-
export declare function createFormComboBox(
|
|
9
|
+
export declare function createFormComboBox(context: Locator, id: string): IFormComboBox;
|
|
@@ -1,34 +1,29 @@
|
|
|
1
|
+
import { FormComboBoxObjects } from './FormComboBoxObjects.js';
|
|
1
2
|
class FormComboBox {
|
|
2
|
-
constructor(
|
|
3
|
-
this.
|
|
4
|
-
this._formFieldLocator = page.getByTestId(`form-field__${id}`);
|
|
5
|
-
this._autoCompleteMenu = page.getByTestId(`form-field__${id}__select__options-list`);
|
|
3
|
+
constructor(context, id) {
|
|
4
|
+
this._objects = new FormComboBoxObjects(context, id);
|
|
6
5
|
}
|
|
7
6
|
async selectOption(optionText) {
|
|
8
|
-
await this.
|
|
9
|
-
await this.
|
|
10
|
-
|
|
11
|
-
await this._autoCompleteMenu.getByTestId(`form-field__${this._id}__select__${optionTextLowercase}__text`).click();
|
|
7
|
+
await this._objects.fieldInput().click();
|
|
8
|
+
await this._objects.autoCompleteMenu().waitFor({ state: 'visible' });
|
|
9
|
+
await this._objects.option(optionText).click();
|
|
12
10
|
}
|
|
13
11
|
async getValidationMessage() {
|
|
14
|
-
await this.
|
|
15
|
-
return await this.
|
|
12
|
+
await this._objects.validationMessage().waitFor({ state: 'visible' });
|
|
13
|
+
return await this._objects.validationMessage().innerText();
|
|
16
14
|
}
|
|
17
15
|
async clearByClick() {
|
|
18
|
-
await this.
|
|
16
|
+
await this._objects.clearButton().click();
|
|
19
17
|
}
|
|
20
18
|
async lookupSelect(optionToSelect) {
|
|
21
|
-
await this.
|
|
22
|
-
await this.
|
|
23
|
-
|
|
24
|
-
await this._autoCompleteMenu
|
|
25
|
-
.getByTestId(`form-field__${this._id}__select__${optionToSelectLowercase}__text`)
|
|
26
|
-
.click();
|
|
19
|
+
await this._objects.fieldInput().fill(optionToSelect);
|
|
20
|
+
await this._objects.autoCompleteMenu().waitFor({ state: 'visible' });
|
|
21
|
+
await this._objects.option(optionToSelect).click();
|
|
27
22
|
}
|
|
28
23
|
}
|
|
29
|
-
export function createFormComboBox(
|
|
30
|
-
const comboBox = new FormComboBox(
|
|
31
|
-
const locator =
|
|
24
|
+
export function createFormComboBox(context, id) {
|
|
25
|
+
const comboBox = new FormComboBox(context, id);
|
|
26
|
+
const locator = context.getByTestId(`form-field__${id}`);
|
|
32
27
|
return new Proxy(comboBox, {
|
|
33
28
|
get(target, prop, receiver) {
|
|
34
29
|
if (prop in target) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormComboBox.js","sourceRoot":"","sources":["../../controls/FormComboBox.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FormComboBox.js","sourceRoot":"","sources":["../../controls/FormComboBox.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAW/D,MAAM,YAAY;IAGhB,YAAY,OAAgB,EAAE,EAAU;QACtC,IAAI,CAAC,QAAQ,GAAG,IAAI,mBAAmB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACvD,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,UAAkB;QACnC,MAAM,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,CAAC;QACzC,MAAM,IAAI,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACrE,MAAM,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,CAAC;IACjD,CAAC;IAED,KAAK,CAAC,oBAAoB;QACxB,MAAM,IAAI,CAAC,QAAQ,CAAC,iBAAiB,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACtE,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,iBAAiB,EAAE,CAAC,SAAS,EAAE,CAAC;IAC7D,CAAC;IACD,KAAK,CAAC,YAAY;QAChB,MAAM,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,cAAsB;QACvC,MAAM,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACtD,MAAM,IAAI,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACrE,MAAM,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,KAAK,EAAE,CAAC;IACrD,CAAC;CACF;AAED,MAAM,UAAU,kBAAkB,CAAC,OAAgB,EAAE,EAAU;IAC7D,MAAM,QAAQ,GAAG,IAAI,YAAY,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAC/C,MAAM,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;IAEzD,OAAO,IAAI,KAAK,CAAC,QAAQ,EAAE;QACzB,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ;YACxB,IAAI,IAAI,IAAI,MAAM,EAAE,CAAC;gBACnB,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;YAC7C,CAAC;YAED,MAAM,KAAK,GAAI,OAAe,CAAC,IAAI,CAAC,CAAC;YAErC,IAAI,OAAO,KAAK,KAAK,UAAU,EAAE,CAAC;gBAChC,OAAO,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAC7B,CAAC;YACD,OAAO,KAAK,CAAC;QACf,CAAC;KACF,CAA6B,CAAC;AACjC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Locator } from '@playwright/test';
|
|
2
|
+
export declare class FormComboBoxObjects {
|
|
3
|
+
private _context;
|
|
4
|
+
private _id;
|
|
5
|
+
constructor(context: Locator, id: string);
|
|
6
|
+
field: () => Locator;
|
|
7
|
+
autoCompleteMenu: () => Locator;
|
|
8
|
+
option: (optionText: string) => Locator;
|
|
9
|
+
clearButton: () => Locator;
|
|
10
|
+
validationMessage: () => Locator;
|
|
11
|
+
fieldInput: () => Locator;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export class FormComboBoxObjects {
|
|
2
|
+
constructor(context, id) {
|
|
3
|
+
this.field = () => this._context.getByTestId(`form-field__${this._id}`);
|
|
4
|
+
this.autoCompleteMenu = () => this._context.page().getByTestId(`form-field__${this._id}__select__options-list`);
|
|
5
|
+
this.option = (optionText) => {
|
|
6
|
+
const optionTextLowercase = optionText.toLowerCase();
|
|
7
|
+
return this.autoCompleteMenu().getByTestId(`form-field__${this._id}__select__${optionTextLowercase}__text`);
|
|
8
|
+
};
|
|
9
|
+
this.clearButton = () => this.field().locator('Button[aria-label="Clear"]');
|
|
10
|
+
this.validationMessage = () => this.field().locator('.TooltipContainer p');
|
|
11
|
+
this.fieldInput = () => this.field().locator('input');
|
|
12
|
+
this._context = context;
|
|
13
|
+
this._id = id;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=FormComboBoxObjects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormComboBoxObjects.js","sourceRoot":"","sources":["../../controls/FormComboBoxObjects.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,mBAAmB;IAI9B,YAAY,OAAgB,EAAE,EAAU;QAKjC,UAAK,GAAG,GAAY,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,eAAe,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;QAE5E,qBAAgB,GAAG,GAAY,EAAE,CACtC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,WAAW,CAAC,eAAe,IAAI,CAAC,GAAG,wBAAwB,CAAC,CAAC;QAE7E,WAAM,GAAG,CAAC,UAAkB,EAAW,EAAE;YAC9C,MAAM,mBAAmB,GAAG,UAAU,CAAC,WAAW,EAAE,CAAC;YACrD,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAC,WAAW,CAAC,eAAe,IAAI,CAAC,GAAG,aAAa,mBAAmB,QAAQ,CAAC,CAAC;QAC9G,CAAC,CAAC;QAEK,gBAAW,GAAG,GAAY,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAAC;QAEhF,sBAAiB,GAAG,GAAY,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;QAE/E,eAAU,GAAG,GAAY,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAlB/D,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;IAChB,CAAC;CAiBF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Locator } from '@playwright/test';
|
|
2
|
+
export type IGridColumnControl = Locator & IGridColumnControlCore;
|
|
3
|
+
export type IGridColumnControlCore = {
|
|
4
|
+
getColumnHeader(): Promise<Locator>;
|
|
5
|
+
getCellByExactValue(value: string): Locator;
|
|
6
|
+
getCellValues(): Promise<string[]>;
|
|
7
|
+
filterByColumnValueExcelStyle(value: string, deselectAll?: boolean): Promise<void>;
|
|
8
|
+
openExcelStyleFilterPopup(): Promise<void>;
|
|
9
|
+
};
|
|
10
|
+
export declare function createGridColumnControl(gridContext: Locator, id: string): IGridColumnControl;
|