@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
21 lines • 855 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.run = run;
const core_1 = require("@serenity-js/core");
const io_1 = require("@serenity-js/core/lib/io");
const ProtractorFrameworkAdapter_1 = require("./ProtractorFrameworkAdapter");
const runner_1 = require("./runner");
/**
* ## Learn more
* - [Protractor framework adapters](https://github.com/angular/protractor/blob/master/lib/frameworks/README.md#framework-adapters-for-protractor)
*
* @param runner
* @param specs
*
* @group Integration
*/
function run(runner, specs) {
const cwd = io_1.Path.from(runner.getConfig().configDir);
return new ProtractorFrameworkAdapter_1.ProtractorFrameworkAdapter(core_1.serenity, runner, new runner_1.TestRunnerDetector(new runner_1.TestRunnerLoader(cwd, process.pid))).run(specs);
}
//# sourceMappingURL=run.js.map