externalabstractSerenityConfig
Index
Constructors
Properties
Constructors
externalconstructor
Returns SerenityConfig
Properties
externaloptionalactors
A cast of actors to be used when actorCalled
and actorInTheSpotlight functions are called.
externaloptionalcrew
A list of stage crew member builders or stage crew members to be notified of Serenity/JS domain events that occur during the scenario execution.
Note that the crew can also be configured using class descriptions.
This is useful when you need to load the configuration from a static json file, or when the test runner doesn't support
providing class instances in configuration (e.g. Playwright Test).
externaloptionalcueTimeout
The maximum amount of time between SceneFinishes and SceneFinished events that Serenity/JS should wait for any post-scenario async operations to complete. Those include generating the screenshots, saving reports to disk, dismissing the actors, and so on.
Defaults to 5 seconds.
Please note that this is not a scenario timeout, which should be configured in your test runner.
externaloptionalinteractionTimeout
The maximum default amount of time allowed for interactions such as Wait.until
to complete.
Defaults to 5 seconds, can be overridden per interaction.
Please note that this is not a scenario timeout, which should be configured in your test runner.
Learn more
externaloptionaldiffFormatter
DiffFormatter that
should be used by the ErrorFactory and the ability
to RaiseErrors
when generating diffs included in RuntimeError objects.
By default, Serenity/JS uses NoOpDiffFormatter
externaloptionaloutputStream
An output stream to be injected into stage crew member builders
Defaults to process.stdout.
Describes the configuration object accepted by the
configurefunction.Learn more
configureCastStageCrewMemberStageCrewMemberClassDescriptionStage.waitForNextCue