cypress_test/integration_tests/mobile/writer/hamburger_menu_spec.js | 59 ++++++++++ 1 file changed, 59 insertions(+)
New commits: commit fde2a23de7a1f132005486c2f4ef360aec9c31b0 Author: Tamás Zolnai <tamas.zol...@collabora.com> AuthorDate: Wed Jun 17 14:40:39 2020 +0200 Commit: Tamás Zolnai <tamas.zol...@collabora.com> CommitDate: Wed Jun 17 17:02:46 2020 +0200 cypress: test for resolved comments menu option (writer, mobile). Change-Id: I9e1ec7ec1a6e0732353d79bf3319e0b128ceec78 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/96531 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Tested-by: Jenkins Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com> diff --git a/cypress_test/integration_tests/mobile/writer/hamburger_menu_spec.js b/cypress_test/integration_tests/mobile/writer/hamburger_menu_spec.js index 249624174..c9fd4f69e 100644 --- a/cypress_test/integration_tests/mobile/writer/hamburger_menu_spec.js +++ b/cypress_test/integration_tests/mobile/writer/hamburger_menu_spec.js @@ -788,6 +788,65 @@ describe('Trigger hamburger menu options.', function() { helper.imageShouldBeFullWhiteOrNot(centerTile, true); }); + it('Resolved comments.', function() { + // Insert comment first + mobileHelper.openInsertionWizard(); + + cy.contains('.menu-entry-with-icon', 'Comment') + .click(); + + cy.get('.loleaflet-annotation-table') + .should('exist'); + + cy.get('.loleaflet-annotation-textarea') + .type('some text'); + + cy.get('.vex-dialog-button-primary') + .click(); + + cy.get('.loleaflet-annotation:nth-of-type(2)') + .should('have.attr', 'style') + .should('not.contain', 'visibility: hidden'); + + // Resolve comment + cy.get('.loleaflet-annotation-menu') + .click({force: true}); + + cy.contains('.context-menu-link', 'Resolve') + .click(); + + cy.get('.loleaflet-annotation:nth-of-type(2)') + .should('have.attr', 'style') + .should('contain', 'visibility: hidden'); + + // Show resolved comments + mobileHelper.openHamburgerMenu(); + + cy.contains('.menu-entry-with-icon', 'View') + .click(); + + cy.contains('.menu-entry-with-icon', 'Resolved Comments') + .click(); + + cy.get('.loleaflet-annotation:nth-of-type(2)') + .should('have.attr', 'style') + .should('not.contain', 'visibility: hidden'); + + // Hide resolved comments + mobileHelper.openHamburgerMenu(); + + cy.contains('.menu-entry-with-icon', 'View') + .click(); + + cy.contains('.menu-entry-with-icon', 'Resolved Comments') + .click(); + + // TODO: can't hide resolved comments again. + //cy.get('.loleaflet-annotation:nth-of-type(2)') + // .should('have.attr', 'style') + // .should('contain', 'visibility: hidden'); + }); + it('Check version information.', function() { mobileHelper.openHamburgerMenu(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits