mirror of
https://github.com/maputnik/editor.git
synced 2025-12-10 16:20:01 +00:00
I've moved all the logic relevant to WBIO into a single file in order to be able to replace it. I have tried to upgrade WDIO in order to use the latest version and it got stuck on my computer. Furthermore, I was not able to run it locally which made this whole cycle very long. After this will be merged I will replace WDIO with cypress. This doesn't change anything, only moves some code in the tests to a single file, removes unneeded files and uses the driver pattern, which will later allow switching the underline WDIO with Cypress. cc: @nyurik
36 lines
785 B
JavaScript
36 lines
785 B
JavaScript
var driver = require("./driver");
|
|
|
|
describe('maputnik', function() {
|
|
|
|
before(async function(done) {
|
|
await browser.setTimeout({ 'script': 20 * 1000 });
|
|
await browser.setTimeout({ 'implicit': 20 * 1000 });
|
|
driver.geoserver.start(done);
|
|
});
|
|
|
|
after(function(done) {
|
|
driver.geoserver.stop(done);
|
|
});
|
|
|
|
beforeEach(async function() {
|
|
await driver.setStyle(["geojson:example","raster:raster"]);
|
|
await driver.setSurvey();
|
|
});
|
|
|
|
// -------- setup --------
|
|
require("./util/coverage");
|
|
// -----------------------
|
|
|
|
// ---- All the tests ----
|
|
require("./history");
|
|
require("./layers");
|
|
require("./map");
|
|
require("./modals");
|
|
require("./screenshots");
|
|
require("./accessibility");
|
|
require("./keyboard");
|
|
// ------------------------
|
|
|
|
});
|
|
|