2021-06-02 20:53:22 -04:00
|
|
|
// / <reference types="Cypress" />
|
|
|
|
|
|
|
|
describe('Translation Test', () => {
|
2021-07-23 08:52:34 -04:00
|
|
|
it('Sets default language to /en and redirects', () => {
|
2021-06-02 20:53:22 -04:00
|
|
|
cy.visit('http://localhost:8000');
|
|
|
|
cy.url().should('include', '/en/');
|
2021-09-01 11:26:49 -07:00
|
|
|
cy.get('[data-cy=about-screen-tool-heading]').contains('About the screening tool');
|
2021-07-23 08:52:34 -04:00
|
|
|
});
|
|
|
|
|
2021-09-01 11:26:49 -07:00
|
|
|
// 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');
|
|
|
|
// });
|
2021-06-02 20:53:22 -04:00
|
|
|
});
|