Fixed screenshots.

This commit is contained in:
orangemug 2018-01-17 15:39:17 +00:00
parent 1eb6c28617
commit ad34147f28
3 changed files with 8 additions and 3 deletions

View file

@ -26,7 +26,7 @@ describe('maputnik', function() {
require("./layers");
require("./map");
require("./modals");
// require("./screenshots");
require("./screenshots");
// ------------------------
});

View file

@ -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() {

View file

@ -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.
*