- Added waitUrl helper.

This commit is contained in:
Gunther Brunner
2014-08-27 16:34:47 +09:00
parent b1afa8076c
commit 5941030743
5 changed files with 50 additions and 7 deletions

View File

@@ -1,15 +1,17 @@
var config = require('./protractor.conf').config
var LoginPage = require('./e2e/login')
var HtmlReporter = require('protractor-html-screenshot-reporter')
var WaitUrl = require('./e2e/helpers/wait-url')
config.chromeOnly = false
config.capabilities = null
config.multiCapabilities = [
{
browserName: 'chrome',
chromeOptions: {
args: ['--test-type'] // Prevent security warning bug in ChromeDriver
}
},
//{
// browserName: 'chrome',
// chromeOptions: {
// args: ['--test-type'] // Prevent security warning bug in ChromeDriver
// }
//},
{
browserName: 'firefox'
}
@@ -24,6 +26,8 @@ config.onPrepare = function () {
loginPage.doLogin()
loginPage.cleanUp()
var waitUrl = WaitUrl
jasmine.getEnv().addReporter(new HtmlReporter({
baseDirectory: './res/test/test_out/screenshots'
}))