@serenity-js/protractor
Version:
Adapter that integrates @serenity-js/web with Protractor, enabling Serenity/JS reporting and using the Screenplay Pattern to write end-to-end test scenarios
25 lines (22 loc) • 859 B
text/typescript
import type { SpecResult } from 'protractor/built/plugins';
/**
* A JSON object which needs to be returned to Protractor
* when [`ProtractorFrameworkAdapter`](https://serenity-js.org/api/protractor-adapter/function/run/)
* is done with executing the test scenarios.
*
* ## Learn more
* - [Protractor Custom Frameworks Readme](https://github.com/angular/protractor/blob/master/lib/frameworks/README.md)
*/
export interface ProtractorReport {
/**
* Total number of failed scenarios
*/
failedCount: number;
/**
* Results per scenario
*
* Note: duration is not part of the SpecResult, but is being used by the Jasmine reporter
* https://github.com/angular/protractor/blob/4f74a4ec753c97adfe955fe468a39286a0a55837/lib/frameworks/jasmine.js#L32
*/
specResults: Array<SpecResult & { duration: number }>;
}