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 const invalidUUID = '1212r12r12r12r12r12r21r'
26 cy.loginAs(adminUser);
27 cy.visit(`/collections/${invalidUUID}`);
30 cy.get('[data-cy=not-found-page]').should('exist');
31 cy.get('[data-cy=not-found-content]').should('exist');
35 it('shows not found popup', function() {
37 const notExistingUUID = 'zzzzz-tpzed-5o5tg0l9a57gxxx';
40 cy.loginAs(adminUser);
41 cy.visit(`/projects/${notExistingUUID}`);
44 cy.get('[data-cy=not-found-page]').should('not.exist');
45 cy.get('[data-cy=not-found-content]').should('exist');