@thinkwise/testwise 0.2.5 → 0.2.16
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/artifact-builder/InterfaceGenerator.ts +2 -2
- package/artifact-builder/SchemaGenerator.ts +2 -2
- package/artifact-builder/SelectorBuilder.ts +6 -2
- package/artifact-builder/SubjectComponentGenerator.ts +35 -9
- package/artifact-builder/SubjectGenerator.ts +2 -2
- package/artifact-builder/SubjectRegistration.ts +14 -0
- package/artifact-builder/helpers/NamingHandler.ts +28 -50
- package/components/tab/BaseTabObjects.ts +1 -1
- package/controls/FormComboBox.ts +72 -0
- package/controls/LookupDropdown.ts +4 -2
- package/controls/index.ts +1 -0
- package/dist/artifact-builder/InterfaceGenerator.js +2 -2
- package/dist/artifact-builder/InterfaceGenerator.js.map +1 -1
- package/dist/artifact-builder/SchemaGenerator.js +2 -2
- package/dist/artifact-builder/SchemaGenerator.js.map +1 -1
- package/dist/artifact-builder/SelectorBuilder.d.ts +1 -0
- package/dist/artifact-builder/SelectorBuilder.js +4 -1
- package/dist/artifact-builder/SelectorBuilder.js.map +1 -1
- package/dist/artifact-builder/SubjectComponentGenerator.d.ts +2 -2
- package/dist/artifact-builder/SubjectComponentGenerator.js +27 -9
- package/dist/artifact-builder/SubjectComponentGenerator.js.map +1 -1
- package/dist/artifact-builder/SubjectGenerator.js +2 -2
- package/dist/artifact-builder/SubjectGenerator.js.map +1 -1
- package/dist/artifact-builder/SubjectRegistration.d.ts +1 -0
- package/dist/artifact-builder/SubjectRegistration.js +11 -0
- package/dist/artifact-builder/SubjectRegistration.js.map +1 -1
- package/dist/artifact-builder/helpers/NamingHandler.d.ts +2 -4
- package/dist/artifact-builder/helpers/NamingHandler.js +26 -46
- package/dist/artifact-builder/helpers/NamingHandler.js.map +1 -1
- package/dist/components/grid/Grid.d.ts +4 -4
- package/dist/components/grid/Grid.js +9 -18
- package/dist/components/grid/Grid.js.map +1 -1
- package/dist/components/tab/BaseTabObjects.js +1 -1
- package/dist/components/tab/BaseTabObjects.js.map +1 -1
- package/dist/controls/FormComboBox.d.ts +10 -0
- package/dist/controls/FormComboBox.js +43 -0
- package/dist/controls/FormComboBox.js.map +1 -0
- package/dist/controls/LookupDropdown.d.ts +2 -1
- package/dist/controls/LookupDropdown.js.map +1 -1
- 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 +2 -1
- package/dist/enums/ElementTypes.js +1 -0
- package/dist/enums/ElementTypes.js.map +1 -1
- package/dist/helpers/UserSimulationHelper.js +1 -1
- package/dist/helpers/UserSimulationHelper.js.map +1 -1
- package/enums/ElementTypes.ts +2 -1
- package/helpers/UserSimulationHelper.ts +1 -1
- package/package.json +5 -5
- package/scripts/postinstall.js +3 -1
- package/scripts/sync.js +748 -756
package/dist/controls/index.d.ts
CHANGED
package/dist/controls/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
|
|
@@ -6,5 +6,6 @@ export var KnownElementTypes;
|
|
|
6
6
|
KnownElementTypes["Checkbox"] = "checkbox";
|
|
7
7
|
KnownElementTypes["Lookup"] = "lookup";
|
|
8
8
|
KnownElementTypes["Column"] = "column_cells";
|
|
9
|
+
KnownElementTypes["ComboBox"] = "combo_box";
|
|
9
10
|
})(KnownElementTypes || (KnownElementTypes = {}));
|
|
10
11
|
//# sourceMappingURL=ElementTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ElementTypes.js","sourceRoot":"","sources":["../../enums/ElementTypes.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"ElementTypes.js","sourceRoot":"","sources":["../../enums/ElementTypes.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,iBAQX;AARD,WAAY,iBAAiB;IAC3B,oCAAe,CAAA;IACf,0CAAqB,CAAA;IACrB,0CAAqB,CAAA;IACrB,0CAAqB,CAAA;IACrB,sCAAiB,CAAA;IACjB,4CAAuB,CAAA;IACvB,2CAAsB,CAAA;AACxB,CAAC,EARW,iBAAiB,KAAjB,iBAAiB,QAQ5B"}
|
|
@@ -16,7 +16,7 @@ export class UserSimulationHelper {
|
|
|
16
16
|
const response = await this._page.request.get(`${this._serviceUrl}/account/api/usersimulation`);
|
|
17
17
|
switch (response.status()) {
|
|
18
18
|
case 204:
|
|
19
|
-
console.
|
|
19
|
+
console.info('User simulation not active', response.status());
|
|
20
20
|
return '';
|
|
21
21
|
case 200:
|
|
22
22
|
return (await response.json()).simulated_user;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserSimulationHelper.js","sourceRoot":"","sources":["../../helpers/UserSimulationHelper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,OAAO,oBAAoB;IAI/B,YAAY,IAAU;QACpB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAElB,MAAM,UAAU,GAAG,cAAc,EAAE,CAAC,GAAG,CAAS,gCAAgC,CAAC,CAAC;QAElF,IAAI,CAAC,UAAU;YAAE,MAAM,IAAI,KAAK,CAAC,qEAAqE,CAAC,CAAC;QAExG,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;IAChC,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,gBAAgB;QAC3B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,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@@ export class UserSimulationHelper {
|
|
|
25
25
|
|
|
26
26
|
switch (response.status()) {
|
|
27
27
|
case 204:
|
|
28
|
-
console.
|
|
28
|
+
console.info('User simulation not active', response.status());
|
|
29
29
|
return '';
|
|
30
30
|
case 200:
|
|
31
31
|
return (await response.json()).simulated_user;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thinkwise/testwise",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.16",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint ./ --cache --ignore-pattern .gitignore",
|
|
12
|
-
"format:fix": "run
|
|
13
|
-
"format:check": "run
|
|
12
|
+
"format:fix": "npm run lint --fix && biome check --fix --unsafe",
|
|
13
|
+
"format:check": "npm run lint && biome check",
|
|
14
14
|
"postinstall": "node scripts/main.js postinstall"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [],
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"@types/node": "^22.15.29",
|
|
23
23
|
"axios": "^1.9.0",
|
|
24
24
|
"chalk": "^5.4.1",
|
|
25
|
+
"change-case": "^5.4.4",
|
|
25
26
|
"csv-parse": "^5.6.0",
|
|
26
27
|
"dotenv": "^17.2.2",
|
|
27
28
|
"playwright-bdd": "^8.4.2",
|
|
@@ -38,9 +39,8 @@
|
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"@biomejs/biome": "^2.3.8",
|
|
40
41
|
"@eslint/js": "^9.28.0",
|
|
41
|
-
"eslint": "^9.
|
|
42
|
+
"eslint": "^9.39.2",
|
|
42
43
|
"eslint-plugin-playwright": "^2.2.0",
|
|
43
|
-
"npm-run-all": "^4.1.5",
|
|
44
44
|
"typescript-eslint": "^8.34.0"
|
|
45
45
|
},
|
|
46
46
|
"exports": {
|
package/scripts/postinstall.js
CHANGED
|
@@ -23,7 +23,9 @@ export async function postinstall() {
|
|
|
23
23
|
|
|
24
24
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
25
25
|
const { SubjectRegistration } = await import('../dist/artifact-builder/index.js');
|
|
26
|
-
new SubjectRegistration()
|
|
26
|
+
const subjectRegistration = new SubjectRegistration();
|
|
27
|
+
await subjectRegistration.resetSubjectRegistry();
|
|
28
|
+
await subjectRegistration.run();
|
|
27
29
|
|
|
28
30
|
execSync('npx tsc', { cwd: rootDir, stdio: 'inherit' });
|
|
29
31
|
|