mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-30 21:50:32 +01:00
36 lines
803 B
JavaScript
36 lines
803 B
JavaScript
var config = require("../config/specs");
|
|
var helper = require("./helper");
|
|
|
|
require("./util/webdriverio-ext");
|
|
|
|
|
|
describe('maputnik', function() {
|
|
|
|
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");
|
|
// ------------------------
|
|
|
|
});
|
|
|