@progress/kendo-e2e 4.4.1 → 4.4.2
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 +0 -67
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -40,45 +40,6 @@ Selenium based e2e testing for web.
|
|
|
40
40
|
|
|
41
41
|
## Usage
|
|
42
42
|
|
|
43
|
-
### Setup Browser Drivers
|
|
44
|
-
|
|
45
|
-
This framework does not manage browser drivers, so the user should take care appropriate driver to be in `PATH`.
|
|
46
|
-
|
|
47
|
-
#### Linux and macOS
|
|
48
|
-
|
|
49
|
-
Install drivers globally:
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
npm i -g chromedriver
|
|
53
|
-
npm i -g geckodriver
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
Notes:
|
|
57
|
-
|
|
58
|
-
- `safaridriver` is build-in in macOS so no need to install extra packages.
|
|
59
|
-
- No need to add something in the `PATH` (scripts of global npm packages are already in the PATH).
|
|
60
|
-
|
|
61
|
-
#### Windows
|
|
62
|
-
|
|
63
|
-
Install drivers globally:
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
npm i -g chromedriver
|
|
67
|
-
npm i -g geckodriver
|
|
68
|
-
npm i -g msedgedriver
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
Add following to your `PATH`:
|
|
72
|
-
|
|
73
|
-
- `%APPDATA%\npm\node_modules\chromedriver\lib\chromedriver`
|
|
74
|
-
- `%APPDATA%\npm\node_modules\msedgedriver\lib\msedgedriver`
|
|
75
|
-
- `%APPDATA%\npm\node_modules\geckodriver`
|
|
76
|
-
|
|
77
|
-
#### Notes (applicable for all OSs)
|
|
78
|
-
|
|
79
|
-
- Repeat `npm i -g chromedriver` each time when browser on your machine time is updated
|
|
80
|
-
- Repeat `npm i -g chromedriver` when changing NodeJS version with `nvm`
|
|
81
|
-
|
|
82
43
|
### Managing browsers
|
|
83
44
|
|
|
84
45
|
Example:
|
|
@@ -107,34 +68,6 @@ Browser type and size can be controlled by settings following environment variab
|
|
|
107
68
|
|
|
108
69
|
Notes: `Safari` do not support headless mode and this setting will be ignored.
|
|
109
70
|
|
|
110
|
-
### Testing on Real Mobile Devices @BrowserStack
|
|
111
|
-
|
|
112
|
-
Testing on mobile devices is also important, but usually it is hard to do it locally because:
|
|
113
|
-
|
|
114
|
-
- Mobile devices are expensive
|
|
115
|
-
- Local labs do not work well in case employees are distributed
|
|
116
|
-
|
|
117
|
-
That is why we implemented [BrowserStack](https://www.browserstack.com/) support.
|
|
118
|
-
|
|
119
|
-
Running tests on BrowserStack is similar to ruining them locally, we just need to tell what device and capabilities we need.
|
|
120
|
-
|
|
121
|
-
Configuration happens via environment variables:
|
|
122
|
-
|
|
123
|
-
```bash
|
|
124
|
-
export BROWSER_NAME=remote
|
|
125
|
-
export BS_USER_NAME=<your browser stack user id>
|
|
126
|
-
export BS_ACCESS_KEY=<your browser stack access key>
|
|
127
|
-
export BS_BROWSER_NAME=<Android|iPhone> (default is "Android")
|
|
128
|
-
export BS_BROWSER_NAME=<version of the mobile os> (default is "10.0")
|
|
129
|
-
export BS_DEVICE_NAME=<name of device> (default is "Google Pixel 4")
|
|
130
|
-
export BS_REAL_MOBILE=<true|false> (default is "true")
|
|
131
|
-
export BS_LOCAL=<true|false> (default is "false")
|
|
132
|
-
export BS_BUILD_NAME=<string> (default is "BStack Test")
|
|
133
|
-
export BS_BUILD_NUMBER=<string> (default is "BStack Build 1")
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
To check available mobile devices and capabilities please visit [this](https://www.browserstack.com/automate/capabilities) page.
|
|
137
|
-
|
|
138
71
|
### Find Elements and Wait for Conditions
|
|
139
72
|
|
|
140
73
|
Selenium default behavior when you search for element is to return it if available and throw if not available (do not try to wait until element is available).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-e2e",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.2",
|
|
4
4
|
"description": "Kendo UI end-to-end test utilities.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -66,15 +66,19 @@
|
|
|
66
66
|
"jsdom": "^16.7.0",
|
|
67
67
|
"looks-same": "^7.3.0",
|
|
68
68
|
"pngjs": "^6.0.0",
|
|
69
|
-
"react": "^18.2.0",
|
|
70
|
-
"react-dom": "^18.2.0",
|
|
71
69
|
"rgb2hex": "^0.2.5",
|
|
72
70
|
"sanitize-html": "^2.10.0",
|
|
73
71
|
"selenium-webdriver": "4.27.0",
|
|
74
72
|
"sharp": "^0.33.0",
|
|
75
73
|
"yauzl": "^3.2.0"
|
|
76
74
|
},
|
|
75
|
+
"peerDependencies": {
|
|
76
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
77
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
78
|
+
},
|
|
77
79
|
"devDependencies": {
|
|
80
|
+
"react": "^18.2.0",
|
|
81
|
+
"react-dom": "^18.2.0",
|
|
78
82
|
"@commitlint/cli": "^17.6.6",
|
|
79
83
|
"@commitlint/config-conventional": "^17.6.6",
|
|
80
84
|
"@progress/kendo-themes-html": "^6.4.0",
|