mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
17 lines
562 B
TypeScript
17 lines
562 B
TypeScript
beforeEach(() => {
|
|
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'));
|
|
|
|
// Accept all cookies to make sure cookie window does not block other elements
|
|
cy.get('.orejime-Button--save').click();
|
|
});
|
|
|
|
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-loading').should('be.visible');
|
|
});
|