2018-01-10 14:19:34 +01:00
|
|
|
var config = require("../config/specs");
|
|
|
|
var helper = require("./helper");
|
|
|
|
|
|
|
|
|
|
|
|
describe('maputnik', function() {
|
|
|
|
|
2020-05-24 12:13:16 +02:00
|
|
|
before(function(done) {
|
|
|
|
require("./util/webdriverio-ext");
|
|
|
|
helper.startGeoserver(done);
|
|
|
|
});
|
|
|
|
|
|
|
|
after(function(done) {
|
|
|
|
helper.stopGeoserver(done);
|
|
|
|
});
|
|
|
|
|
2018-01-10 14:19:34 +01:00
|
|
|
beforeEach(function() {
|
|
|
|
browser.url(config.baseUrl+"?debug&style="+helper.getStyleUrl([
|
|
|
|
"geojson:example",
|
|
|
|
"raster:raster"
|
|
|
|
]));
|
2019-06-08 07:19:18 +02:00
|
|
|
browser.acceptAlert();
|
2018-08-01 21:59:42 +02:00
|
|
|
browser.execute(function() {
|
|
|
|
localStorage.setItem("survey", true);
|
|
|
|
});
|
2019-06-08 07:19:18 +02:00
|
|
|
const elem = $(".maputnik-toolbar-link");
|
|
|
|
elem.waitForExist();
|
2018-01-10 14:19:34 +01:00
|
|
|
browser.flushReactUpdates();
|
|
|
|
});
|
|
|
|
|
|
|
|
// -------- setup --------
|
|
|
|
require("./util/coverage");
|
|
|
|
// -----------------------
|
|
|
|
|
|
|
|
// ---- All the tests ----
|
|
|
|
require("./history");
|
|
|
|
require("./layers");
|
|
|
|
require("./map");
|
|
|
|
require("./modals");
|
2018-01-17 16:39:17 +01:00
|
|
|
require("./screenshots");
|
2018-01-10 14:19:34 +01:00
|
|
|
// ------------------------
|
|
|
|
|
|
|
|
});
|
|
|
|
|