Skip to content

Instantly share code, notes, and snippets.

@rafaelcs

rafaelcs/conf.js

Last active May 11, 2017
Embed
What would you like to do?
Protractor conf.js
'use strict';
const SpecReporter = require('jasmine-spec-reporter').SpecReporter;
exports.config = {
directConnect: true,
specs: ['tests/UI/specs/*.js'],
//seleniumAddress: 'http://localhost:4445/wd/hub',
framework: 'jasmine2',
onPrepare: function(){
browser.manage().timeouts().implicitlyWait(5000);
browser.ignoreSynchronization = true;
browser.manage().window().setSize(1600, 1000);
jasmine.getEnv().addReporter(new SpecReporter({
displayFailuresSummary: true,
displayFailedSpec: true,
displayPendingSpec: true,
displaySuiteNumber: true,
displaySpecDuration: true,
colors: {
success: 'green',
failure: 'red',
pending: 'yellow'
},
prefixes: {
success: '✓ ',
failure: '✗ ',
pending: '* '
}
}));
},
jasmineNodeOpts: {
onComplete: null,
isVerbose: true,
showColors: true,
includeStackTrace: true,
defaultTimeoutInterval: 999999,
print: function () { }
},
capabilities: {
browserName: 'chrome',
chromeOptions: {
args: [
'--disable-infobars',
'--privileged'
],
prefs: {
// disable chrome's annoying password manager
'profile.password_manager_enabled': false,
'credentials_enable_service': false,
'password_manager_enabled': false
}
},
restartBrowserBetweenTests: true
},
params: {
baseUrl: 'https://google.com'
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.