diff options
author | Gökay Şatır <gokaysatir@collabora.com> | 2023-04-21 11:35:07 +0300 |
---|---|---|
committer | Gökay ŞATIR <gokaysatir@gmail.com> | 2023-04-24 11:34:04 +0300 |
commit | 5f6a6d6f9f684152451c584121a6086f5e6d0b4c (patch) | |
tree | a98478b1d1fb235511d24f43ea37f2aa350286cf /cypress_test/integration_tests/desktop/writer | |
parent | Remove duplicate comment containers by removing JSDialog popups. (diff) | |
download | online-5f6a6d6f9f684152451c584121a6086f5e6d0b4c.tar.gz online-5f6a6d6f9f684152451c584121a6086f5e6d0b4c.zip |
Required Cypress changes after replacing popups.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ice48a7c83afb9311b2eb9ebcf1d3dbccb9ad5f8b
Diffstat (limited to 'cypress_test/integration_tests/desktop/writer')
-rw-r--r-- | cypress_test/integration_tests/desktop/writer/annotation_spec.js | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/cypress_test/integration_tests/desktop/writer/annotation_spec.js b/cypress_test/integration_tests/desktop/writer/annotation_spec.js index 6d1cbff228..43f64eecf3 100644 --- a/cypress_test/integration_tests/desktop/writer/annotation_spec.js +++ b/cypress_test/integration_tests/desktop/writer/annotation_spec.js @@ -107,7 +107,7 @@ describe('Collapsed Annotation Tests', function() { }); it('Insert',function() { - insertMultipleComment('writer', 1, true); + insertMultipleComment('writer', 1, false); cy.get('.cool-annotation-content-wrapper').should('exist'); @@ -115,52 +115,59 @@ describe('Collapsed Annotation Tests', function() { }); it('Modify',function() { - insertMultipleComment('writer', 1, true); + insertMultipleComment('writer', 1, false); cy.get('.cool-annotation-content-wrapper').should('exist'); cy.get('#annotation-content-area-1').should('contain','some text0'); - cy.get('#mobile-wizard-popup #comment-annotation-menu-1').click(); + cy.get('.cool-annotation-img').click(); + + cy.get('#comment-annotation-menu-1').click(); cy.contains('.context-menu-item','Modify').click(); - cy.get('#mobile-wizard-popup #annotation-modify-textarea-1').type('some other text, '); + cy.get('#annotation-modify-textarea-1').type('some other text, '); - cy.get('#mobile-wizard-popup #annotation-save-1').click(); + cy.get('#annotation-save-1').click(); - cy.get('#mobile-wizard-popup .cool-annotation-content-wrapper').should('exist'); + cy.get('.cool-annotation-content-wrapper').should('exist'); - cy.get('#mobile-wizard-popup #annotation-content-area-1').should('contain','some other text, some text0'); + cy.get('#annotation-content-area-1').should('contain','some other text, some text0'); }); it('Reply',function() { - insertMultipleComment('writer', 1, true); + insertMultipleComment('writer', 1, false); cy.get('.cool-annotation-content-wrapper').should('exist'); cy.get('#annotation-content-area-1').should('contain','some text'); - cy.get('#mobile-wizard-popup #comment-annotation-menu-1').click(); + cy.get('.cool-annotation-img').click(); + + cy.get('#comment-annotation-menu-1').click(); cy.contains('.context-menu-item','Reply').click(); - cy.get('#mobile-wizard-popup #annotation-reply-textarea-1').type('some reply text'); + cy.get('#annotation-reply-textarea-1').type('some reply text'); + + cy.get('#annotation-reply-1').click(); - cy.get('#mobile-wizard-popup #annotation-reply-1').click(); - cy.get('#mobile-wizard-popup #annotation-content-area-2').should('contain','some reply text'); + cy.get('#annotation-content-area-2').should('contain','some reply text'); }); it('Remove',function() { - insertMultipleComment('writer', 1, true); + insertMultipleComment('writer', 1, false); cy.get('.cool-annotation-content-wrapper').should('exist'); cy.get('.cool-annotation-content > div') .should('contain','some text'); - cy.get('#mobile-wizard-popup .cool-annotation-menu').click(); + cy.get('.cool-annotation-img').click(); + + cy.get('.cool-annotation-menu').click(); cy.contains('.context-menu-item','Remove') .click(); |