j40-cejst-2/client/cypress/e2e/language.spec.js
Nat Hillard 7b241795fa
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
2021-07-23 08:52:34 -04:00

14 lines
437 B
JavaScript

// / <reference types="Cypress" />
describe('Translation Test', () => {
it('Sets default language to /en and redirects', () => {
cy.visit('http://localhost:8000');
cy.url().should('include', '/en/');
cy.get('h1').contains('About Justice40');
});
it('Sets page content to spanish when visiting Spanish URL', () => {
cy.visit('http://localhost:8000/es');
cy.get('h1').contains('Acerca de Justice40');
});
});