refactor e2e test scripts

This commit is contained in:
Sefa Ilkimen
2019-11-14 02:06:33 +01:00
parent 594d03aa41
commit 21bec76c11
8 changed files with 174 additions and 165 deletions
+17
View File
@@ -0,0 +1,17 @@
module.exports = { getServer };
const configs = {
local: {
host: 'localhost',
port: 4723
},
saucelabs: {
host: 'ondemand.saucelabs.com',
port: 80,
auth: process.env.SAUCE_USERNAME + ":" + process.env.SAUCE_ACCESS_KEY
}
}
function getServer(environment) {
return configs[environment.toLowerCase()];
}