j40-cejst-2/client/cypress/e2e/latlngurl.spec.js
Nat Hillard 2257627938
Use MapLibre for Map Visualization (#300)
* switching to MapLibre (see more at https://github.com/usds/justice40-tool/issues/299)
* Removing traces of OpenLayers
* Review comments - removing unused properties, component
This is a pre-requisite for addressing issue #280 and other similar control-related tickets
2021-07-07 15:04:00 -04:00

15 lines
500 B
JavaScript

// / <reference types="Cypress" />
describe('LatLng Test', () => {
it('Checks that as the map zooms the lat/lng coordinates in the URL update', () => {
cy.visit('http://localhost:8000/en/cejst?flags=mb');
cy.url().should('include', '#3');
cy.get('.maplibregl-ctrl-zoom-in > .maplibregl-ctrl-icon').click();
cy.url().should('include', '#4');
cy.getMap().then((map) => {
cy.panTo(map, [-77.9, 35.04]);
cy.url().should('include', '#4/35.04/-77.9');
});
});
});