See
Extends:
src/screenplay/interactions/...js~Interaction → See
this class was deprecated. Use the
@serenity-js/assertions
module insteadTests:
- Interactions See when used with async questions allows the actor to verify a condition
- Interactions See when used with async questions rejects the promise if the condition is not met
- Interactions See when used with sync questions allows the actor to verify a condition
- Interactions See when used with sync questions rejects the promise if the condition is not met
Static Method Summary
Static Public Methods | ||
public static |
if(question: Question, assertion: Assertion): Interaction |
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
performAs(actor: AnswersQuestions): Promise<void> Makes the provided Actor perform this Interaction. |
|
public |
toString(): string Generates a description to be used when reporting this Activity. |
Static Public Methods
public static if(question: Question, assertion: Assertion): Interaction source
Params:
Name | Type | Attribute | Description |
question | Question | ||
assertion | Assertion |
Public Constructors
public constructor() source
Public Methods
public performAs(actor: AnswersQuestions): Promise<void> source
Makes the provided Actor perform this Interaction.
Params:
Name | Type | Attribute | Description |
actor | AnswersQuestions |
Returns:
Promise<void> |