2021-06-02 20:53:22 -04:00
|
|
|
// / <reference types="Cypress" />
|
|
|
|
|
2022-04-07 13:14:54 -04:00
|
|
|
import {PAGES_ENDPOINTS} from './constants';
|
|
|
|
|
|
|
|
describe('Navigate to each endpoint', () => {
|
|
|
|
Object.values(PAGES_ENDPOINTS).map((endpoint) =>
|
|
|
|
it(`for the ${endpoint} page, it adds /en and redirects`, () => {
|
|
|
|
cy.visit(endpoint);
|
|
|
|
cy.url().should('include', '/en/');
|
|
|
|
}),
|
|
|
|
);
|
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
|
|
|
});
|