Skip to content

Commit

Permalink
test(docs): test 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
hasparus committed Mar 20, 2022
1 parent e513c17 commit 84b424d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/e2e/integration/docs-navigation.ts
Expand Up @@ -62,6 +62,12 @@ describe('docs navigation', () => {

cy.percySnapshot('@theme-ui/color docs')
})

it('displays 404 page', () => {
cy.visit(`/not-found-${Math.random()}`, { failOnStatusCode: false })
cy.findByRole('heading').should('have.text', '404')
cy.findByText('Page not found')
})
})

export {}

0 comments on commit 84b424d

Please sign in to comment.