X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/cf83b358f087a87b5ff095d3ed7a8c6920c60ffe..fcfb353fa27b5399e44f32944e0d53015b89a3b8:/cypress/integration/page-not-found.spec.js diff --git a/cypress/integration/page-not-found.spec.js b/cypress/integration/page-not-found.spec.js index 3dd15a6797..5d6a26b7d6 100644 --- a/cypress/integration/page-not-found.spec.js +++ b/cypress/integration/page-not-found.spec.js @@ -19,12 +19,9 @@ describe('Page not found tests', function() { }); it('shows not found page', function() { - // given - const invalidUUID = '1212r12r12r12r12r12r21r' - // when cy.loginAs(adminUser); - cy.visit(`/collections/${invalidUUID}`); + cy.goToPath(`/this/is/an/invalid/route`); // then cy.get('[data-cy=not-found-page]').should('exist'); @@ -38,10 +35,10 @@ describe('Page not found tests', function() { // when cy.loginAs(adminUser); - cy.visit(`/projects/${notExistingUUID}`); + cy.goToPath(`/projects/${notExistingUUID}`); // then - cy.get('[data-cy=not-found-page]').should('not.exist'); cy.get('[data-cy=not-found-content]').should('exist'); + cy.get('[data-cy=not-found-page]').should('not.exist'); }); }) \ No newline at end of file