mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 15:55:16 +02:00
- Refactored device button states so they can be tested.
- Added e2e test for Navigation.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user