mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-27 10:25:27 +01:00
3727c9ad5e
Fixes #814 * fix: remove outdated references to mapbox * docs: fix references in readme * chore: fix mapbox references in tests * chore: fix mapbox references in stories, webpack config * chore: remove empty array
35 lines
1.1 KiB
JavaScript
35 lines
1.1 KiB
JavaScript
var config = require("../../config/specs");
|
|
var helper = require("../helper");
|
|
|
|
|
|
describe("map", function() {
|
|
describe.skip("zoom level", function() {
|
|
it("via url", async function() {
|
|
var zoomLevel = "12.37"
|
|
await browser.url(config.baseUrl+"?debug&style="+helper.getStyleUrl([
|
|
"geojson:example"
|
|
])+"#"+zoomLevel+"/41.3805/2.1635");
|
|
await browser.alertAccept();
|
|
|
|
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 browser.url(config.baseUrl+"?debug&style="+helper.getStyleUrl([
|
|
"geojson:example"
|
|
])+"#"+zoomLevel+"/41.3805/2.1635");
|
|
await browser.alertAccept();
|
|
|
|
await browser.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)
|
|
})
|
|
})
|
|
})
|