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');
56 it('shows not found popup in workflow tab', function() {
58 owningUser: adminUser,
59 projectName: 'test-project',
61 cy.loginAs(adminUser);
64 cy.get('[data-cy=project-panel]').contains("test-project").click();
66 cy.get('[data-cy=mpv-tabs]').contains("Workflow Runs").click();
67 cy.contains('No workflow runs found').should('exist');