mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 18:14:19 -08:00
* integrate gherkin/cucumber w/ cypress - change cypress.json config from e2e back to standard integration - add cypress-cucumber-preprocessor - add integration test of about page * add a title to each page * add intl to the 404 page * Refactor explore tool page - add intl to static strings - replace component css with <Grid> layout * Add title to contact page * add intl to title of page * Add gherkin tests for nav to about page - navigate from any page to the about page - ensure each link has the title correct on that page
15 lines
541 B
JavaScript
15 lines
541 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-screen-tool-heading]').contains('About the screening tool');
|
|
});
|
|
|
|
// 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');
|
|
// });
|
|
});
|