Created
March 15, 2018 16:27
-
-
Save klamping/ed460cefa96c92beab999556fdbf9c4b to your computer and use it in GitHub Desktop.
WDIO BaseURL Customization
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 ... | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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