@serenity-js/core
Version:
The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure
17 lines • 911 B
JavaScript
import { ActivityDetails, CorrelationId, Outcome } from '../model/index.js';
import { Timestamp } from '../screenplay/index.js';
import { ActivityFinished } from './ActivityFinished.js';
/**
* Emitted when an [`Interaction`](https://serenity-js.org/api/core/class/Interaction/) is finished.
* [`StageCrewMember`](https://serenity-js.org/api/core/interface/StageCrewMember/) instances listen
* to this event to report on the outcome of the interaction, or perform any additional follow-up activities,
* such as taking a screenshot.
*
* @group Events
*/
export class InteractionFinished extends ActivityFinished {
static fromJSON(o) {
return new InteractionFinished(CorrelationId.fromJSON(o.sceneId), CorrelationId.fromJSON(o.activityId), ActivityDetails.fromJSON(o.details), Outcome.fromJSON(o.outcome), Timestamp.fromJSON(o.timestamp));
}
}
//# sourceMappingURL=InteractionFinished.js.map