Check <Actual>
Hierarchy
- Task
- Check
Index
Methods
staticwhether
Type parameters
- Actual_Type
Parameters
actual: Answerable<Actual_Type>
expectation: Expectation<Actual_Type>
Returns { andIfSo: (...activities: Activity[]) => Check<Actual_Type> }
instantiationLocation
Returns the location where this Activity was instantiated.
Returns FileSystemLocation
toString
Generates a human-friendly description to be used when reporting this Activity.
Note: When this activity is reported, token
#actor
in the description will be replaced with the name of the actor performing this Activity.For example,
#actor clicks on a button
becomesWendy clicks on a button
.Returns string
otherwise
Parameters
rest...alternativeActivities: Activity[]
A sequence of activities to perform when the Expectation is not met.
Returns Task
performAs
Parameters
actor: AnswersQuestions & PerformsActivities
Learn more
Returns Promise<void>
A flow control statement that enables an Actor to decide between two alternate series of activities.
Think of it as a Screenplay Pattern equivalent of the traditional
if
statement.Choose between two alternative sequences of activities
Perform a sequence of activities when a condition is met