Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): Cross-scenario Actors + improved Ability lifecycle manage…
…ment (version bump) Actors can be used in `beforeAll`/`afterAll`-style hooks of your favourite test framework. This means that you can, for example, have an actor that spins up a server that keeps running throughout the entire test suite execution. You can also share notes between actors instantiated in `beforeAll`, `before` and within a test method using the ability to [`TakeNotes.usingASharedNotepad`](https://serenity-js.org/modules/core/class/src/screenplay/abilities/TakeNotes.ts~TakeNotes.html) And [`Discardable`](https://serenity-js.org/modules/core/class/src/screenplay/Discardable.ts~Discardable.html) that an actor has been given will be discarded: - after test scenario, if the actor was instantiated in `beforeEach`-style hook or within a scenario - after test run is finished, if the actor was instantiated in `beforeAll`-style hook This commit also removes several [deprecated APIs](https://serenity-js.org/handbook/integration/versioning.html#deprecated-apis): - Serenity#setTheStage(...stageCrewMembers: StageCrewMember[]): void - use [`configure`](https://serenity-js.org/modules/core/function/index.html#static-function-configure) - Serenity#callToStageFor(actors: Cast): Stage - use [`engage`](https://serenity-js.org/modules/core/function/index.html#static-function-engage) - Stage#callFor(actors: Cast): Stage - use [`actorCalled`](https://serenity-js.org/modules/core/function/index.html#static-function-actorCalled) and [`actorInTheSpotlight`]https://serenity-js.org/modules/core/function/index.html#static-function-actorInTheSpotlight() - Actor.named(name: string): Actor - use [`actorCalled`](https://serenity-js.org/modules/core/function/index.html#static-function-actorCalled)
- Loading branch information
Showing
36 changed files
with
198 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.