@thinkwise/testwise 0.1.65 → 0.1.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -0
- package/components/grid/Grid.ts +23 -0
- package/components/grid/GridObjects.ts +3 -1
- package/config.json +9 -9
- package/dist/components/grid/Grid.d.ts +19 -0
- package/dist/components/grid/Grid.js +21 -0
- package/dist/components/grid/Grid.js.map +1 -1
- package/dist/components/grid/GridObjects.d.ts +1 -0
- package/dist/components/grid/GridObjects.js +2 -1
- package/dist/components/grid/GridObjects.js.map +1 -1
- package/dist/package-lock.json +223 -254
- package/dist/package.json +5 -6
- package/package.json +58 -58
- package/scripts/Testwise.template.json +24 -24
- package/scripts/main.js +11 -11
- package/scripts/setup.js +34 -34
- package/scripts/tsconfig.template.json +11 -11
- package/tsconfig.json +19 -19
package/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Introduction to Testwise
|
|
2
|
+
|
|
3
|
+
## What Testwise does
|
|
4
|
+
|
|
5
|
+
Testwise is a dedicated end-to-end (E2E) test automation solution built for applications developed on the Thinkwise Platform. It sits on top of Playwright and provides a higher-level automation layer that deeply understands the UI patterns, controls, and workflows typical in Thinkwise applications.
|
|
6
|
+
|
|
7
|
+
**With Testwise you get:**
|
|
8
|
+
|
|
9
|
+
- Prebuilt page extensions and custom controls tailored to the Thinkwise UI (grids, forms, actionbars, lookup dropdowns, etc).
|
|
10
|
+
|
|
11
|
+
- Scripts and helpers for common tasks such as authentication and user simulation, cutting down on boilerplate setup.
|
|
12
|
+
|
|
13
|
+
In short: Testwise transforms common Thinkwise application interactions into clear, reusable methods, so your development and QA teams can focus on validating business logic, not reinventing automation plumbing.
|
|
14
|
+
|
|
15
|
+
## Why Testwise is useful
|
|
16
|
+
|
|
17
|
+
Applications built on the Thinkwise Platform tend to be long-lived, complex, and subject to continuous evolution. Manual regression testing becomes costly and error-prone; unit and integration tests alone do not suffice to verify the full user experience end-to-end. Testwise addresses these challenges by:
|
|
18
|
+
|
|
19
|
+
- Ensuring consistent, repeatable checks of your complete application flows — from login through deep business scenarios.
|
|
20
|
+
|
|
21
|
+
- Reducing reliance on manual regression efforts so testers can shift focus to new features and strategic risk areas.
|
|
22
|
+
|
|
23
|
+
- Accelerating test development thanks to built-in, ready-to-use functions and helpers — rather than building your own automation foundation from scratch.
|
|
24
|
+
|
|
25
|
+
- Offloading UI-control maintenance: since Thinkwise maintains the component logic under the hood, your automation is more resilient to changes in underlying UI/control implementations.
|
|
26
|
+
|
|
27
|
+
## How to start with Testwise
|
|
28
|
+
|
|
29
|
+
To get started with Testwise, you will set up a test project using Node.js, Playwright, and the Testwise library. The full step-by-step installation and configuration guide — including prerequisites, project initialization, Testwise setup, Playwright integration and recording your first test— is documented in the official Thinkwise End-to-End Testing documentation.
|
|
30
|
+
|
|
31
|
+
You can find the complete instructions here:
|
|
32
|
+
|
|
33
|
+
[Thinkwise Documentation - End-to-end Tests](https://docs.thinkwisesoftware.com/docs/sf/end_to_end_tests)
|
|
34
|
+
|
|
35
|
+
## Where to get help with Testwise
|
|
36
|
+
|
|
37
|
+
- Check issues, discussions or Q&A on the [Thinkwise community](https://community.thinkwisesoftware.com/).
|
|
38
|
+
|
|
39
|
+
- Raise internal tickets or contact the Thinkwise support/automation team for assistance or bug reports.
|
package/components/grid/Grid.ts
CHANGED
|
@@ -26,6 +26,14 @@ export class Grid {
|
|
|
26
26
|
*/
|
|
27
27
|
public getRowByIndex = (rowIndex: number): Locator => this._gridObjects.rowByIndex(rowIndex);
|
|
28
28
|
|
|
29
|
+
/**
|
|
30
|
+
* Matches rows where the row-id attribute ends with "|{rowIdPattern}".
|
|
31
|
+
* For example, rowIdPattern "manager" will match row-id="1|manager".
|
|
32
|
+
* @param rowIdPattern - The pattern to match after the "|" in the row-id.
|
|
33
|
+
* @returns A Locator for the row matching the specified pattern.
|
|
34
|
+
*/
|
|
35
|
+
public getRowByRowId = (rowIdPattern: string): Locator => this._gridObjects.rowByRowId(rowIdPattern);
|
|
36
|
+
|
|
29
37
|
/**
|
|
30
38
|
* Retrieves a cell element by its exact text value.
|
|
31
39
|
* @param value - The exact text value of the cell to retrieve.
|
|
@@ -247,6 +255,21 @@ export class Grid {
|
|
|
247
255
|
await popup.waitFor({ state: 'detached' });
|
|
248
256
|
}
|
|
249
257
|
|
|
258
|
+
/**
|
|
259
|
+
* Selects a row by its row-id pattern.
|
|
260
|
+
* Matches rows where the row-id attribute ends with "|{rowIdPattern}".
|
|
261
|
+
* For example, rowIdPattern "manager" will match row-id="1|manager".
|
|
262
|
+
*
|
|
263
|
+
* @param rowIdPattern - The pattern to match after the "|" in the row-id.
|
|
264
|
+
* @returns A promise that resolves when the row is selected.
|
|
265
|
+
*
|
|
266
|
+
* @example
|
|
267
|
+
* await grid.selectRowByRowId('manager'); // Selects row with row-id="1|manager"
|
|
268
|
+
*/
|
|
269
|
+
public async selectRowByRowId(rowIdPattern: string): Promise<void> {
|
|
270
|
+
await this.getRowByRowId(rowIdPattern).click();
|
|
271
|
+
}
|
|
272
|
+
|
|
250
273
|
/**
|
|
251
274
|
* Returns a Locator for all rows in the grid.
|
|
252
275
|
* @returns {Locator} Locator for grid rows.
|
|
@@ -20,6 +20,8 @@ export class GridObjects extends BaseComponentObjects {
|
|
|
20
20
|
|
|
21
21
|
public rowByIndex = (row: number) => this.context.locator(`[role="row"][row-index="${row}"]`);
|
|
22
22
|
|
|
23
|
+
public rowByRowId = (rowIdPattern: string) => this.context.locator(`[role="row"][row-id$="|${rowIdPattern}"]`);
|
|
24
|
+
|
|
23
25
|
public cellByValue = (value: RegExp) =>
|
|
24
26
|
this.context.locator('[role="button"]', {
|
|
25
27
|
hasText: value
|
|
@@ -44,7 +46,7 @@ export class GridObjects extends BaseComponentObjects {
|
|
|
44
46
|
|
|
45
47
|
public excelStyleFilterPopupOptionByText = (columnId: string, optionText: RegExp) =>
|
|
46
48
|
this._page
|
|
47
|
-
.locator(`[data-testid^="lookup-excel-filter__${columnId}__list-item-
|
|
49
|
+
.locator(`[data-testid^="lookup-excel-filter__${columnId}__list-item-button"]`)
|
|
48
50
|
.filter({ hasText: optionText });
|
|
49
51
|
|
|
50
52
|
public gridCell = () => this.context.locator('[role="gridcell"]');
|
package/config.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
{
|
|
2
|
-
"defaultApplication": "",
|
|
3
|
-
"defaultPlatform": 3,
|
|
4
|
-
"loginOptionsDisabled": false,
|
|
5
|
-
"loginOptionsHidden": false,
|
|
6
|
-
"installNotificationDisabled": true,
|
|
7
|
-
"installNotificationExpirationInDays": 30,
|
|
8
|
-
"useServiceWorker": false,
|
|
9
|
-
"useFormFieldBackgroundColor": true
|
|
1
|
+
{
|
|
2
|
+
"defaultApplication": "",
|
|
3
|
+
"defaultPlatform": 3,
|
|
4
|
+
"loginOptionsDisabled": false,
|
|
5
|
+
"loginOptionsHidden": false,
|
|
6
|
+
"installNotificationDisabled": true,
|
|
7
|
+
"installNotificationExpirationInDays": 30,
|
|
8
|
+
"useServiceWorker": false,
|
|
9
|
+
"useFormFieldBackgroundColor": true
|
|
10
10
|
}
|
|
@@ -15,6 +15,13 @@ export declare class Grid {
|
|
|
15
15
|
* @returns A Locator for the specified row.
|
|
16
16
|
*/
|
|
17
17
|
getRowByIndex: (rowIndex: number) => Locator;
|
|
18
|
+
/**
|
|
19
|
+
* Matches rows where the row-id attribute ends with "|{rowIdPattern}".
|
|
20
|
+
* For example, rowIdPattern "manager" will match row-id="1|manager".
|
|
21
|
+
* @param rowIdPattern - The pattern to match after the "|" in the row-id.
|
|
22
|
+
* @returns A Locator for the row matching the specified pattern.
|
|
23
|
+
*/
|
|
24
|
+
getRowByRowId: (rowIdPattern: string) => Locator;
|
|
18
25
|
/**
|
|
19
26
|
* Retrieves a cell element by its exact text value.
|
|
20
27
|
* @param value - The exact text value of the cell to retrieve.
|
|
@@ -94,6 +101,18 @@ export declare class Grid {
|
|
|
94
101
|
* await grid.filterByColumnValueExcelStyle('Status', 'Pending', false);
|
|
95
102
|
*/
|
|
96
103
|
filterByColumnValueExcelStyle(columnName: string, valueToSelect: string, deselectAll?: boolean): Promise<void>;
|
|
104
|
+
/**
|
|
105
|
+
* Selects a row by its row-id pattern.
|
|
106
|
+
* Matches rows where the row-id attribute ends with "|{rowIdPattern}".
|
|
107
|
+
* For example, rowIdPattern "manager" will match row-id="1|manager".
|
|
108
|
+
*
|
|
109
|
+
* @param rowIdPattern - The pattern to match after the "|" in the row-id.
|
|
110
|
+
* @returns A promise that resolves when the row is selected.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* await grid.selectRowByRowId('manager'); // Selects row with row-id="1|manager"
|
|
114
|
+
*/
|
|
115
|
+
selectRowByRowId(rowIdPattern: string): Promise<void>;
|
|
97
116
|
/**
|
|
98
117
|
* Returns a Locator for all rows in the grid.
|
|
99
118
|
* @returns {Locator} Locator for grid rows.
|
|
@@ -15,6 +15,13 @@ export class Grid {
|
|
|
15
15
|
* @returns A Locator for the specified row.
|
|
16
16
|
*/
|
|
17
17
|
this.getRowByIndex = (rowIndex) => this._gridObjects.rowByIndex(rowIndex);
|
|
18
|
+
/**
|
|
19
|
+
* Matches rows where the row-id attribute ends with "|{rowIdPattern}".
|
|
20
|
+
* For example, rowIdPattern "manager" will match row-id="1|manager".
|
|
21
|
+
* @param rowIdPattern - The pattern to match after the "|" in the row-id.
|
|
22
|
+
* @returns A Locator for the row matching the specified pattern.
|
|
23
|
+
*/
|
|
24
|
+
this.getRowByRowId = (rowIdPattern) => this._gridObjects.rowByRowId(rowIdPattern);
|
|
18
25
|
/**
|
|
19
26
|
* Opens the Excel-style filter popup for the specified grid column.
|
|
20
27
|
*
|
|
@@ -201,6 +208,20 @@ export class Grid {
|
|
|
201
208
|
await this._gridObjects.gridCell().first().click();
|
|
202
209
|
await popup.waitFor({ state: 'detached' });
|
|
203
210
|
}
|
|
211
|
+
/**
|
|
212
|
+
* Selects a row by its row-id pattern.
|
|
213
|
+
* Matches rows where the row-id attribute ends with "|{rowIdPattern}".
|
|
214
|
+
* For example, rowIdPattern "manager" will match row-id="1|manager".
|
|
215
|
+
*
|
|
216
|
+
* @param rowIdPattern - The pattern to match after the "|" in the row-id.
|
|
217
|
+
* @returns A promise that resolves when the row is selected.
|
|
218
|
+
*
|
|
219
|
+
* @example
|
|
220
|
+
* await grid.selectRowByRowId('manager'); // Selects row with row-id="1|manager"
|
|
221
|
+
*/
|
|
222
|
+
async selectRowByRowId(rowIdPattern) {
|
|
223
|
+
await this.getRowByRowId(rowIdPattern).click();
|
|
224
|
+
}
|
|
204
225
|
/**
|
|
205
226
|
* Returns a Locator for all rows in the grid.
|
|
206
227
|
* @returns {Locator} Locator for grid rows.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.js","sourceRoot":"","sources":["../../../components/grid/Grid.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,OAAO,IAAI;IAIf,YAAY,IAAU,EAAE,cAA8B,IAAI;QAK1D;;;;WAIG;QACI,0BAAqB,GAAG,CAAC,IAAY,EAAW,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAErG;;;;WAIG;QACI,kBAAa,GAAG,CAAC,QAAgB,EAAW,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"Grid.js","sourceRoot":"","sources":["../../../components/grid/Grid.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAk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,IAAI,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,SAAS,EAAE,CAAC;IAC7D,CAAC;CACF"}
|
|
@@ -8,6 +8,7 @@ export declare class GridObjects extends BaseComponentObjects {
|
|
|
8
8
|
columnHeaderByName: (columnName: string) => Locator;
|
|
9
9
|
menuIconByColumnHeaderName: (columnName: string) => Locator;
|
|
10
10
|
rowByIndex: (row: number) => Locator;
|
|
11
|
+
rowByRowId: (rowIdPattern: string) => Locator;
|
|
11
12
|
cellByValue: (value: RegExp) => Locator;
|
|
12
13
|
rows: () => Locator;
|
|
13
14
|
verticalScrollbar: () => Locator;
|
|
@@ -7,6 +7,7 @@ export class GridObjects extends BaseComponentObjects {
|
|
|
7
7
|
this.columnHeaderByName = (columnName) => this.context.getByRole('columnheader', { name: columnName });
|
|
8
8
|
this.menuIconByColumnHeaderName = (columnName) => this.columnHeaderByName(columnName).getByTestId('grid__custom__menu__icon');
|
|
9
9
|
this.rowByIndex = (row) => this.context.locator(`[role="row"][row-index="${row}"]`);
|
|
10
|
+
this.rowByRowId = (rowIdPattern) => this.context.locator(`[role="row"][row-id$="|${rowIdPattern}"]`);
|
|
10
11
|
this.cellByValue = (value) => this.context.locator('[role="button"]', {
|
|
11
12
|
hasText: value
|
|
12
13
|
});
|
|
@@ -18,7 +19,7 @@ export class GridObjects extends BaseComponentObjects {
|
|
|
18
19
|
this.excelStyleFilterPopup = (columnId) => this._page.getByTestId(`lookup-excel-filter__${columnId}__list`);
|
|
19
20
|
this.excelStyleFilterSelectAllCheckbox = (columnId) => this._page.locator(`[data-testid="lookup-excel-filter__${columnId}__list-item-select-all-checkbox"] input[type="checkbox"]`);
|
|
20
21
|
this.excelStyleFilterPopupOptionByText = (columnId, optionText) => this._page
|
|
21
|
-
.locator(`[data-testid^="lookup-excel-filter__${columnId}__list-item-
|
|
22
|
+
.locator(`[data-testid^="lookup-excel-filter__${columnId}__list-item-button"]`)
|
|
22
23
|
.filter({ hasText: optionText });
|
|
23
24
|
this.gridCell = () => this.context.locator('[role="gridcell"]');
|
|
24
25
|
this.noRowsOverlay = () => this.context.locator('.ag-overlay-no-rows-center');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridObjects.js","sourceRoot":"","sources":["../../../components/grid/GridObjects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,OAAO,WAAY,SAAQ,oBAAoB;IAGnD,YAAY,IAAU,EAAE,UAA0B,IAAI;QACpD,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAIhB,uBAAkB,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,uBAAuB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;QAExG,kBAAa,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;QAEpE,uBAAkB,GAAG,CAAC,UAAkB,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;QAE1G,+BAA0B,GAAG,CAAC,UAAkB,EAAE,EAAE,CACzD,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,WAAW,CAAC,0BAA0B,CAAC,CAAC;QAEvE,eAAU,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,2BAA2B,GAAG,IAAI,CAAC,CAAC;QAEvF,gBAAW,GAAG,CAAC,KAAa,EAAE,EAAE,CACrC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,iBAAiB,EAAE;YACtC,OAAO,EAAE,KAAK;SACf,CAAC,CAAC;QAEE,SAAI,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;QAElD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