X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/65e6fa3de6c5e921e30044c66ed494456d965c59..6b9cb6715bb7c04b2a425bc28b41a51f8a273a7a:/services/workbench2/cypress/e2e/page-not-found.cy.js diff --git a/services/workbench2/cypress/e2e/page-not-found.cy.js b/services/workbench2/cypress/e2e/page-not-found.cy.js index e147d740d3..7cffd1079b 100644 --- a/services/workbench2/cypress/e2e/page-not-found.cy.js +++ b/services/workbench2/cypress/e2e/page-not-found.cy.js @@ -29,8 +29,6 @@ describe('Page not found tests', function() { [ '/projects/zzzzz-j7d0g-nonexistingproj', '/projects/zzzzz-tpzed-nonexistinguser', - '/processes/zzzzz-xvhdp-nonexistingproc', - '/collections/zzzzz-4zz18-nonexistingcoll' ].forEach(function(path) { // Using de slower loginAs() method to avoid bumping into dialog // dismissal issues that are not related to this test. @@ -40,6 +38,17 @@ describe('Page not found tests', function() { cy.goToPath(path); // then + cy.get('[data-cy=default-view]').should('exist'); + }); + + [ + '/processes/zzzzz-xvhdp-nonexistingproc', + '/collections/zzzzz-4zz18-nonexistingcoll' + ].forEach(function(path) { + cy.loginAs(adminUser); + + cy.goToPath(path); + cy.get('[data-cy=not-found-view]').should('exist'); }); });