diff --git a/cypress_test/integration_tests/desktop/calc/annotation_spec.js b/cypress_test/integration_tests/desktop/calc/annotation_spec.js index a07672761e31c..de86156209649 100644 --- a/cypress_test/integration_tests/desktop/calc/annotation_spec.js +++ b/cypress_test/integration_tests/desktop/calc/annotation_spec.js @@ -47,6 +47,32 @@ describe(['tagdesktop'], 'Annotation Tests', function() { cy.cGet('#comment-container-1').should('exist'); }); + it('Modify and Save using shortcut Ctrl+Enter',function() { + desktopHelper.insertComment(); + + cy.cGet('#comment-container-1').should('exist'); + + cy.cGet('#comment-container-1').then(function (element) { + element[0].style.visibility = ''; + element[0].style.display = ''; + }); + cy.cGet('#comment-container-1').trigger('mouseover'); + cy.cGet('#annotation-content-area-1').should('contain','some text'); + cy.cGet('#comment-annotation-menu-1').click(); + cy.cGet('body').contains('.context-menu-item','Modify').click(); + cy.cGet('#annotation-modify-textarea-1').type('some other text, '); + + cy.cGet('annotation-modify-textarea-1').type('{ctrl}{enter}') + + cy.cGet('#comment-container-1').then(function (element) { + element[0].style.visibility = ''; + element[0].style.display = ''; + }); + cy.cGet('#annotation-content-area-1').trigger('mouseover'); + cy.cGet('#annotation-content-area-1').should('contain','some other text, some text'); + cy.cGet('#comment-container-1').should('exist'); + }); + it('Reply should not be possible', function() { desktopHelper.insertComment(); diff --git a/cypress_test/integration_tests/desktop/writer/annotation_spec.js b/cypress_test/integration_tests/desktop/writer/annotation_spec.js index 46dd84474af5d..d2005085c1260 100644 --- a/cypress_test/integration_tests/desktop/writer/annotation_spec.js +++ b/cypress_test/integration_tests/desktop/writer/annotation_spec.js @@ -34,6 +34,21 @@ describe(['tagdesktop'], 'Annotation Tests', function() { cy.cGet('#annotation-content-area-1').should('contain','some other text, some text0'); }); + it('Modify and Save using shortcut Ctrl+Enter',function() { + desktopHelper.insertComment(); + + cy.cGet('.cool-annotation-content-wrapper').should('exist'); + cy.cGet('#annotation-content-area-1').should('contain','some text0'); + cy.cGet('#comment-annotation-menu-1').click(); + cy.cGet('body').contains('.context-menu-item', 'Modify').click(); + cy.cGet('#annotation-modify-textarea-1').type('some other text, '); + + cy.cGet('annotation-modify-textarea-1').type('{ctrl}{enter}') + + cy.cGet('.cool-annotation-content-wrapper').should('exist'); + cy.cGet('#annotation-content-area-1').should('contain','some other text, some text0'); + }); + it('Reply', function() { desktopHelper.insertComment();