@@ -33,6 +33,8 @@ context('Properties dialog', function () {
3333 cy . addDocument ( mkApiPathUrl ( 'admin' , '/db/test_col' ) , 'xml_file.xml' , 'xml' )
3434 } )
3535 describe ( 'Correct information' , function ( ) {
36+ // TODO(DP): decide what to do with this add to operations_spec
37+ // switch to bevaior testing, sumary testing every single box that is visible
3638 it ( 'Document properties' , function ( ) {
3739 cy . waitForLoading ( ) ;
3840 cy . getTreeNode ( mkApiPathUrl ( 'admin' , '/db/test_col/text_file.txt' ) ) . rightclick ( )
@@ -140,24 +142,24 @@ context('Properties dialog', function () {
140142 cy . get ( dialog ) . should ( 'not.exist' ) ;
141143 } ) ;
142144 } )
143- it ( 'Connection properties' , function ( ) {
144- cy . waitForLoading ( ) ;
145- cy . getTreeNode ( mkApiPathUrl ( 'admin' ) ) . rightclick ( )
146- . getMenuCommand ( 'fusion.properties' ) . should ( 'be.visible' ) . click ( )
147- cy . get ( dialogTitle ) . should ( 'contain.text' , 'Edit Connection' ) ;
148- cy . get ( dialogBody ) . should ( 'be.visible' ) . then ( body => {
149- cy . wrap ( body ) . find ( '.vertical-form .name-field span' ) . contains ( 'Connection Name:' )
150- . find ( '+ input.theia-input[type=text]' ) . should ( 'have.value' , 'localhost' ) ;
151- cy . wrap ( body ) . find ( '.vertical-form .server-field span' ) . contains ( 'Server URI:' )
152- . find ( '+ input.theia-input[type=text]' ) . should ( 'have.value' , apiHost + apiPort ) ;
153- cy . wrap ( body ) . find ( '.vertical-form .username-field span' ) . contains ( 'Username:' )
154- . find ( '+ input.theia-input[type=text]' ) . should ( 'have.value' , 'admin' ) ;
155- cy . wrap ( body ) . find ( '.vertical-form .password-field span' ) . contains ( 'Password' )
156- . find ( '+ input.theia-input[type=password]' ) . should ( 'have.value' , '' ) ;
157- cy . get ( dialogSecondaryButton ) . should ( 'be.visible' ) . click ( ) ;
158- cy . get ( dialog ) . should ( 'not.exist' ) ;
159- } ) ;
160- } )
145+ // it('Connection properties', function () {
146+ // cy.waitForLoading();
147+ // cy.getTreeNode(mkApiPathUrl('admin')).rightclick()
148+ // .getMenuCommand('fusion.properties').should('be.visible').click()
149+ // cy.get(dialogTitle).should('contain.text', 'Edit Connection');
150+ // cy.get(dialogBody).should('be.visible').then(body => {
151+ // cy.wrap(body).find('.vertical-form .name-field span').contains('Connection Name:')
152+ // .find('+ input.theia-input[type=text]').should('have.value', 'localhost');
153+ // cy.wrap(body).find('.vertical-form .server-field span').contains('Server URI:')
154+ // .find('+ input.theia-input[type=text]').should('have.value', apiHost + apiPort);
155+ // cy.wrap(body).find('.vertical-form .username-field span').contains('Username:')
156+ // .find('+ input.theia-input[type=text]').should('have.value', 'admin');
157+ // cy.wrap(body).find('.vertical-form .password-field span').contains('Password')
158+ // .find('+ input.theia-input[type=password]').should('have.value', '');
159+ // cy.get(dialogSecondaryButton).should('be.visible').click();
160+ // cy.get(dialog).should('not.exist');
161+ // });
162+ // })
161163 } )
162164 describe ( 'Renaming objects' , function ( ) {
163165 it ( 'Rename a connection' , function ( ) {
0 commit comments