import {Stage} from '@serenity-js/core/lib/stage'
public class | source

Stage

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

cast: *

Method Summary

Public Methods
public

activityDetailsFor(activity: Activity, actor: UNKNOWN): ActivityDetails

public

actor(name: string): Actor

Instantiates a new Actor or fetches an existing one by their name if they've already been instantiated.

public

announce(event: DomainEvent): void

public

assign(listeners: UNKNOWN)

public

callFor(actors: Cast): Stage

this method was deprecated.
public
public
public
public

engage(actors: Cast)

public

theActorCalled(name: string): Actor

An alias for Stage#actor

public

Returns the last Actor instantiated via Stage#actor.

public

theShowHasStarted(): boolean

Returns {true} if there is an Actor in the spotlight, {false} otherwise.

public

waitForNextCue(): Promise

Public Constructors

public constructor() source

Public Members

public cast: * source

Public Methods

public activityDetailsFor(activity: Activity, actor: UNKNOWN): ActivityDetails source

Params:

NameTypeAttributeDescription
activity Activity
actor UNKNOWN

Returns:

ActivityDetails

public announce(event: DomainEvent): void source

Params:

NameTypeAttributeDescription
event DomainEvent

Returns:

void

public assign(listeners: UNKNOWN) source

Params:

NameTypeAttributeDescription
listeners UNKNOWN

public callFor(actors: Cast): Stage source

this method was deprecated.

Params:

NameTypeAttributeDescription
actors Cast

Returns:

Stage

public currentActivityDetails(): ActivityDetails source

Returns:

ActivityDetails

public currentTime(): Timestamp source

Returns:

Timestamp

public drawTheCurtain() source

public engage(actors: Cast) source

Params:

NameTypeAttributeDescription
actors Cast

public theActorCalled(name: string): Actor source

An alias for Stage#actor

Params:

NameTypeAttributeDescription
name string

Returns:

Actor

public theShowHasStarted(): boolean source

Returns {true} if there is an Actor in the spotlight, {false} otherwise.

Returns:

boolean

public waitForNextCue(): Promise source

Returns:

Promise