File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ } ) ;
Original file line number Diff line number Diff line change 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+ } ) ;
You can’t perform that action at this time.
0 commit comments