mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-14 21:41:40 -07:00
Cypress tests are failing locally (#403)
* adding readme with debug instructions * updating translation tests to pass * fixes failing latlng url test * localizing focus buttons * updating map tests to pass * temporarily setting to only flag critical+ accessibility errors. To be addressed with full accessibility audit later
This commit is contained in:
parent
ab72dc24cf
commit
7b241795fa
8 changed files with 158 additions and 51 deletions
|
@ -1,11 +1,15 @@
|
|||
// / <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');
|
||||
it('URL starts at zoom level 3', () => {
|
||||
cy.visit('http://localhost:8000/en/cejst');
|
||||
cy.url().should('include', '#3');
|
||||
cy.get('.maplibregl-ctrl-zoom-in > .maplibregl-ctrl-icon').click();
|
||||
});
|
||||
it('URL changes to level 4 when you hit the zoom button', () => {
|
||||
cy.get('.mapboxgl-ctrl-zoom-in > .mapboxgl-ctrl-icon').click();
|
||||
cy.url().should('include', '#4');
|
||||
});
|
||||
it('URL includes correct lat/lng coordinates', () => {
|
||||
cy.getMap().then((map) => {
|
||||
cy.panTo(map, [-77.9, 35.04]);
|
||||
cy.url().should('include', '#4/35.04/-77.9');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue