mirror of
https://github.com/maputnik/editor.git
synced 2026-02-06 12:40:00 +00:00
* Initial commit * Fix spec * Move driver * Fix config location * Fix helper location * More usage of driver * Add click * Fix click * Migrate more tests * Add setValue to driver * Move more code to driver * add isExisting to driver * Change modal tests to use driver * Fix tests * Fix test * Fix invalid alert wait * Fix missing wd * Fix tests * Fix missing fs * Fix test * Fix path * Move screenshort to driver * Migrate keyboard * Migrate skiplinks to driver * Fix tests * Try fix skip-links * add config * Add helper * Fix driver? * remove helper * remove wd-helper * Remove redundant file * Remove webdriver extsions
27 lines
884 B
JavaScript
27 lines
884 B
JavaScript
var driver = require("../driver");
|
|
|
|
describe("map", function() {
|
|
describe.skip("zoom level", function() {
|
|
it("via url", async function() {
|
|
var zoomLevel = "12.37";
|
|
await driver.setStyle(["geojson:example"], zoomLevel);
|
|
await browser.waitUntil(async function () {
|
|
return (
|
|
await browser.isVisible(".maplibregl-ctrl-zoom")
|
|
&& await browser.getText(".maplibregl-ctrl-zoom") === "Zoom level: "+(zoomLevel)
|
|
);
|
|
}, 10*1000)
|
|
})
|
|
it("via map controls", async function() {
|
|
var zoomLevel = 12.37;
|
|
await driver.setStyle(["geojson:example"], zoomLevel);
|
|
|
|
await driver.click(".maplibregl-ctrl-zoom-in");
|
|
await browser.waitUntil(async function () {
|
|
var text = await browser.getText(".maplibregl-ctrl-zoom")
|
|
return text === "Zoom level: "+(zoomLevel+1);
|
|
}, 10*1000)
|
|
})
|
|
})
|
|
})
|