Skip to content

Commit

Permalink
added in test for max zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Grimes authored and oliviasculley committed Oct 30, 2023
1 parent 93f4a9e commit c0cf6d2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cypress/e2e/map.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ describe("Map", () => {
cy.url().should("contain", "zoom=11");
});

it("zooms the map in with scroll wheel and attempts to surpass the max zoom", () => {
loadMap("/?zoom=18");

cy.get(".leaflet-container").scrollLeaflet({ deltaY: -66.666666 });

cy.url().should("contain", "zoom=18");
});

it("unzooms the map with zoom out button and changes URL", () => {
loadMap("/?zoom=10");

Expand Down

0 comments on commit c0cf6d2

Please sign in to comment.