X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ba850047c085520c9604ffa6cb2e763b5500d135..409d38425d383c81606220782f1abe9cd014aab5:/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