cypress_test/integration_tests/mobile/writer/insert_object_spec.js | 18 ++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-)
New commits: commit 8164c2cbc18fbf45c793444bf0c88030326465ae Author: Tamás Zolnai <[email protected]> AuthorDate: Fri Mar 6 15:01:21 2020 +0100 Commit: Tamás Zolnai <[email protected]> CommitDate: Fri Mar 6 15:31:03 2020 +0100 cypress: mobile: extend test of hyperlink insertion. Change-Id: I433b819d5e76c56018fa15da539c48b1ceaeb022 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90110 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Tamás Zolnai <[email protected]> diff --git a/cypress_test/integration_tests/mobile/writer/insert_object_spec.js b/cypress_test/integration_tests/mobile/writer/insert_object_spec.js index ab58331ef..431aabc5d 100644 --- a/cypress_test/integration_tests/mobile/writer/insert_object_spec.js +++ b/cypress_test/integration_tests/mobile/writer/insert_object_spec.js @@ -332,9 +332,23 @@ describe('Insert objects via insertion wizard.', function() { cy.get('.vex-content.hyperlink-dialog') .should('exist'); - // Push cancel to close the dialog - cy.get('.vex-dialog-button-secondary.vex-dialog-button.vex-last') + // Type text and link + cy.get('.vex-content.hyperlink-dialog input[name="text"]') + .type('some text'); + cy.get('.vex-content.hyperlink-dialog input[name="link"]') + .type('www.something.com'); + + // Insert + cy.get('.vex-content.hyperlink-dialog .vex-dialog-button-primary') .click(); + + helper.copyTextToClipboard(); + + cy.get('#copy-paste-container p') + .contains('some text'); + + cy.get('#copy-paste-container p a') + .should('have.attr', 'href', 'http://www.something.com/'); }); it('Insert shape.', function() { _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
