Skip to content

Commit

Permalink
114599: Added e2e test to test the newly added loading component afte…
Browse files Browse the repository at this point in the history
…r creating com/col
  • Loading branch information
Kuno Vercammen committed Apr 23, 2024
1 parent 3922e73 commit 798b83e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cypress/e2e/collection-create.cy.ts
Original file line number Diff line number Diff line change
@@ -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 changes: 13 additions & 0 deletions cypress/e2e/community-create.cy.ts
Original file line number Diff line number Diff line change
@@ -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');
});

0 comments on commit 798b83e

Please sign in to comment.