Skip to content

How to override task description? #2472

Answered by jan-molak
eyesopen asked this question in How to... ?
Discussion options

You must be logged in to vote

Dynamic descriptions, introduced in Serenity/JS 3.24, separate the static and dynamic descriptions of the activities.

The "static" description is determined right before the actor performs a given activity by calling activity.toString(): string method, where the returned value is included in the ActivityStarts event. This behaviour is consistent with Serenity/JS pre-3.24.

The "dynamic" description is enabled by the newly introduced Describable interface, which allows the actor to retrieve the description of the activity right after it has been performed and when the values of its parameters are already resolved. This is done by calling activity.describedBy(actor): Promise<string> method, …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jan-molak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants