Created
September 24, 2018 22:02
-
-
Save kenvontucky/49f259c185b30d3a02df4e63293729c6 to your computer and use it in GitHub Desktop.
angular e2e puppeteer headless chrome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Protractor configuration file, see link for more information | |
// https://github.com/angular/protractor/blob/master/lib/config.ts | |
const { SpecReporter } = require('jasmine-spec-reporter'); | |
exports.config = { | |
allScriptsTimeout: 11000, | |
specs: [ | |
'./src/**/*.e2e-spec.ts' | |
], | |
capabilities: { | |
chromeOptions: { | |
binary: require('puppeteer').executablePath(), | |
args: ['--headless', '--disable-gpu', '--no-sandbox', '--disable-extensions', '--disable-dev-shm-usage'] | |
}, | |
'browserName': 'chrome' | |
}, | |
directConnect: true, | |
baseUrl: 'http://localhost:4200/', | |
framework: 'jasmine', | |
jasmineNodeOpts: { | |
showColors: true, | |
defaultTimeoutInterval: 30000, | |
print: function() {} | |
}, | |
onPrepare() { | |
require('ts-node').register({ | |
project: require('path').join(__dirname, './tsconfig.e2e.json') | |
}); | |
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment