From 8e87f8bc3afbf232fdb8c4f95f5e7e427aa317ef Mon Sep 17 00:00:00 2001 From: SPT-dev Date: Thu, 2 Mar 2023 21:12:59 -0500 Subject: [PATCH] tests: fix nginx setup --- items/frontend/src/cypress/integration/url-check.spec.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/items/frontend/src/cypress/integration/url-check.spec.tsx b/items/frontend/src/cypress/integration/url-check.spec.tsx index 802a7dd..22910fc 100644 --- a/items/frontend/src/cypress/integration/url-check.spec.tsx +++ b/items/frontend/src/cypress/integration/url-check.spec.tsx @@ -39,7 +39,7 @@ describe('Url check', () => { describe('Check page not found', () => { it('Invalid url should redirect to page not found', () => { - cy.visit('/ABC') + cy.visit('/ABC', {failOnStatusCode: false}).its('status').should('equal', 404) cy.get('#not-found-message').contains("This page does not exist !"); }) })