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

DressingRoom

Prepares the Actor for the performance.

this class was deprecated. Please use the Cast instead

Examples:

A dressing room for actors interacting with a Web UI

 import { serenity, Actor, DressingRoom } from '@serenity-js/core'
 import { BrowseTheWeb } from '@serenity-js/protractor'
 import { protractor } from 'protractor'

 class UIActors implements DressingRoom {
     prepare(actor: Actor) {
         return actor.whoCan(BrowseTheWeb.using(protractor.browser));
     }
 }

 const stage = serenity.callToStageFor(new UIActors());

See also:

Static Method Summary

Static Public Methods
public static

Creates a generic DressingRoom implementation, where every actor is given all the abilities specified when the method is called.

Static Public Methods

public static whereEveryoneCan(abilities: Ability[]): DressingRoom source

Creates a generic DressingRoom implementation, where every actor is given all the abilities specified when the method is called.

Params:

NameTypeAttributeDescription
abilities Ability[]

Returns:

DressingRoom