maputnik/test/functional/index.js

47 lines
1.1 KiB
JavaScript
Raw Normal View History

2018-01-10 14:19:34 +01:00
var config = require("../config/specs");
var helper = require("./helper");
var extendWebdriverIO = require("./util/webdriverio-ext");
2018-01-10 14:19:34 +01:00
describe('maputnik', function() {
before(async function(done) {
await extendWebdriverIO();
helper.startGeoserver(done);
});
after(function(done) {
helper.stopGeoserver(done);
});
beforeEach(async function() {
await browser.url(config.baseUrl+"?debug&style="+helper.getStyleUrl([
2018-01-10 14:19:34 +01:00
"geojson:example",
"raster:raster"
]));
await browser.acceptAlert();
await browser.execute(function() {
localStorage.setItem("survey", true);
});
const elem = await $(".maputnik-toolbar-link");
await elem.waitForExist();
await browser.flushReactUpdates();
2018-01-10 14:19:34 +01:00
});
// -------- 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");
2020-05-31 16:33:09 +02:00
require("./accessibility");
require("./keyboard");
2018-01-10 14:19:34 +01:00
// ------------------------
});