@camperaid/watest 2.3.8 → 2.3.9
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 +13 -0
- package/core/base.js +2 -1
- package/package.json +2 -2
- package/tests/e2e/samples/wd_mixed/node_modules/.package-lock.json +3550 -0
- package/tests/e2e/samples/wd_mixed/package-lock.json +5806 -0
- package/tests/e2e/samples/wd_single/node_modules/.package-lock.json +3550 -0
- package/tests/e2e/samples/wd_single/package-lock.json +5806 -0
- package/tests/series/build/t_loader_mixed.js +1 -1
- package/webdriver/driver_base.js +34 -7
package/README.md
CHANGED
|
@@ -49,6 +49,19 @@ Pre-defined webdrivers:
|
|
|
49
49
|
- `firefox` to run tests in Firefox
|
|
50
50
|
- `safari` to run tests in Safari
|
|
51
51
|
|
|
52
|
+
You can create `.env` file in the root directory to
|
|
53
|
+
define enviropment variables used for configuration.
|
|
54
|
+
Here's an example of `.env` file:
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
WATEST_DEBUNK_LIMIT=5
|
|
58
|
+
WATEST_LOG_DIR=/tmp
|
|
59
|
+
WATEST_TIMEOUT=3000
|
|
60
|
+
WATEST_WEBDRIVERS=["chrome", "firefox"]
|
|
61
|
+
WATEST_WEBDRIVER_HEADLESS=true
|
|
62
|
+
WATEST_WEBDRIVER_LOGLEVEL=info
|
|
63
|
+
```
|
|
64
|
+
|
|
52
65
|
## Unit testing
|
|
53
66
|
|
|
54
67
|
The testsuite has basic functions:
|
package/core/base.js
CHANGED
|
@@ -311,7 +311,8 @@ function is_object_impl(
|
|
|
311
311
|
// allowed to be an Object or in case of Set and Map it can be an Array.
|
|
312
312
|
if (
|
|
313
313
|
got instanceof Object &&
|
|
314
|
-
!(
|
|
314
|
+
(!(got.constructor instanceof Function) ||
|
|
315
|
+
!(expected instanceof got.constructor)) &&
|
|
315
316
|
(!expected ||
|
|
316
317
|
(expected.constructor != Object &&
|
|
317
318
|
(expected.constructor != Array ||
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camperaid/watest",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.9",
|
|
4
4
|
"description": "Web Application Testsuite",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=14.15.1"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"watest": "./bin/watest.js"
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
|
-
"
|
|
14
|
+
"postprepare": "bash tests/install.sh",
|
|
15
15
|
"lint": "eslint '**/*.js'",
|
|
16
16
|
"lint:staged": "eslint --",
|
|
17
17
|
"pretty": "prettier --write",
|