mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-29 21:20:27 +01:00
ce731e7d6b
Also - Fixed screenshot tests - Fixed code coverage - Removed appveyor - Removed circleci - Updated wdio related dependencies - Added docker image deploy to the GitHub registry
43 lines
936 B
JavaScript
43 lines
936 B
JavaScript
var config = require("../config/specs");
|
|
var helper = require("./helper");
|
|
|
|
|
|
describe('maputnik', function() {
|
|
|
|
before(function(done) {
|
|
require("./util/webdriverio-ext");
|
|
helper.startGeoserver(done);
|
|
});
|
|
|
|
after(function(done) {
|
|
helper.stopGeoserver(done);
|
|
});
|
|
|
|
beforeEach(function() {
|
|
browser.url(config.baseUrl+"?debug&style="+helper.getStyleUrl([
|
|
"geojson:example",
|
|
"raster:raster"
|
|
]));
|
|
browser.acceptAlert();
|
|
browser.execute(function() {
|
|
localStorage.setItem("survey", true);
|
|
});
|
|
const elem = $(".maputnik-toolbar-link");
|
|
elem.waitForExist();
|
|
browser.flushReactUpdates();
|
|
});
|
|
|
|
// -------- setup --------
|
|
require("./util/coverage");
|
|
// -----------------------
|
|
|
|
// ---- All the tests ----
|
|
require("./history");
|
|
require("./layers");
|
|
require("./map");
|
|
require("./modals");
|
|
require("./screenshots");
|
|
// ------------------------
|
|
|
|
});
|
|
|