forked from DSpace/dspace-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
114599: Added e2e test to test the newly added loading component afte…
…r creating com/col
- Loading branch information
Kuno Vercammen
committed
Apr 23, 2024
1 parent
3922e73
commit 798b83e
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
}); |