Skip to content

Commit

Permalink
Allow more time for the fatal error test to complete
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSurgisonGDS committed Jun 1, 2023
1 parent 62a2137 commit 79969aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cypress/e2e/errors/1-error-page-tests/fatal-error.cypress.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ describe('Fatal Error Test', () => {
cy.task('log', `Replace ${appRoutes} with Broken routes`)
cy.task('copyFile', { source: completelyBrokenRoutesFixture, target: appRoutes })

cy.wait(5000)

cy.get('.govuk-heading-l').contains(pageName)
cy.get('.govuk-body .govuk-link').contains(contactSupportText)
cy.get('#govuk-prototype-kit-error-file').contains(expectedErrorFileAndLine)
Expand All @@ -37,6 +39,8 @@ describe('Fatal Error Test', () => {
cy.task('log', `Restore ${appRoutes} with original routes`)
restore()

cy.wait(5000)

cy.get('.govuk-heading-l').contains(homePageName)
})
})

0 comments on commit 79969aa

Please sign in to comment.