114599: Updated the e2e tests so they succeed

This commit is contained in:
Kuno Vercammen
2024-05-02 11:47:12 +02:00
parent 6ff3a40929
commit 20146bdcef
4 changed files with 7 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
beforeEach(() => {
cy.visit('/collections/create');
cy.visit('/collections/create?parent='.concat(Cypress.env('DSPACE_TEST_COMMUNITY')));
cy.loginViaForm(Cypress.env('DSPACE_TEST_ADMIN_USER'), Cypress.env('DSPACE_TEST_ADMIN_PASSWORD'));
});
@@ -9,5 +9,5 @@ it('should show loading component while saving', () => {
cy.get('button[type="submit"]').click();
cy.get('ds-themed-loading').should('be.visible');
cy.get('ds-loading').should('be.visible');
});

View File

@@ -9,5 +9,5 @@ it('should show loading component while saving', () => {
cy.get('button[type="submit"]').click();
cy.get('ds-themed-loading').should('be.visible');
cy.get('ds-loading').should('be.visible');
});

View File

@@ -1,4 +1,7 @@
import { AsyncPipe, NgIf } from '@angular/common';
import {
AsyncPipe,
NgIf,
} from '@angular/common';
import { Component } from '@angular/core';
import { Router } from '@angular/router';
import {
@@ -16,7 +19,6 @@ import { CreateComColPageComponent } from '../../shared/comcol/comcol-forms/crea
import { ThemedLoadingComponent } from '../../shared/loading/themed-loading.component';
import { NotificationsService } from '../../shared/notifications/notifications.service';
import { CollectionFormComponent } from '../collection-form/collection-form.component';
import { LoadingComponent } from '../../../themes/custom/app/shared/loading/loading.component';
/**
* Component that represents the page where a user can create a new Collection
@@ -30,7 +32,6 @@ import { LoadingComponent } from '../../../themes/custom/app/shared/loading/load
TranslateModule,
AsyncPipe,
ThemedLoadingComponent,
LoadingComponent,
NgIf,
],
standalone: true,

View File

@@ -19,7 +19,6 @@ import { ThemedLoadingComponent } from '../../shared/loading/themed-loading.comp
import { NotificationsService } from '../../shared/notifications/notifications.service';
import { VarDirective } from '../../shared/utils/var.directive';
import { CommunityFormComponent } from '../community-form/community-form.component';
import { LoadingComponent } from '../../../themes/custom/app/shared/loading/loading.component';
/**
* Component that represents the page where a user can create a new Community
@@ -35,7 +34,6 @@ import { LoadingComponent } from '../../../themes/custom/app/shared/loading/load
NgIf,
AsyncPipe,
ThemedLoadingComponent,
LoadingComponent,
],
standalone: true,
})