@serenity-js/webdriverio 3.10.1 → 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.
Files changed (3) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +28 -21
  3. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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
+
6
17
  ## [3.10.1](https://github.com/serenity-js/serenity-js/compare/v3.10.0...v3.10.1) (2023-09-01)
7
18
 
8
19
 
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 Handbook](https://serenity-js.org/handbook) and [tutorial](https://serenity-js.org/handbook/web-testing/your-first-web-scenario),
13
- - [API documentation](https://serenity-js.org/api/core),
14
- - [Serenity/JS project templates on GitHub](https://serenity-js.org/handbook/getting-started#serenityjs-project-templates).
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, run the following command in your [WebdriverIO project directory](https://webdriver.io/docs/gettingstarted/):
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
- ```bash
32
- npm install --save-dev @serenity-js/{assertions,console-reporter,core,serenity-bdd,web,webdriverio}
32
+ ```sh
33
+ npm init wdio .
33
34
  ```
34
35
 
35
- Next, install a [Serenity/JS test runner adapter](https://serenity-js.org/handbook/test-runners/) appropriate for your preferred test runner.
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'); // description to be used in reports
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.1",
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,8 +64,8 @@
64
64
  "node": "^16.13 || ^18.12 || ^20"
65
65
  },
66
66
  "dependencies": {
67
- "@serenity-js/core": "3.10.1",
68
- "@serenity-js/web": "3.10.1",
67
+ "@serenity-js/core": "3.10.2",
68
+ "@serenity-js/web": "3.10.2",
69
69
  "@wdio/reporter": "8.15.10",
70
70
  "deepmerge": "^4.3.1",
71
71
  "tiny-types": "^1.20.0"
@@ -107,5 +107,5 @@
107
107
  "start-server-and-test": "^2.0.0",
108
108
  "webdriverio": "8.15.10"
109
109
  },
110
- "gitHead": "7ab90f30b17ed745cad713363a27edfd7cdce08a"
110
+ "gitHead": "6834827fffe5dd8dd3d2f39d2fea2c4039ab1d3d"
111
111
  }