Skip to content

Commit 9bcd816

Browse files
author
Kuno Vercammen
committed
114599: Added e2e test to test the newly added loading component after creating com/col
1 parent fb98861 commit 9bcd816

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
beforeEach(() => {
2+
cy.visit('/collections/create');
3+
cy.loginViaForm(Cypress.env('DSPACE_TEST_ADMIN_USER'), Cypress.env('DSPACE_TEST_ADMIN_PASSWORD'));
4+
});
5+
6+
it('should show loading component while saving', () => {
7+
const title = 'Test Collection Title';
8+
cy.get('#title').type(title);
9+
10+
cy.get('button[type="submit"]').click();
11+
12+
cy.get('ds-themed-loading').should('be.visible');
13+
});

cypress/e2e/community-create.cy.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
beforeEach(() => {
2+
cy.visit('/communities/create');
3+
cy.loginViaForm(Cypress.env('DSPACE_TEST_ADMIN_USER'), Cypress.env('DSPACE_TEST_ADMIN_PASSWORD'));
4+
});
5+
6+
it('should show loading component while saving', () => {
7+
const title = 'Test Community Title';
8+
cy.get('#title').type(title);
9+
10+
cy.get('button[type="submit"]').click();
11+
12+
cy.get('ds-themed-loading').should('be.visible');
13+
});

0 commit comments

Comments
 (0)