You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/blog/2025-06-20-playwright-worker-scope-actors/index.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ For the deep dive, check out the [Serenity/JS integration guide for Playwright T
38
38
Serenity/JS 3.32 introduces support for [Playwright Test worker-scope fixtures](https://playwright.dev/docs/test-fixtures#worker-scoped-fixtures),
39
39
allowing you to use actors in `beforeAll` and `afterAll` hooks.
40
40
41
-
To use actors in a `beforeAll` or `afterAll` hook, use the [`actorCalled`](https://serenity-js.org/api/playwright-test/interface/SerenityFixtures/#actorCalled) fixture:
41
+
To use actors in a `beforeAll` or `afterAll` hook, use the [`actorCalled`](https://serenity-js.org/api/playwright-test/interface/SerenityWorkerFixtures/#actorCalled) fixture:
42
42
43
43
```ts title="github.spec.ts"
44
44
import { afterAll, beforeAll, describe, it } from'@serenity-js/playwright-test'
Copy file name to clipboardExpand all lines: src/docs/handbook/test-runners/playwright-test.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -608,7 +608,7 @@ describe('Todo App', () => {
608
608
609
609
### Overriding abilities via `test.use`
610
610
611
-
To avoid adding or overriding abilities inline, you can do so globally by overriding the [`actorCalled`](/api/playwright-test/interface/SerenityFixtures/#actorCalled) fixture
611
+
To avoid adding or overriding abilities inline, you can do so globally by overriding the [`actorCalled`](/api/playwright-test/interface/SerenityWorkerFixtures/#actorCalled) fixture
612
612
via [`test.use`](/api/playwright-test/function/test/#use):
613
613
614
614
```tstitle="./spec/todo_app.spec.ts"
@@ -631,7 +631,7 @@ describe('Todo App', () => {
631
631
632
632
### Overriding abilities via `useFixtures`
633
633
634
-
You can override the [`actorCalled`](/api/playwright-test/interface/SerenityFixtures/#actorCalled) fixture globally using the [`useFixtures`](/api/playwright-test/function/useFixtures/) function.
634
+
You can override the [`actorCalled`](/api/playwright-test/interface/SerenityWorkerFixtures/#actorCalled) fixture globally using the [`useFixtures`](/api/playwright-test/function/useFixtures/) function.
635
635
This function returns a test API, including functions such as `describe`, `it`, `beforeEach`, or `test`, which you can use instead of the default ones to define test scenarios.
636
636
637
637
```tstitle="./spec/test-api.ts"
@@ -725,9 +725,9 @@ If your scenario requires more actors using separate browser instances, you can
725
725
### Sharing notes between actors
726
726
727
727
[By default](#modifying-default-abilities), each actor receives an ability to [`TakeNotes`](/api/core/class/TakeNotes/) using their own [notepad](/api/core/class/Notepad/).
728
-
To share notes between actors, you can introduce a `notepad` fixture and override the default [`actorCalled`](/api/playwright-test/interface/SerenityFixtures/#actorCalled) function to make the actors reuse the same notepad.
728
+
To share notes between actors, you can introduce a `notepad` fixture and override the default [`actorCalled`](/api/playwright-test/interface/SerenityWorkerFixtures/#actorCalled) function to make the actors reuse the same notepad.
729
729
730
-
Overriding the [`actorCalled`](/api/playwright-test/interface/SerenityFixtures/#actorCalled) function allows you to customise the abilities of the actors created via the `actorCalled` fixture,
730
+
Overriding the [`actorCalled`](/api/playwright-test/interface/SerenityWorkerFixtures/#actorCalled) function allows you to customise the abilities of the actors created via the `actorCalled` fixture,
731
731
as well as the default actor injected via the [`actor`](/api/playwright-test/interface/SerenityFixtures/#actor) fixture.
Overriding `actors` replaces the cast used to configure the actors instantiated via the [`actorCalled`](/api/playwright-test/interface/SerenityFixtures/#actorCalled) fixture, as well as the default actor injected via the [`actor`](/api/playwright-test/interface/SerenityFixtures/#actor) fixture.
841
+
Overriding `actors` replaces the cast used to configure the actors instantiated via the [`actorCalled`](/api/playwright-test/interface/SerenityWorkerFixtures/#actorCalled) fixture, as well as the default actor injected via the [`actor`](/api/playwright-test/interface/SerenityFixtures/#actor) fixture.
Copy file name to clipboardExpand all lines: src/docs/handbook/tutorials/your-first-web-scenario.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ Playwright Test [`test.describe`](https://playwright.dev/docs/api/class-test#tes
89
89
In addition to the functionality offered by Playwright [`test`](https://playwright.dev/docs/api/class-test#test-call) function, Serenity/JS [`it`](/api/playwright-test/function/it)
90
90
wrapper offers [Serenity/JS-specific test fixtures](/api/playwright-test/interface/SerenityFixtures),
91
91
such as [`actor`](/api/playwright-test/interface/SerenityFixtures#actor),
0 commit comments