@serenity-js/core
Version:
The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure
22 lines • 1.06 kB
TypeScript
import type { JSONObject } from 'tiny-types';
import { CorrelationId, Outcome } from '../model/index.js';
import { Timestamp } from '../screenplay/index.js';
import { DomainEvent } from './DomainEvent.js';
/**
* Emitted by a Serenity/JS test runner adapter, right before a test and all its associated test hooks finish.
* Triggers any clean-up operations that might be required, such as discarding of
* the [discardable](https://serenity-js.org/api/core/class/Discardable/) abilities.
*
* The `outcome` property contains the test outcome determined so far, before any cleanup operations.
* This allows stage crew members like the WebdriverIO notifier to invoke hooks with the test result
* before `waitForNextCue()` is called.
*
* @group Events
*/
export declare class SceneFinishes extends DomainEvent {
readonly sceneId: CorrelationId;
readonly outcome: Outcome;
static fromJSON(o: JSONObject): SceneFinishes;
constructor(sceneId: CorrelationId, outcome: Outcome, timestamp?: Timestamp);
}
//# sourceMappingURL=SceneFinishes.d.ts.map