2017-12-02 04:38:16 +08:00
|
|
|
let merge = require('deepmerge');
|
|
|
|
let wdioBaseConf = require('./wdio.base.conf');
|
2017-09-19 09:09:21 +08:00
|
|
|
|
2017-12-02 00:35:09 +08:00
|
|
|
exports.config = merge(wdioBaseConf.config, {
|
2017-09-19 09:09:21 +08:00
|
|
|
|
2017-10-28 04:37:45 +08:00
|
|
|
specs: ['tests/webdriverio/specs/acceptance/**/*.spec.js'],
|
2017-12-02 00:35:09 +08:00
|
|
|
|
2017-08-14 22:03:43 +08:00
|
|
|
capabilities: {
|
|
|
|
chromeBrowser: {
|
2017-08-21 23:42:10 +08:00
|
|
|
desiredCapabilities: {
|
|
|
|
browserName: 'chrome'
|
|
|
|
}
|
|
|
|
},
|
2017-08-14 22:03:43 +08:00
|
|
|
firefoxBrowser: {
|
|
|
|
desiredCapabilities: {
|
|
|
|
browserName: 'firefox'
|
|
|
|
}
|
2017-08-21 23:42:10 +08:00
|
|
|
},
|
2017-08-28 23:52:15 +08:00
|
|
|
chromeMobileBrowser: {
|
|
|
|
desiredCapabilities: {
|
|
|
|
browserName: 'chrome',
|
|
|
|
chromeOptions: {
|
|
|
|
mobileEmulation: {
|
2017-10-28 07:36:54 +08:00
|
|
|
deviceName: 'iPhone 6'
|
2017-08-28 23:52:15 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-08-14 22:03:43 +08:00
|
|
|
}
|
|
|
|
},
|
2017-12-02 00:35:09 +08:00
|
|
|
|
2017-06-03 08:25:39 +08:00
|
|
|
suites: {
|
|
|
|
login: [
|
2017-10-28 04:37:45 +08:00
|
|
|
'tests/webdriverio/specs/acceptance/login.spec.js',
|
2017-06-03 08:25:39 +08:00
|
|
|
],
|
|
|
|
},
|
2017-08-17 00:31:49 +08:00
|
|
|
before: function() {
|
|
|
|
// make the properties that browsers share and the list of browserNames available:
|
|
|
|
browser.remotes = Object.keys(exports.config.capabilities);
|
|
|
|
browser.baseUrl = exports.config.baseUrl;
|
|
|
|
},
|
2017-12-02 00:35:09 +08:00
|
|
|
});
|
2017-05-15 09:29:00 +08:00
|
|
|
|