Skip to content

Instantly share code, notes, and snippets.

@klamping
Created March 15, 2018 16:27
Show Gist options
  • Save klamping/ed460cefa96c92beab999556fdbf9c4b to your computer and use it in GitHub Desktop.
Save klamping/ed460cefa96c92beab999556fdbf9c4b to your computer and use it in GitHub Desktop.
WDIO BaseURL Customization
// This is the base wdio.conf.js file with all your commong configs
exports.config = {
specs: [
'./test/specs/**/*.js'
],
capabilities: [{
browserName: 'firefox'
}],
// ... more configs here ...
}
const wdioConfig = require('../wdio.conf.js').config;
const webConfig = {
...wdioConfig,
baseUrl: 'http://website1.com',
specs: [
// you can use custom specs here
'./test/specs/**/*.js'
],
};
exports.config = webConfig;
const wdioConfig = require('../wdio.conf.js').config;
const webConfig = {
...wdioConfig,
baseUrl: 'http://website2.com',
specs: [
// you can use custom specs here
'./test/specs/**/*.js'
],
};
exports.config = webConfig;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment