mirror of
https://github.com/maputnik/editor.git
synced 2026-02-06 20:50:12 +00:00
26 lines
777 B
TypeScript
26 lines
777 B
TypeScript
import driver from "./driver";
|
|
|
|
describe("map", () => {
|
|
describe("zoom level", () => {
|
|
beforeEach(() => {
|
|
driver.beforeEach();
|
|
});
|
|
it("via url", () => {
|
|
var zoomLevel = 12.37;
|
|
driver.setStyle("geojson", zoomLevel);
|
|
driver.isDisplayedInViewport(".maplibregl-ctrl-zoom");
|
|
// HM TODO
|
|
//driver.getText(".maplibregl-ctrl-zoom") === "Zoom "+(zoomLevel);
|
|
})
|
|
it("via map controls", () => {
|
|
var zoomLevel = 12.37;
|
|
driver.setStyle("geojson", zoomLevel);
|
|
|
|
driver.click(".maplibregl-ctrl-zoom-in");
|
|
driver.isDisplayedInViewport(".maplibregl-ctrl-zoom");
|
|
// HM TODO
|
|
//driver.getText(".maplibregl-ctrl-zoom") === "Zoom "+(zoomLevel + 1);
|
|
})
|
|
})
|
|
})
|