suitest-js-api 3.19.0 → 3.19.1
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/CONTRIBUTING.md
CHANGED
|
@@ -47,10 +47,7 @@ to our repository's `master` branch.
|
|
|
47
47
|
There are some automated checks set-up for all pull requests, as well as a code review process.
|
|
48
48
|
The following conditions must be met before any pull request can be merged to Suitest JS API:
|
|
49
49
|
* There are no merge conflicts in the pull request.
|
|
50
|
-
*
|
|
51
|
-
* All CodeClimate checks pass. CodeClimate checks how test coverage and code maintainability
|
|
52
|
-
of the project would change if we would merge the pull requests. Both test coverage and
|
|
53
|
-
code maintainability must not decrease after pull request merge.
|
|
50
|
+
* GitHub Actions workflow passes. We run eslint, unit tests and check test coverage (must be >95%) there.
|
|
54
51
|
* At least 2 members of Suitest Core team approved the pull request.
|
|
55
52
|
|
|
56
53
|
[code of conduct]: https://github.com/SuitestAutomation/suitest-js-api/blob/master/CODE_OF_CONDUCT.md
|
package/README.md
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/SuitestAutomation/suitest-js-api/blob/master/LICENSE)
|
|
4
4
|
[](https://www.npmjs.com/package/suitest-js-api)
|
|
5
|
-
[](https://codeclimate.com/github/SuitestAutomation/suitest-js-api/test_coverage)
|
|
7
|
-
[](https://codeclimate.com/github/SuitestAutomation/suitest-js-api/maintainability)
|
|
5
|
+
[](https://github.com/SuitestAutomation/suitest-js-api/actions/workflows/tests.yml)
|
|
8
6
|
|
|
9
7
|
[Suitest](https://suite.st) is a test automation and device manipulation tool
|
|
10
8
|
for living room devices and web browsers.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "suitest-js-api",
|
|
3
|
-
"version": "3.19.
|
|
3
|
+
"version": "3.19.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": "git@github.com:SuitestAutomation/suitest-js-api.git",
|
|
6
6
|
"author": "Suitest <hello@suite.st>",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
96
|
"@suitest/smst-to-text": "^4.13.0",
|
|
97
|
-
"@suitest/translate": "^4.20.
|
|
97
|
+
"@suitest/translate": "^4.20.1",
|
|
98
98
|
"@types/node": "^14.0.10",
|
|
99
99
|
"ajv": "^6.12.2",
|
|
100
100
|
"ansi-regex": "^5.0.0",
|
|
@@ -40,7 +40,7 @@ export interface ElementChain extends
|
|
|
40
40
|
MoveToModifier<ElementEmptyChain>, // moveTo
|
|
41
41
|
VisibleModifier<ElementWithoutEvalChain>,// visible
|
|
42
42
|
GetCssModifiers<ElementGetPropertiesChain>, // getCssProperties
|
|
43
|
-
HandleModifier<ElementHandleChain>, // handle
|
|
43
|
+
HandleModifier<ElementHandleChain, ElementHandleMultipleChain>, // handle
|
|
44
44
|
GetAttributesModifier<ElementGetAttributesChain> // getAttributes
|
|
45
45
|
{}
|
|
46
46
|
|
|
@@ -125,7 +125,14 @@ interface ElementGetPropertiesChain extends
|
|
|
125
125
|
* @description represents return value of calling "handle" function.
|
|
126
126
|
*/
|
|
127
127
|
interface ElementHandleChain extends
|
|
128
|
-
BaseEmptyChain<ElementHandleChain, string
|
|
128
|
+
BaseEmptyChain<ElementHandleChain, string, ElementAbandonedChain>
|
|
129
|
+
{}
|
|
130
|
+
|
|
131
|
+
/*
|
|
132
|
+
* @description represents return value of calling "handle" when multiple handles should be returned.
|
|
133
|
+
*/
|
|
134
|
+
interface ElementHandleMultipleChain extends
|
|
135
|
+
BaseEmptyChain<ElementHandleMultipleChain, string[], ElementAbandonedChain>
|
|
129
136
|
{}
|
|
130
137
|
|
|
131
138
|
/*
|
|
@@ -259,9 +259,13 @@ export interface GetCssModifiers<T> {
|
|
|
259
259
|
getCssProperties(properties: string[]): T;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
export interface HandleModifier<
|
|
263
|
-
handle(
|
|
264
|
-
handle(
|
|
262
|
+
export interface HandleModifier<TSingleHandle, TMultipleHandle> {
|
|
263
|
+
handle(): TSingleHandle;
|
|
264
|
+
handle(multiple: false): TSingleHandle;
|
|
265
|
+
handle(multiple: true): TMultipleHandle;
|
|
266
|
+
handle(opts: {}): TSingleHandle;
|
|
267
|
+
handle(opts: {multiple: false}): TSingleHandle;
|
|
268
|
+
handle(opts: {multiple: true}): TMultipleHandle;
|
|
265
269
|
}
|
|
266
270
|
|
|
267
271
|
export interface GetAttributesModifier<T> {
|