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/docs/handbook/design/screenplay-pattern.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
@@ -277,7 +277,7 @@ Serenity/JS test runner adapters use your test runner's configuration to set up
277
277
And so, Serenity/JS adapters for the following test runners will automatically give every actor you retrieve via [`actorCalled`](/api/core/function/actorCalled) the below abilities so that you don't have to configure them yourself:
- [`CallAnApi`](/api/rest/class/CallAnApi) at [`baseURL`](/api/playwright/interface/PlaywrightOptions/#baseURL) configured in the [Playwright Test config file](https://playwright.dev/docs/test-configuration),
280
+
- [`CallAnApi`](/api/rest/class/CallAnApi) at [`baseURL`](https://playwright.dev/docs/api/class-testoptions#test-options-base-url) configured in the [Playwright Test config file](https://playwright.dev/docs/test-configuration),
281
281
- [`TakeNotes`](/api/core/class/TakeNotes)
282
282
- [WebdriverIO](/handbook/test-runners/webdriverio/) (with [Cucumber](/handbook/test-runners/cucumber), [Jasmine](/handbook/test-runners/jasmine), or [Mocha](/handbook/test-runners/mocha)):
@@ -156,7 +156,7 @@ If you'd like to use different locations for your tests or the test reports, adj
156
156
Serenity/JS offers automatic screenshot capture for test scenarios using the [Screenplay Pattern](/handbook/design/screenplay-pattern/).
157
157
This is handled by the [Photographer service](/handbook/reporting/photographer/), which takes screenshots based on interactions and assertion failures performed by the Serenity/JS actors.
158
158
159
-
To enable automatic screenshot capture, add the `@serenity-js/web:Photographer` service to the [`crew`](/api/playwright-test/interface/SerenityOptions/#crew) array
159
+
To enable automatic screenshot capture, add the `@serenity-js/web:Photographer` service to the [`crew`](/api/playwright-test/interface/SerenityFixtures/#crew) array
160
160
in the appropriate `use` section of your [`playwright.config.ts`](https://playwright.dev/docs/test-configuration) configuration file.
161
161
162
162
There are three available scopes for configuring the Photographer:
@@ -168,9 +168,9 @@ For example, to take screenshots only **on assertion failures by default**, but
- [Serenity/JS test fixtures and configuration options](/api/playwright-test/interface/SerenityFixtures)
229
+
- [Serenity/JS test fixtures and configuration options](/api/playwright-test/interface/SerenityWorkerFixtures)
229
230
- [Playwright Test configuration options](https://playwright.dev/docs/test-configuration)
230
231
231
232
## Writing tests
@@ -454,13 +455,13 @@ To try this example out, check out the [Serenity/JS Playwright Test Template](ht
454
455
455
456
### Changing the default actor name
456
457
457
-
You can change the name of the default `actor` by setting the [`defaultActorName`](/api/playwright-test/interface/SerenityOptions/#defaultActorName) configuration option in your [`playwright.config.ts`](https://playwright.dev/docs/test-configuration) file:
458
+
You can change the name of the default `actor` by setting the [`defaultActorName`](/api/playwright-test/interface/SerenityFixtures/#defaultActorName) configuration option in your [`playwright.config.ts`](https://playwright.dev/docs/test-configuration) file:
@@ -720,15 +720,15 @@ or on demand using the interaction to [`TakeScreenshot`](/api/web/class/TakeScre
720
720
#### Automatic screenshots
721
721
722
722
To enable automatic screenshots, use your `playwright.config.ts` file to add the [`Photographer`](/api/web/class/Photographer/) to the Serenity/JS
723
-
stage [`crew`](/api/playwright-test/interface/SerenityOptions/#crew) available in Playwright Test [worker processes](https://playwright.dev/docs/test-parallel),
723
+
stage [`crew`](/api/playwright-test/interface/SerenityFixtures/#crew) available in Playwright Test [worker processes](https://playwright.dev/docs/test-parallel),
724
724
and add the [`SerenityBDDReporter`](/api/serenity-bdd/class/SerenityBDDReporter/) and
725
725
[`ArtifactArchiver`](/api/core/class/ArtifactArchiver/) to your reporter process:
0 commit comments