Skip to content

Commit

Permalink
Test unknown route as nested route to 'home'
Browse files Browse the repository at this point in the history
  • Loading branch information
saulipurhonen committed Mar 31, 2021
1 parent c1c3af4 commit c371fd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cypress/integration/errorPages.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ describe("catch error codes and display corresponding error page", function () {
})

it("should redirect to 404 page on unknown route", () => {
cy.visit(baseUrl + "unknownroute")
cy.visit(baseUrl)
cy.get('[alt="CSC Login"]').click()
cy.visit(baseUrl + "home/unknownroute")
cy.contains(".MuiAlert-message", "404 Not Found")
})

Expand Down

0 comments on commit c371fd3

Please sign in to comment.