Appium tests: tweaking some timeouts and default screenshot path

This commit is contained in:
Alexander Sorokin
2016-03-10 13:27:34 +03:00
parent c5f5a46e3e
commit 1348d2e138
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -23,7 +23,7 @@
'use strict';
var path = require('path');
var screenshotPath = global.SCREENSHOT_PATH || path.join(__dirname, '../../appium_screenshots/');
var screenshotPath = global.SCREENSHOT_PATH || path.join(__dirname, '../../../appium_screenshots/');
function generateScreenshotName() {
var date = new Date();
@@ -51,7 +51,7 @@ module.exports.saveScreenshot = function (driver) {
oldContext = cc;
})
.context('NATIVE_APP')
.saveScreenshot(screenshotPath + generateScreenshotName())
.saveScreenshot(path.join(screenshotPath, generateScreenshotName()))
.then(function () {
return driver.context(oldContext);
});