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 beforeEach(function() {
18 cy.clearLocalStorage()
21 it('shows not found page', function() {
23 cy.loginAs(adminUser);
24 cy.goToPath(`/this/is/an/invalid/route`);
27 cy.get('[data-cy=not-found-page]').should('exist');
28 cy.get('[data-cy=not-found-content]').should('exist');
32 it('shows not found popup', function() {
34 const notExistingUUID = 'zzzzz-tpzed-5o5tg0l9a57gxxx';
37 cy.loginAs(adminUser);
38 cy.goToPath(`/projects/${notExistingUUID}`);
41 cy.get('[data-cy=not-found-content]').should('exist');
42 cy.get('[data-cy=not-found-page]').should('not.exist');