@serenity-js/playwright-test 3.32.0 → 3.32.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/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.32.1](https://github.com/serenity-js/serenity-js/compare/v3.32.0...v3.32.1) (2025-06-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **playwright-test:** added SerenityFixtures and SerenityWorkerFixtures to API docs ([887a7cf](https://github.com/serenity-js/serenity-js/commit/887a7cfb2d5505cd566cc26defdf6d1aaa145e40))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.32.0](https://github.com/serenity-js/serenity-js/compare/v3.31.17...v3.32.0) (2025-06-20)
7
18
 
8
19
 
@@ -2,7 +2,8 @@ import type { PlaywrightTestConfig as BasePlaywrightTestConfig } from '@playwrig
2
2
  import type { SerenityFixtures, SerenityWorkerFixtures } from './serenity-fixtures';
3
3
  /**
4
4
  * Convenience alias for [PlaywrightTestConfig](https://playwright.dev/docs/test-configuration) object
5
- * that includes [`SerenityOptions`](https://serenity-js.org/api/playwright-test/interface/SerenityOptions/) and allows for any other custom options when needed.
5
+ * that includes [`SerenityFixtures`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/) and
6
+ * [`SerenityWorkerFixtures`](https://serenity-js.org/api/playwright-test/interface/SerenityWorkerFixtures/) and allows for any other custom options when needed.
6
7
  *
7
8
  * #### Example
8
9
  * Configuring Playwright Test using the standard `PlaywrightTestConfig` from `@playwright/test`:
@@ -10,9 +11,9 @@ import type { SerenityFixtures, SerenityWorkerFixtures } from './serenity-fixtur
10
11
  * ```typescript
11
12
  * // playwright.config.ts
12
13
  * import type { PlaywrightTestConfig } from '@playwright/test'
13
- * import type { SerenityOptions } from '@serenity-js/playwright-test'
14
+ * import type { SerenityFixtures, SerenityWorkerFixtures } from '@serenity-js/playwright-test'
14
15
  *
15
- * const config: PlaywrightTestConfig<SerenityOptions & MyCustomOptions> = {
16
+ * const config: PlaywrightTestConfig<SerenityFixtures & MyCustomOptions, SerenityWorkerFixtures> = {
16
17
  * // ...
17
18
  * }
18
19
  *
@@ -32,8 +33,8 @@ import type { SerenityFixtures, SerenityWorkerFixtures } from './serenity-fixtur
32
33
  * ```
33
34
  *
34
35
  * #### Learn more
35
- * - [`SerenityOptions`](https://serenity-js.org/api/playwright-test/interface/SerenityOptions/)
36
36
  * - [`SerenityFixtures`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/)
37
+ * - [`SerenityWorkerFixtures`](https://serenity-js.org/api/playwright-test/interface/SerenityWorkerFixtures/)
37
38
  * - [`SerenityReporterForPlaywrightTestConfig`](https://serenity-js.org/api/playwright-test/interface/SerenityReporterForPlaywrightTestConfig/)
38
39
  * - [Playwright Test configuration](https://playwright.dev/docs/test-configuration)
39
40
  */
@@ -1 +1 @@
1
- {"version":3,"file":"PlaywrightTestConfig.d.ts","sourceRoot":"","sources":["../../src/api/PlaywrightTestConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,IAAI,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAEzF,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAEpF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,MAAM,oBAAoB,CAAC,QAAQ,GAAG,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,wBAAwB,CAAC,gBAAgB,GAAG,QAAQ,EAAE,sBAAsB,GAAG,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"PlaywrightTestConfig.d.ts","sourceRoot":"","sources":["../../src/api/PlaywrightTestConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,IAAI,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAEzF,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAEpF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,MAAM,oBAAoB,CAAC,QAAQ,GAAG,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,wBAAwB,CAAC,gBAAgB,GAAG,QAAQ,EAAE,sBAAsB,GAAG,UAAU,CAAC,CAAC"}
@@ -298,11 +298,12 @@ export interface SerenityFixtures {
298
298
  /**
299
299
  * Default [`actor`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/#actor) injected into a [test scenario](https://serenity-js.org/api/playwright-test/function/it/).
300
300
  *
301
- * Using `actor` fixture is equivalent to invoking [`actorCalled`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/#actorCalled) with [`defaultActorName`](https://serenity-js.org/api/playwright-test/interface/SerenityOptions/#defaultActorName).
301
+ * Using `actor` fixture is equivalent to invoking [`actorCalled`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/#actorCalled)
302
+ * with [`defaultActorName`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/#defaultActorName).
302
303
  *
303
304
  * #### Learn more
304
- * - [`actorCalled`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/#actorCalled)
305
- * - [`SerenityOptions.defaultActorName`](https://serenity-js.org/api/playwright-test/interface/SerenityOptions/#defaultActorName)
305
+ * - [`actorCalled`](https://serenity-js.org/api/playwright-test/interface/SerenityWorkerFixtures/#actorCalled)
306
+ * - [`defaultActorName`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/#defaultActorName)
306
307
  * - Declaring a Serenity/JS [test scenario](https://serenity-js.org/api/playwright-test/function/it/)
307
308
  */
308
309
  actor: Actor;
@@ -367,7 +368,6 @@ export interface SerenityWorkerFixtures {
367
368
  *
368
369
  * #### Learn more
369
370
  * - Declaring a Serenity/JS [test scenario](https://serenity-js.org/api/playwright-test/function/it/)
370
- * - [`SerenityOptions.actors`](https://serenity-js.org/api/playwright-test/interface/SerenityOptions/#actors)
371
371
  * - [`SerenityFixtures.actors`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/#actors)
372
372
  *
373
373
  * @param name
@@ -1 +1 @@
1
- {"version":3,"file":"serenity-fixtures.d.ts","sourceRoot":"","sources":["../../src/api/serenity-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,IAAI,EACJ,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,eAAe,EACf,sBAAsB,EACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAE1E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoGG;AACH,MAAM,WAAW,gBAAgB;IAE7B;;;;;;;OAOG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,IAAI,EAAE,KAAK,CAAC,gBAAgB,GAAG,eAAe,GAAG,sBAAsB,CAAC,CAAC;IAEzE;;;;;;;;OAQG;IACH,UAAU,EAAE,MAAM,GAAG,QAAQ,CAAC;IAE9B;;;;;;;;OAQG;IACH,kBAAkB,EAAE,MAAM,GAAG,QAAQ,CAAC;IAEtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6DG;IACH,mBAAmB,EAAE,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkEG;IACH,MAAM,EAAE,IAAI,CAAC;IAEb;;;;;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;;;;;OA6DG;IACH,mBAAmB,EAAE,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkEG;IACH,MAAM,EAAE,IAAI,CAAC;IAEb;;;;;;;;;;OAUG;IACH,KAAK,EAAE,KAAK,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,WAAW,sBAAsB;IACnC;;OAEG;IACH,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAE5C;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IAEnB;;;;;;;;;;;OAWG;IACH,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,KAAK,CAAC;CACxC"}
@@ -5,7 +5,9 @@ import type { OutputStream } from '@serenity-js/core/lib/adapter';
5
5
  /**
6
6
  * Configuration object accepted by `@serenity-js/playwright-test` reporter.
7
7
  *
8
- * See [`SerenityOptions`](https://serenity-js.org/api/playwright-test/interface/SerenityOptions/) for usage examples.
8
+ * For usage examples, see:
9
+ * - [`SerenityFixtures`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/)
10
+ * - [`SerenityWorkerFixtures`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/)
9
11
  */
10
12
  export interface SerenityReporterForPlaywrightTestConfig {
11
13
  /**
@@ -14,7 +16,7 @@ export interface SerenityReporterForPlaywrightTestConfig {
14
16
  * Note that the `crew` can also be configured using [class descriptions](https://serenity-js.org/api/core/#ClassDescription).
15
17
  *
16
18
  * #### Learn more
17
- * - [`SerenityOptions`](https://serenity-js.org/api/playwright-test/interface/SerenityOptions/)
19
+ * - [`SerenityFixtures`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/)
18
20
  * - [`SerenityConfig.crew`](https://serenity-js.org/api/core/class/SerenityConfig/#crew)
19
21
  */
20
22
  crew?: Array<StageCrewMember | StageCrewMemberBuilder | ClassDescription>;
@@ -1 +1 @@
1
- {"version":3,"file":"SerenityReporterForPlaywrightTest.d.ts","sourceRoot":"","sources":["../../src/reporter/SerenityReporterForPlaywrightTest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAG,MAAM,2BAA2B,CAAC;AAC/G,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEnG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAUlE;;;;GAIG;AACH,MAAM,WAAW,uCAAuC;IACpD;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,eAAe,GAAG,sBAAsB,GAAG,gBAAgB,CAAC,CAAC;IAE1E;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;CAC/B;AAED;;;;GAIG;AACH,qBAAa,iCAAkC,YAAW,QAAQ;IAC9D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA+B;IAE3D,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA+B;IAC9D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAW;IACpC,OAAO,CAAC,cAAc,CAAC,CAAQ;IAE/B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsD;IAClF,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA4B;IAE5D;;OAEG;gBACS,MAAM,EAAE,uCAAuC;IAW3D,OAAO,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI;IAO/C,OAAO,CAAC,kBAAkB;IAY1B,WAAW,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAA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AAY,CAAC,CAAC;QAEvE,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,wBAAe,CAAC,OAAO,CAAC,CAAC,CAAC;QAErD,IAAI,CAAC;YACD,MAAM,IAAI,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAC;YAErC,MAAM,OAAO,GAAG,IAAI,CAAC,cAAc;gBAC/B,CAAC,CAAC,IAAI,gCAAwB,CAAC,IAAI,CAAC,cAAc,CAAC;gBACnD,CAAC,CAAC,IAAI,2BAAmB,EAAE,CAAC;YAEhC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAClB,IAAI,wBAAe,CACf,OAAO,EACP,OAAO,CACV,CACJ,CAAC;QACN,CAAC;QACD,OAAO,KAAK,EAAE,CAAC;YACX,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAClB,IAAI,wBAAe,CACf,IAAI,gCAAwB,CAAC,KAAK,CAAC,EACnC,OAAO,CACV,CACJ,CAAC;YAEF,MAAM,KAAK,CAAC;QAChB,CAAC;IACL,CAAC;IAED,wCAAwC;IACxC,yCAAyC;IACzC,yCAAyC;IAEzC,aAAa;QACT,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAtJD,8EAsJC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serenity-js/playwright-test",
3
- "version": "3.32.0",
3
+ "version": "3.32.1",
4
4
  "description": "Serenity/JS test runner adapter for Playwright Test, combining Playwright's developer experience with the advanced reporting and automation capabilities of Serenity/JS",
5
5
  "author": {
6
6
  "name": "Jan Molak",
@@ -59,10 +59,10 @@
59
59
  "node": "^18.12 || ^20 || ^22"
60
60
  },
61
61
  "dependencies": {
62
- "@serenity-js/core": "3.32.0",
63
- "@serenity-js/playwright": "3.32.0",
64
- "@serenity-js/rest": "3.32.0",
65
- "@serenity-js/web": "3.32.0",
62
+ "@serenity-js/core": "3.32.1",
63
+ "@serenity-js/playwright": "3.32.1",
64
+ "@serenity-js/rest": "3.32.1",
65
+ "@serenity-js/web": "3.32.1",
66
66
  "deepmerge": "4.3.1",
67
67
  "tiny-types": "1.23.0"
68
68
  },
@@ -80,5 +80,5 @@
80
80
  "ts-node": "10.9.2",
81
81
  "typescript": "5.8.3"
82
82
  },
83
- "gitHead": "2b6464752f0a65ccf4b9f83ce1b309e14e9c6293"
83
+ "gitHead": "f1f288c9a75d28270dfe4ba16ca4f367a4dbba22"
84
84
  }
@@ -4,7 +4,8 @@ import type { SerenityFixtures, SerenityWorkerFixtures } from './serenity-fixtur
4
4
 
5
5
  /**
6
6
  * Convenience alias for [PlaywrightTestConfig](https://playwright.dev/docs/test-configuration) object
7
- * that includes [`SerenityOptions`](https://serenity-js.org/api/playwright-test/interface/SerenityOptions/) and allows for any other custom options when needed.
7
+ * that includes [`SerenityFixtures`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/) and
8
+ * [`SerenityWorkerFixtures`](https://serenity-js.org/api/playwright-test/interface/SerenityWorkerFixtures/) and allows for any other custom options when needed.
8
9
  *
9
10
  * #### Example
10
11
  * Configuring Playwright Test using the standard `PlaywrightTestConfig` from `@playwright/test`:
@@ -12,9 +13,9 @@ import type { SerenityFixtures, SerenityWorkerFixtures } from './serenity-fixtur
12
13
  * ```typescript
13
14
  * // playwright.config.ts
14
15
  * import type { PlaywrightTestConfig } from '@playwright/test'
15
- * import type { SerenityOptions } from '@serenity-js/playwright-test'
16
+ * import type { SerenityFixtures, SerenityWorkerFixtures } from '@serenity-js/playwright-test'
16
17
  *
17
- * const config: PlaywrightTestConfig<SerenityOptions & MyCustomOptions> = {
18
+ * const config: PlaywrightTestConfig<SerenityFixtures & MyCustomOptions, SerenityWorkerFixtures> = {
18
19
  * // ...
19
20
  * }
20
21
  *
@@ -34,8 +35,8 @@ import type { SerenityFixtures, SerenityWorkerFixtures } from './serenity-fixtur
34
35
  * ```
35
36
  *
36
37
  * #### Learn more
37
- * - [`SerenityOptions`](https://serenity-js.org/api/playwright-test/interface/SerenityOptions/)
38
38
  * - [`SerenityFixtures`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/)
39
+ * - [`SerenityWorkerFixtures`](https://serenity-js.org/api/playwright-test/interface/SerenityWorkerFixtures/)
39
40
  * - [`SerenityReporterForPlaywrightTestConfig`](https://serenity-js.org/api/playwright-test/interface/SerenityReporterForPlaywrightTestConfig/)
40
41
  * - [Playwright Test configuration](https://playwright.dev/docs/test-configuration)
41
42
  */
@@ -313,11 +313,12 @@ export interface SerenityFixtures {
313
313
  /**
314
314
  * Default [`actor`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/#actor) injected into a [test scenario](https://serenity-js.org/api/playwright-test/function/it/).
315
315
  *
316
- * Using `actor` fixture is equivalent to invoking [`actorCalled`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/#actorCalled) with [`defaultActorName`](https://serenity-js.org/api/playwright-test/interface/SerenityOptions/#defaultActorName).
316
+ * Using `actor` fixture is equivalent to invoking [`actorCalled`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/#actorCalled)
317
+ * with [`defaultActorName`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/#defaultActorName).
317
318
  *
318
319
  * #### Learn more
319
- * - [`actorCalled`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/#actorCalled)
320
- * - [`SerenityOptions.defaultActorName`](https://serenity-js.org/api/playwright-test/interface/SerenityOptions/#defaultActorName)
320
+ * - [`actorCalled`](https://serenity-js.org/api/playwright-test/interface/SerenityWorkerFixtures/#actorCalled)
321
+ * - [`defaultActorName`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/#defaultActorName)
321
322
  * - Declaring a Serenity/JS [test scenario](https://serenity-js.org/api/playwright-test/function/it/)
322
323
  */
323
324
  actor: Actor;
@@ -382,7 +383,6 @@ export interface SerenityWorkerFixtures {
382
383
  *
383
384
  * #### Learn more
384
385
  * - Declaring a Serenity/JS [test scenario](https://serenity-js.org/api/playwright-test/function/it/)
385
- * - [`SerenityOptions.actors`](https://serenity-js.org/api/playwright-test/interface/SerenityOptions/#actors)
386
386
  * - [`SerenityFixtures.actors`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/#actors)
387
387
  *
388
388
  * @param name
@@ -15,7 +15,9 @@ type HookType = 'beforeAll' | 'afterAll' | 'beforeEach' | 'afterEach';
15
15
  /**
16
16
  * Configuration object accepted by `@serenity-js/playwright-test` reporter.
17
17
  *
18
- * See [`SerenityOptions`](https://serenity-js.org/api/playwright-test/interface/SerenityOptions/) for usage examples.
18
+ * For usage examples, see:
19
+ * - [`SerenityFixtures`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/)
20
+ * - [`SerenityWorkerFixtures`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/)
19
21
  */
20
22
  export interface SerenityReporterForPlaywrightTestConfig {
21
23
  /**
@@ -24,7 +26,7 @@ export interface SerenityReporterForPlaywrightTestConfig {
24
26
  * Note that the `crew` can also be configured using [class descriptions](https://serenity-js.org/api/core/#ClassDescription).
25
27
  *
26
28
  * #### Learn more
27
- * - [`SerenityOptions`](https://serenity-js.org/api/playwright-test/interface/SerenityOptions/)
29
+ * - [`SerenityFixtures`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/)
28
30
  * - [`SerenityConfig.crew`](https://serenity-js.org/api/core/class/SerenityConfig/#crew)
29
31
  */
30
32
  crew?: Array<StageCrewMember | StageCrewMemberBuilder | ClassDescription>;