mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
114599: Updated the e2e tests so they succeed
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
beforeEach(() => {
|
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'));
|
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('button[type="submit"]').click();
|
||||||
|
|
||||||
cy.get('ds-themed-loading').should('be.visible');
|
cy.get('ds-loading').should('be.visible');
|
||||||
});
|
});
|
||||||
|
@@ -9,5 +9,5 @@ it('should show loading component while saving', () => {
|
|||||||
|
|
||||||
cy.get('button[type="submit"]').click();
|
cy.get('button[type="submit"]').click();
|
||||||
|
|
||||||
cy.get('ds-themed-loading').should('be.visible');
|
cy.get('ds-loading').should('be.visible');
|
||||||
});
|
});
|
||||||
|
@@ -1,4 +1,7 @@
|
|||||||
import { AsyncPipe, NgIf } from '@angular/common';
|
import {
|
||||||
|
AsyncPipe,
|
||||||
|
NgIf,
|
||||||
|
} from '@angular/common';
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import {
|
import {
|
||||||
@@ -16,7 +19,6 @@ import { CreateComColPageComponent } from '../../shared/comcol/comcol-forms/crea
|
|||||||
import { ThemedLoadingComponent } from '../../shared/loading/themed-loading.component';
|
import { ThemedLoadingComponent } from '../../shared/loading/themed-loading.component';
|
||||||
import { NotificationsService } from '../../shared/notifications/notifications.service';
|
import { NotificationsService } from '../../shared/notifications/notifications.service';
|
||||||
import { CollectionFormComponent } from '../collection-form/collection-form.component';
|
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
|
* 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,
|
TranslateModule,
|
||||||
AsyncPipe,
|
AsyncPipe,
|
||||||
ThemedLoadingComponent,
|
ThemedLoadingComponent,
|
||||||
LoadingComponent,
|
|
||||||
NgIf,
|
NgIf,
|
||||||
],
|
],
|
||||||
standalone: true,
|
standalone: true,
|
||||||
|
@@ -19,7 +19,6 @@ import { ThemedLoadingComponent } from '../../shared/loading/themed-loading.comp
|
|||||||
import { NotificationsService } from '../../shared/notifications/notifications.service';
|
import { NotificationsService } from '../../shared/notifications/notifications.service';
|
||||||
import { VarDirective } from '../../shared/utils/var.directive';
|
import { VarDirective } from '../../shared/utils/var.directive';
|
||||||
import { CommunityFormComponent } from '../community-form/community-form.component';
|
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
|
* 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,
|
NgIf,
|
||||||
AsyncPipe,
|
AsyncPipe,
|
||||||
ThemedLoadingComponent,
|
ThemedLoadingComponent,
|
||||||
LoadingComponent,
|
|
||||||
],
|
],
|
||||||
standalone: true,
|
standalone: true,
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user