mirror of
https://github.com/maputnik/editor.git
synced 2026-02-09 06:00:09 +00:00
25 lines
776 B
TypeScript
25 lines
776 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);
|
|
})
|
|
})
|
|
}) |