@serenity-js/playwright-test 3.32.1 → 3.32.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
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.2](https://github.com/serenity-js/serenity-js/compare/v3.32.1...v3.32.2) (2025-06-21)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @serenity-js/playwright-test
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [3.32.1](https://github.com/serenity-js/serenity-js/compare/v3.32.0...v3.32.1) (2025-06-20)
|
|
7
15
|
|
|
8
16
|
|
|
@@ -230,7 +230,7 @@ export interface SerenityFixtures {
|
|
|
230
230
|
/**
|
|
231
231
|
* A cast of Serenity/JS actors to be used instead of the default cast
|
|
232
232
|
* when instantiating [`actor`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/#actor)
|
|
233
|
-
* and invoking [`actorCalled`](https://serenity-js.org/api/playwright-test/interface/
|
|
233
|
+
* and invoking [`actorCalled`](https://serenity-js.org/api/playwright-test/interface/SerenityWorkerFixtures/#actorCalled).
|
|
234
234
|
*
|
|
235
235
|
* :::info Did you know?
|
|
236
236
|
* When you use `@serenity-js/playwright-test` [test APIs](https://serenity-js.org/api/playwright-test/function/it/), Serenity/JS already provides a default cast of actors for you.
|
|
@@ -298,7 +298,7 @@ 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/
|
|
301
|
+
* Using `actor` fixture is equivalent to invoking [`actorCalled`](https://serenity-js.org/api/playwright-test/interface/SerenityWorkerFixtures/#actorCalled)
|
|
302
302
|
* with [`defaultActorName`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/#defaultActorName).
|
|
303
303
|
*
|
|
304
304
|
* #### Learn more
|
|
@@ -309,40 +309,34 @@ export interface SerenityFixtures {
|
|
|
309
309
|
actor: Actor;
|
|
310
310
|
}
|
|
311
311
|
/**
|
|
312
|
-
* Serenity/JS-specific [Playwright Test fixtures](https://playwright.dev/docs/test-fixtures)
|
|
312
|
+
* Serenity/JS-specific worker-scope [Playwright Test fixtures](https://playwright.dev/docs/test-fixtures)
|
|
313
313
|
* injected into your [test scenarios](https://serenity-js.org/api/playwright-test/function/it/).
|
|
314
314
|
*
|
|
315
315
|
* ## Example test scenario
|
|
316
316
|
*
|
|
317
317
|
* ```typescript
|
|
318
318
|
* import { Ensure, equals } from '@serenity-js/assertions'
|
|
319
|
-
* import { describe, it
|
|
320
|
-
* import {
|
|
321
|
-
*
|
|
322
|
-
* describe(`Recording items`, () => {
|
|
323
|
-
*
|
|
324
|
-
* test.use({
|
|
325
|
-
* defaultActorName: 'Serena',
|
|
326
|
-
* crew: [
|
|
327
|
-
* Photographer.whoWill(TakePhotosOfFailures),
|
|
328
|
-
* ],
|
|
329
|
-
* })
|
|
330
|
-
*
|
|
331
|
-
* describe(`Todo List App`, () => {
|
|
319
|
+
* import { beforeAll, describe, it } from '@serenity-js/playwright-test'
|
|
320
|
+
* import { CallAnApi, GetRequest, LastResponse, Send } from '@serenity-js/rest'
|
|
332
321
|
*
|
|
333
|
-
*
|
|
334
|
-
* await actor.attemptsTo(
|
|
335
|
-
* startWithAnEmptyList(),
|
|
322
|
+
* describe('GitHub', () => {
|
|
336
323
|
*
|
|
337
|
-
*
|
|
338
|
-
*
|
|
339
|
-
*
|
|
340
|
-
*
|
|
341
|
-
*
|
|
342
|
-
*
|
|
343
|
-
*
|
|
344
|
-
*
|
|
345
|
-
*
|
|
324
|
+
* beforeAll('Ensure system is ready to test', async ({ actorCalled }) => {
|
|
325
|
+
* await actorCalled('Stagehand')
|
|
326
|
+
* .whoCan(CallAnApi.at('https://www.githubstatus.com/api/v2/'))
|
|
327
|
+
* .attemptsTo(
|
|
328
|
+
* Send.a(GetRequest.to('status.json')),
|
|
329
|
+
* Ensure.that(
|
|
330
|
+
* LastResponse.status(),
|
|
331
|
+
* equals(200)
|
|
332
|
+
* ),
|
|
333
|
+
* Ensure.that(
|
|
334
|
+
* LastResponse.body().status.description,
|
|
335
|
+
* equals('All Systems Operational')
|
|
336
|
+
* ),
|
|
337
|
+
* );
|
|
338
|
+
* });
|
|
339
|
+
* });
|
|
346
340
|
* ```
|
|
347
341
|
*
|
|
348
342
|
* ## Learn more
|
|
@@ -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,Q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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serenity-js/playwright-test",
|
|
3
|
-
"version": "3.32.
|
|
3
|
+
"version": "3.32.2",
|
|
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.
|
|
63
|
-
"@serenity-js/playwright": "3.32.
|
|
64
|
-
"@serenity-js/rest": "3.32.
|
|
65
|
-
"@serenity-js/web": "3.32.
|
|
62
|
+
"@serenity-js/core": "3.32.2",
|
|
63
|
+
"@serenity-js/playwright": "3.32.2",
|
|
64
|
+
"@serenity-js/rest": "3.32.2",
|
|
65
|
+
"@serenity-js/web": "3.32.2",
|
|
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": "
|
|
83
|
+
"gitHead": "bbc73b54836964b5b0981484e761c209a3dd0682"
|
|
84
84
|
}
|
|
@@ -244,7 +244,7 @@ export interface SerenityFixtures {
|
|
|
244
244
|
/**
|
|
245
245
|
* A cast of Serenity/JS actors to be used instead of the default cast
|
|
246
246
|
* when instantiating [`actor`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/#actor)
|
|
247
|
-
* and invoking [`actorCalled`](https://serenity-js.org/api/playwright-test/interface/
|
|
247
|
+
* and invoking [`actorCalled`](https://serenity-js.org/api/playwright-test/interface/SerenityWorkerFixtures/#actorCalled).
|
|
248
248
|
*
|
|
249
249
|
* :::info Did you know?
|
|
250
250
|
* When you use `@serenity-js/playwright-test` [test APIs](https://serenity-js.org/api/playwright-test/function/it/), Serenity/JS already provides a default cast of actors for you.
|
|
@@ -313,7 +313,7 @@ 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/
|
|
316
|
+
* Using `actor` fixture is equivalent to invoking [`actorCalled`](https://serenity-js.org/api/playwright-test/interface/SerenityWorkerFixtures/#actorCalled)
|
|
317
317
|
* with [`defaultActorName`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/#defaultActorName).
|
|
318
318
|
*
|
|
319
319
|
* #### Learn more
|
|
@@ -325,40 +325,34 @@ export interface SerenityFixtures {
|
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
/**
|
|
328
|
-
* Serenity/JS-specific [Playwright Test fixtures](https://playwright.dev/docs/test-fixtures)
|
|
328
|
+
* Serenity/JS-specific worker-scope [Playwright Test fixtures](https://playwright.dev/docs/test-fixtures)
|
|
329
329
|
* injected into your [test scenarios](https://serenity-js.org/api/playwright-test/function/it/).
|
|
330
330
|
*
|
|
331
331
|
* ## Example test scenario
|
|
332
332
|
*
|
|
333
333
|
* ```typescript
|
|
334
334
|
* import { Ensure, equals } from '@serenity-js/assertions'
|
|
335
|
-
* import { describe, it
|
|
336
|
-
* import {
|
|
337
|
-
*
|
|
338
|
-
* describe(`Recording items`, () => {
|
|
339
|
-
*
|
|
340
|
-
* test.use({
|
|
341
|
-
* defaultActorName: 'Serena',
|
|
342
|
-
* crew: [
|
|
343
|
-
* Photographer.whoWill(TakePhotosOfFailures),
|
|
344
|
-
* ],
|
|
345
|
-
* })
|
|
346
|
-
*
|
|
347
|
-
* describe(`Todo List App`, () => {
|
|
335
|
+
* import { beforeAll, describe, it } from '@serenity-js/playwright-test'
|
|
336
|
+
* import { CallAnApi, GetRequest, LastResponse, Send } from '@serenity-js/rest'
|
|
348
337
|
*
|
|
349
|
-
*
|
|
350
|
-
* await actor.attemptsTo(
|
|
351
|
-
* startWithAnEmptyList(),
|
|
338
|
+
* describe('GitHub', () => {
|
|
352
339
|
*
|
|
353
|
-
*
|
|
354
|
-
*
|
|
355
|
-
*
|
|
356
|
-
*
|
|
357
|
-
*
|
|
358
|
-
*
|
|
359
|
-
*
|
|
360
|
-
*
|
|
361
|
-
*
|
|
340
|
+
* beforeAll('Ensure system is ready to test', async ({ actorCalled }) => {
|
|
341
|
+
* await actorCalled('Stagehand')
|
|
342
|
+
* .whoCan(CallAnApi.at('https://www.githubstatus.com/api/v2/'))
|
|
343
|
+
* .attemptsTo(
|
|
344
|
+
* Send.a(GetRequest.to('status.json')),
|
|
345
|
+
* Ensure.that(
|
|
346
|
+
* LastResponse.status(),
|
|
347
|
+
* equals(200)
|
|
348
|
+
* ),
|
|
349
|
+
* Ensure.that(
|
|
350
|
+
* LastResponse.body().status.description,
|
|
351
|
+
* equals('All Systems Operational')
|
|
352
|
+
* ),
|
|
353
|
+
* );
|
|
354
|
+
* });
|
|
355
|
+
* });
|
|
362
356
|
* ```
|
|
363
357
|
*
|
|
364
358
|
* ## Learn more
|