@serenity-js/webdriverio 3.10.0 → 3.10.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/CHANGELOG.md +23 -0
- package/README.md +28 -21
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,29 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.10.2](https://github.com/serenity-js/serenity-js/compare/v3.10.1...v3.10.2) (2023-09-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **core:** updated installation instruction in the README ([ec3f277](https://github.com/serenity-js/serenity-js/commit/ec3f2778334abbd7324497ceaa2df9f0560a103e)), closes [#1915](https://github.com/serenity-js/serenity-js/issues/1915)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.10.1](https://github.com/serenity-js/serenity-js/compare/v3.10.0...v3.10.1) (2023-09-01)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **core:** use module: es2020 instead of Node16 to avoid issue nrwl/nx[#18801](https://github.com/serenity-js/serenity-js/issues/18801) ([935e655](https://github.com/serenity-js/serenity-js/commit/935e655a9a707ed8c97797e8b1bfab4e806c984c))
|
|
23
|
+
* **webdriverio:** use Node16 module loader ([105be09](https://github.com/serenity-js/serenity-js/commit/105be094af2050e6ec3ae4dbb9768b8d372a5cef))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
6
29
|
# [3.10.0](https://github.com/serenity-js/serenity-js/compare/v3.9.1...v3.10.0) (2023-08-23)
|
|
7
30
|
|
|
8
31
|
|
package/README.md
CHANGED
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
of complex software systems faster, more collaborative and easier to scale.
|
|
10
10
|
|
|
11
11
|
⭐️ Get started with Serenity/JS!
|
|
12
|
-
- [Serenity/JS
|
|
13
|
-
- [
|
|
14
|
-
- [
|
|
12
|
+
- [Serenity/JS web testing tutorial](https://serenity-js.org/handbook/web-testing/your-first-web-scenario)
|
|
13
|
+
- [Serenity/JS Handbook](https://serenity-js.org/handbook) and [Getting Started guides](https://serenity-js.org/handbook/getting-started/)
|
|
14
|
+
- [API documentation](https://serenity-js.org/api/core)
|
|
15
|
+
- [Serenity/JS Project Templates on GitHub](https://serenity-js.org/handbook/getting-started#serenityjs-project-templates)
|
|
15
16
|
|
|
16
17
|
👋 Join the Serenity/JS Community!
|
|
17
18
|
- Meet other Serenity/JS developers and maintainers on the [Serenity/JS Community chat channel](https://matrix.to/#/#serenity-js:gitter.im),
|
|
@@ -26,13 +27,19 @@ for [WebdriverIO](https://webdriver.io/) that will help you with testing Web and
|
|
|
26
27
|
|
|
27
28
|
### Installation
|
|
28
29
|
|
|
29
|
-
To install this module,
|
|
30
|
+
To install this module, use an [existing WebdriverIO project](https://webdriver.io/docs/gettingstarted/) or generate a new one by running:
|
|
30
31
|
|
|
31
|
-
```
|
|
32
|
-
npm
|
|
32
|
+
```sh
|
|
33
|
+
npm init wdio .
|
|
33
34
|
```
|
|
34
35
|
|
|
35
|
-
|
|
36
|
+
Install the below Serenity/JS modules in your WebdriverIO project directory:
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
npm install --save-dev @serenity-js/assertions @serenity-js/console-reporter @serenity-js/core @serenity-js/serenity-bdd @serenity-js/web @serenity-js/webdriverio
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
To learn more about Serenity/JS and how to use it on your project, follow the [Serenity/JS Getting Started guide fpr WebdriverIO](https://serenity-js.org/handbook/getting-started/serenity-js-with-webdriverio/).
|
|
36
43
|
|
|
37
44
|
#### Usage with Cucumber.js
|
|
38
45
|
|
|
@@ -123,7 +130,7 @@ export const config: WebdriverIOConfig = {
|
|
|
123
130
|
// ],
|
|
124
131
|
|
|
125
132
|
// ... other WebdriverIO-specific configuration
|
|
126
|
-
}
|
|
133
|
+
}
|
|
127
134
|
```
|
|
128
135
|
|
|
129
136
|
Learn more about:
|
|
@@ -144,10 +151,10 @@ with a custom [`Cast`](https://serenity-js.org/api/core/class/Cast), like this o
|
|
|
144
151
|
|
|
145
152
|
```typescript title="serenity/Actors.ts"
|
|
146
153
|
// serenity/Actors.ts
|
|
147
|
-
import { Actor, Cast, TakeNotes } from '@serenity-js/core'
|
|
148
|
-
import { CallAnApi } from '@serenity-js/rest'
|
|
149
|
-
import { BrowseTheWebWithWebdriverIO } from '@serenity-js/webdriverio'
|
|
150
|
-
import type { Browser } from 'webdriverio'
|
|
154
|
+
import { Actor, Cast, TakeNotes } from '@serenity-js/core'
|
|
155
|
+
import { CallAnApi } from '@serenity-js/rest'
|
|
156
|
+
import { BrowseTheWebWithWebdriverIO } from '@serenity-js/webdriverio'
|
|
157
|
+
import type { Browser } from 'webdriverio'
|
|
151
158
|
|
|
152
159
|
export class Actors implements Cast {
|
|
153
160
|
|
|
@@ -162,13 +169,13 @@ export class Actors implements Cast {
|
|
|
162
169
|
case 'Apisitt':
|
|
163
170
|
return actor.whoCan(
|
|
164
171
|
CallAnApi.at(this.apiUrl)
|
|
165
|
-
)
|
|
172
|
+
)
|
|
166
173
|
|
|
167
174
|
default:
|
|
168
175
|
return actor.whoCan(
|
|
169
176
|
BrowseTheWebWithWebdriverIO.using(browser), // global WDIO browser
|
|
170
177
|
TakeNotes.usingAnEmptyNotepad(),
|
|
171
|
-
)
|
|
178
|
+
)
|
|
172
179
|
}
|
|
173
180
|
|
|
174
181
|
}
|
|
@@ -179,16 +186,16 @@ export class Actors implements Cast {
|
|
|
179
186
|
|
|
180
187
|
```typescript title="specs/example.spec.ts"
|
|
181
188
|
// specs/example.spec.ts
|
|
182
|
-
import { actorCalled } from '@serenity-js/core'
|
|
183
|
-
import { Ensure, equals } from '@serenity-js/assertions'
|
|
184
|
-
import { By, Navigate, PageElement, Text } from '@serenity-js/web'
|
|
185
|
-
import { BrowseTheWebWithWebdriverIO } from '@serenity-js/webdriverio'
|
|
189
|
+
import { actorCalled } from '@serenity-js/core'
|
|
190
|
+
import { Ensure, equals } from '@serenity-js/assertions'
|
|
191
|
+
import { By, Navigate, PageElement, Text } from '@serenity-js/web'
|
|
192
|
+
import { BrowseTheWebWithWebdriverIO } from '@serenity-js/webdriverio'
|
|
186
193
|
|
|
187
194
|
// example Lean Page Object describing a widget we interact with in the test
|
|
188
195
|
class SerenityJSWebsite {
|
|
189
196
|
static header = () =>
|
|
190
197
|
PageElement.located(By.css('h1')) // selector to identify the interactable element
|
|
191
|
-
.describedAs('header')
|
|
198
|
+
.describedAs('header') // description to be used in reports
|
|
192
199
|
}
|
|
193
200
|
|
|
194
201
|
describe('Serenity/JS', () => {
|
|
@@ -204,8 +211,8 @@ describe('Serenity/JS', () => {
|
|
|
204
211
|
equals('Enable collaborative test automation at any scale!')
|
|
205
212
|
),
|
|
206
213
|
)
|
|
207
|
-
})
|
|
208
|
-
})
|
|
214
|
+
})
|
|
215
|
+
})
|
|
209
216
|
```
|
|
210
217
|
|
|
211
218
|
To learn more, check out the [example projects](https://github.com/serenity-js/serenity-js/tree/main/examples).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serenity-js/webdriverio",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.2",
|
|
4
4
|
"description": "Serenity/JS reporter and Screenplay Pattern library for WebdriverIO",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jan Molak",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"node": "^16.13 || ^18.12 || ^20"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@serenity-js/core": "3.10.
|
|
68
|
-
"@serenity-js/web": "3.10.
|
|
69
|
-
"@wdio/reporter": "8.15.
|
|
67
|
+
"@serenity-js/core": "3.10.2",
|
|
68
|
+
"@serenity-js/web": "3.10.2",
|
|
69
|
+
"@wdio/reporter": "8.15.10",
|
|
70
70
|
"deepmerge": "^4.3.1",
|
|
71
71
|
"tiny-types": "^1.20.0"
|
|
72
72
|
},
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"@serenity-js/cucumber": "^3.0.0",
|
|
75
75
|
"@serenity-js/jasmine": "^3.0.0",
|
|
76
76
|
"@serenity-js/mocha": "^3.0.0",
|
|
77
|
-
"@wdio/cli": "^8.15.
|
|
78
|
-
"webdriverio": "^8.15.
|
|
77
|
+
"@wdio/cli": "^8.15.10",
|
|
78
|
+
"webdriverio": "^8.15.10"
|
|
79
79
|
},
|
|
80
80
|
"peerDependenciesMeta": {
|
|
81
81
|
"@serenity-js/cucumber": {
|
|
@@ -91,13 +91,13 @@
|
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"@integration/testing-tools": "3.0.0",
|
|
93
93
|
"@types/mocha": "^10.0.1",
|
|
94
|
-
"@wdio/cli": "8.15.
|
|
95
|
-
"@wdio/devtools-service": "8.15.
|
|
96
|
-
"@wdio/dot-reporter": "8.15.
|
|
97
|
-
"@wdio/local-runner": "8.15.
|
|
98
|
-
"@wdio/spec-reporter": "8.15.
|
|
99
|
-
"@wdio/types": "8.15.
|
|
100
|
-
"axios": "^1.
|
|
94
|
+
"@wdio/cli": "8.15.10",
|
|
95
|
+
"@wdio/devtools-service": "8.15.10",
|
|
96
|
+
"@wdio/dot-reporter": "8.15.10",
|
|
97
|
+
"@wdio/local-runner": "8.15.10",
|
|
98
|
+
"@wdio/spec-reporter": "8.15.10",
|
|
99
|
+
"@wdio/types": "8.15.10",
|
|
100
|
+
"axios": "^1.5.0",
|
|
101
101
|
"c8": "8.0.1",
|
|
102
102
|
"cross-env": "^7.0.3",
|
|
103
103
|
"mocha": "^10.2.0",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"mocha-testdata": "^1.2.0",
|
|
106
106
|
"puppeteer-core": "^20.9.0",
|
|
107
107
|
"start-server-and-test": "^2.0.0",
|
|
108
|
-
"webdriverio": "8.15.
|
|
108
|
+
"webdriverio": "8.15.10"
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "6834827fffe5dd8dd3d2f39d2fea2c4039ab1d3d"
|
|
111
111
|
}
|