import { serenity } from '@serenity-js/core' ; import { Path } from '@serenity-js/core/lib/io' ; import { Runner } from 'protractor' ; import { ProtractorFrameworkAdapter } from './ProtractorFrameworkAdapter' ; import { ProtractorReport } from './reporter' ; import { TestRunnerDetector , TestRunnerLoader } from './runner' ; param { protractor param { string [ ] } specs returns { Promise < ProtractorReport > } see https export function run ( runner , specs ) { const cwd = Path . from ( runner . getConfig ( ) . configDir ) ; return new ProtractorFrameworkAdapter ( serenity , runner , new TestRunnerDetector ( new TestRunnerLoader ( cwd , process . pid ) ) ) . run ( specs ) ; }