1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 describe('Page not found tests', function() {
9 cy.getUser('admin', 'Admin', 'User', true, true)
10 .as('adminUser').then(function() {
11 adminUser = this.adminUser;
16 it('shows not found page', function() {
18 cy.loginAs(adminUser);
19 cy.goToPath(`/this/is/an/invalid/route`);
22 cy.get('[data-cy=not-found-page]').should('exist');
23 cy.get('[data-cy=not-found-content]').should('exist');
27 it('shows not found popup', function() {
30 '/projects/zzzzz-j7d0g-nonexistingproj',
31 '/projects/zzzzz-tpzed-nonexistinguser',
32 ].forEach(function(path) {
33 // Using de slower loginAs() method to avoid bumping into dialog
34 // dismissal issues that are not related to this test.
35 cy.loginAs(adminUser);
41 cy.get('[data-cy=default-view]').should('exist');
45 '/processes/zzzzz-xvhdp-nonexistingproc',
46 '/collections/zzzzz-4zz18-nonexistingcoll'
47 ].forEach(function(path) {
48 cy.loginAs(adminUser);
52 cy.get('[data-cy=not-found-view]').should('exist');