mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 08:33:24 +02:00
- Added waitUrl helper.
This commit is contained in:
@@ -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'
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user