UNPKG

@serenity-js/core

Version:

The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure

21 lines 1.13 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InteractionFinished = void 0; const index_js_1 = require("../model/index.js"); const index_js_2 = require("../screenplay/index.js"); const ActivityFinished_js_1 = require("./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 */ class InteractionFinished extends ActivityFinished_js_1.ActivityFinished { static fromJSON(o) { return new InteractionFinished(index_js_1.CorrelationId.fromJSON(o.sceneId), index_js_1.CorrelationId.fromJSON(o.activityId), index_js_1.ActivityDetails.fromJSON(o.details), index_js_1.Outcome.fromJSON(o.outcome), index_js_2.Timestamp.fromJSON(o.timestamp)); } } exports.InteractionFinished = InteractionFinished; //# sourceMappingURL=InteractionFinished.js.map