diff --git a/cypress/e2e/error-pages.cy.js b/cypress/e2e/error-pages.cy.js index 25b94e55dc..567cb890ad 100644 --- a/cypress/e2e/error-pages.cy.js +++ b/cypress/e2e/error-pages.cy.js @@ -2,6 +2,7 @@ describe('Error pages', () => { it('shows for 404s', () => { cy.visit('/not-a-real-page', { failOnStatusCode: false }); cy.contains('Page not found'); + cy.contains('Welsh').should('not.exist'); cy.checkA11yApp(); cy.visit('/lpa', { failOnStatusCode: false }); @@ -19,6 +20,7 @@ describe('Error pages', () => { cy.visitLpa('/payment-confirmation', { failOnStatusCode: false }); cy.contains('Sorry, there is a problem with the service'); + cy.contains('Welsh').should('not.exist'); cy.checkA11yApp(); }); @@ -32,5 +34,6 @@ describe('Error pages', () => { cy.contains('button', 'Save and continue').click(); cy.contains('Sorry, there is a problem with the service'); + cy.contains('Welsh').should('not.exist'); }); }); diff --git a/web/template/error-500.gohtml b/web/template/error-500.gohtml index 579c35aa65..88407f9795 100644 --- a/web/template/error-500.gohtml +++ b/web/template/error-500.gohtml @@ -1,6 +1,7 @@ {{ template "page" . }} {{ define "pageTitle" }}{{ tr .App "sorryProblem" }}{{ end }} +{{ define "languageSwitch" }}{{ end }} {{ define "main" }}