Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const
{ ConsoleReporter } = require('@serenity-js/console-reporter'),
{ ArtifactArchiver, StreamReporter } = require('@serenity-js/core'),
{ SerenityBDDReporter } = require('@serenity-js/serenity-bdd');
exports.config = {
chromeDriver: require('chromedriver/lib/chromedriver').path,
SELENIUM_PROMISE_MANAGER: false,
directConnect: true,
allScriptsTimeout: 11000,
specs: [ 'features/*.feature', ],
framework: 'custom',
frameworkPath: require.resolve('@serenity-js/protractor/adapter'),
serenity: {
crew: [
ArtifactArchiver.storingArtifactsAt('./target/site/serenity'),
new SerenityBDDReporter(),
// ConsoleReporter.forDarkTerminals(),
multiCapabilities: [{
browserName: 'chrome',
shardTestFiles: true,
maxInstances: 2
}, {
browserName: 'chrome',
shardTestFiles: true,
maxInstances: 2,
chromeOptions: {
args: [
'--headless',
'--disable-gpu'
]
}
}],
chromeDriver: require('chromedriver/lib/chromedriver').path,
geckoDriver: require('geckodriver/lib/geckodriver').path,
mochaOpts: {
timeout: TIMEOUT
},
directConnect: true,
SELENIUM_PROMISE_MANAGER: false
};