From 272907ed21b66b72144237bf54a5347051f8693c Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Mon, 4 Apr 2022 12:15:16 -0300 Subject: [PATCH] 18966: Expands test to expose the bug and cover other cases. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- cypress/integration/page-not-found.spec.js | 26 ++++++++++++++-------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/cypress/integration/page-not-found.spec.js b/cypress/integration/page-not-found.spec.js index 5d6a26b7..4df4135c 100644 --- a/cypress/integration/page-not-found.spec.js +++ b/cypress/integration/page-not-found.spec.js @@ -31,14 +31,22 @@ describe('Page not found tests', function() { it('shows not found popup', function() { // given - const notExistingUUID = 'zzzzz-tpzed-5o5tg0l9a57gxxx'; - - // when - cy.loginAs(adminUser); - cy.goToPath(`/projects/${notExistingUUID}`); - - // then - cy.get('[data-cy=not-found-content]').should('exist'); - cy.get('[data-cy=not-found-page]').should('not.exist'); + [ + '/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. + cy.loginAs(adminUser); + + // when + cy.goToPath(path); + + // then + cy.get('[data-cy=not-found-page]').should('not.exist'); + cy.get('[data-cy=not-found-content]').should('exist'); + }); }); }) \ No newline at end of file -- 2.30.2