j40-cejst-2/client/cypress/integration/LegacyTests/language.spec.js
Vim 819113ceb7
Fix all failing cypress tests (#774)
* Fix all failing cypress tests

- update test name to be more appropriate
- update download packet tests to CDN
- update data-cy tag on About heading

* Update snapshot
2021-10-05 12:52:03 -07:00

15 lines
515 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('[data-cy=about-page-heading]').contains('About');
});
// Todo VS: Understand how to create es content
// it('Sets page content to spanish when visiting Spanish URL', () => {
// cy.visit('http://localhost:8000/es');
// cy.get('h1').contains('Acerca de Justice40');
// });
});