mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 10:04:18 -08:00
* 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
15 lines
500 B
JavaScript
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');
|
|
});
|
|
});
|
|
});
|
|
|