mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
114599: Added e2e test to test the newly added loading component after creating com/col
This commit is contained in:
13
cypress/e2e/collection-create.cy.ts
Normal file
13
cypress/e2e/collection-create.cy.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
beforeEach(() => {
|
||||
cy.visit('/collections/create');
|
||||
cy.loginViaForm(Cypress.env('DSPACE_TEST_ADMIN_USER'), Cypress.env('DSPACE_TEST_ADMIN_PASSWORD'));
|
||||
});
|
||||
|
||||
it('should show loading component while saving', () => {
|
||||
const title = 'Test Collection Title';
|
||||
cy.get('#title').type(title);
|
||||
|
||||
cy.get('button[type="submit"]').click();
|
||||
|
||||
cy.get('ds-themed-loading').should('be.visible');
|
||||
});
|
13
cypress/e2e/community-create.cy.ts
Normal file
13
cypress/e2e/community-create.cy.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
beforeEach(() => {
|
||||
cy.visit('/communities/create');
|
||||
cy.loginViaForm(Cypress.env('DSPACE_TEST_ADMIN_USER'), Cypress.env('DSPACE_TEST_ADMIN_PASSWORD'));
|
||||
});
|
||||
|
||||
it('should show loading component while saving', () => {
|
||||
const title = 'Test Community Title';
|
||||
cy.get('#title').type(title);
|
||||
|
||||
cy.get('button[type="submit"]').click();
|
||||
|
||||
cy.get('ds-themed-loading').should('be.visible');
|
||||
});
|
Reference in New Issue
Block a user