Last active
May 11, 2017 17:11
-
-
Save rafaelcs/ee3d86709f1434480b1f42fe4fc4d5e9 to your computer and use it in GitHub Desktop.
Protractor conf.js
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
'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