114599: Added e2e test to test the newly added loading component after creating com/col

This commit is contained in:
Kuno Vercammen
2024-04-23 11:39:29 +02:00
parent fb988610db
commit 9bcd816703
2 changed files with 26 additions and 0 deletions

View 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');
});

View 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');
});