diff --git a/test/functional/index.js b/test/functional/index.js index 34d5e626..7f9b5322 100644 --- a/test/functional/index.js +++ b/test/functional/index.js @@ -26,7 +26,7 @@ describe('maputnik', function() { require("./layers"); require("./map"); require("./modals"); - // require("./screenshots"); + require("./screenshots"); // ------------------------ }); diff --git a/test/functional/screenshots/index.js b/test/functional/screenshots/index.js index ad206b48..b64d0c9c 100644 --- a/test/functional/screenshots/index.js +++ b/test/functional/screenshots/index.js @@ -3,8 +3,6 @@ var config = require("../../config/specs"); var helper = require("../helper"); var wd = require("../../wd-helper"); -var SCREENSHOTS_PATH = artifacts.pathSync("/screenshots"); - describe('screenshots', function() { diff --git a/test/functional/util/webdriverio-ext.js b/test/functional/util/webdriverio-ext.js index 2a2edfd1..ee35b486 100644 --- a/test/functional/util/webdriverio-ext.js +++ b/test/functional/util/webdriverio-ext.js @@ -1,6 +1,13 @@ +var artifacts = require("../../artifacts"); +var fs = require("fs"); +var path = require("path"); + + browser.timeoutsAsyncScript(20*1000); browser.timeoutsImplicitWait(20*1000); +var SCREENSHOTS_PATH = artifacts.pathSync("/screenshots"); + /** * Sometimes chrome driver can result in the wrong text. *