import { ConsoleReporter } from '@serenity-js/console-reporter' ; import { ArtifactArchiver , StreamReporter } from '@serenity-js/core' ; import { SerenityBDDReporter } from '@serenity-js/serenity-bdd' ; import { WebdriverIOConfig } from '@serenity-js/webdriverio' ; import { createWriteStream } from 'fs' ; import { resolve } from 'path' ; import Inspector from './src/Inspector' ; export const config = { framework : '@serenity-js/webdriverio' , serenity : { runner : 'cucumber' , crew : [ ConsoleReporter . forDarkTerminals ( ) , new SerenityBDDReporter ( ) , ArtifactArchiver . storingArtifactsAt ( './target/site/serenity' ) , ] } , cucumberOpts : { require : [ './features/step_definitions/**/*.ts' , ] , } , specs : [ './features/**/*.feature' , ] , reporters : [ 'spec' , ] , autoCompileOpts : { autoCompile : true , tsNodeOpts : { transpileOnly : true , project : resolve ( __dirname , './tsconfig.json' ) , } , } , headless : true , automationProtocol : 'devtools' , runner : 'local' , maxInstances : 1 , capabilities : [ { browserName : 'chrome' , 'goog:chromeOptions' : { args : [ '--headless' , '--disable-infobars' , '--no-sandbox' , '--disable-gpu' , '--window-size=1024x768' , ] , } } ] , logLevel : 'warn' , waitforTimeout : 10000 , connectionRetryTimeout : 90000 , connectionRetryCount : 3 , } ;