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 = { setupLogging };
function setupLogging(driver) {
require('colors');
driver.on('status', info => {
console.log(info.cyan);
});
driver.on('command', (meth, path, data) => {
console.log(' > ' + meth.yellow, path.grey, data || '');
});
driver.on('http', (meth, path, data) => {
console.log(' > ' + meth.magenta, path, (data || '').grey);
});
}