- Refactored device button states so they can be tested.

- Added e2e test for Navigation.
This commit is contained in:
Gunther Brunner
2014-08-27 21:44:04 +09:00
parent 9a8fa2dd3e
commit ea27e1b549
10 changed files with 188 additions and 125 deletions

View File

@@ -6,12 +6,12 @@ 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'
}
@@ -21,17 +21,17 @@ config.multiCapabilities = [
// add appium/sauce labs
]
config.onPrepare = function () {
var loginPage = new LoginPage()
loginPage.doLogin()
loginPage.cleanUp()
var waitUrl = WaitUrl
jasmine.getEnv().addReporter(new HtmlReporter({
baseDirectory: './res/test/test_out/screenshots'
}))
}
//config.onPrepare = function () {
// var loginPage = new LoginPage()
// loginPage.doLogin()
// loginPage.cleanUp()
//
// this.waitUrl = WaitUrl
//
// jasmine.getEnv().addReporter(new HtmlReporter({
// baseDirectory: './res/test/test_out/screenshots'
// }))
//}
exports.config = config