mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-02-24 07:12:54 +08:00
Appium tests: tweaking some timeouts and default screenshot path
This commit is contained in:
parent
c5f5a46e3e
commit
1348d2e138
@ -588,5 +588,5 @@ describe('Camera tests Android.', function () {
|
||||
|
||||
it('camera.ui.util Destroy the session', function (done) {
|
||||
return driver.quit(done);
|
||||
}, 10000);
|
||||
}, MINUTE);
|
||||
});
|
||||
|
@ -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);
|
||||
});
|
||||
|
@ -284,5 +284,5 @@ describe('Camera tests iOS.', function () {
|
||||
|
||||
it('camera.ui.util.4 Destroy the session', function (done) {
|
||||
driver.quit(done);
|
||||
}, 10000);
|
||||
}, MINUTE);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user