cypress_test/data/mobile/writer/shape_properties.odt                  |binary
 cypress_test/integration_tests/mobile/writer/shape_properties_spec.js |    8 
++++++++
 2 files changed, 8 insertions(+)

New commits:
commit 8c23b7a5112de8972d582d2388e61983651d03ae
Author:     Tamás Zolnai <tamas.zol...@collabora.com>
AuthorDate: Thu Mar 12 17:50:32 2020 +0100
Commit:     Tamás Zolnai <tamas.zol...@collabora.com>
CommitDate: Thu Mar 12 18:19:26 2020 +0100

    cypress: mobile: make shape related tests more stable.
    
    It seems the default client viewport is not alway the same.
    Selecting a long text and then go to the start of the paragraph
    will force to have the same view before testing shape
    insertion.
    
    Change-Id: I590c69f02faea1b45b087ee47f04b55bf3b08312
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90431
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com>

diff --git a/cypress_test/data/mobile/writer/shape_properties.odt 
b/cypress_test/data/mobile/writer/shape_properties.odt
index 550752605..0c81da669 100644
Binary files a/cypress_test/data/mobile/writer/shape_properties.odt and 
b/cypress_test/data/mobile/writer/shape_properties.odt differ
diff --git 
a/cypress_test/integration_tests/mobile/writer/shape_properties_spec.js 
b/cypress_test/integration_tests/mobile/writer/shape_properties_spec.js
index a9e9994c3..21f666017 100644
--- a/cypress_test/integration_tests/mobile/writer/shape_properties_spec.js
+++ b/cypress_test/integration_tests/mobile/writer/shape_properties_spec.js
@@ -12,6 +12,14 @@ describe('Change shape properties via mobile wizard.', 
function() {
                // Click on edit button
                cy.get('#mobile-edit-button').click();
 
+               writerHelper.selectAllMobile();
+
+               cy.get('#document-container')
+                       .type('{home}');
+
+               cy.get('.blinking-cursor')
+                       .should('be.visible');
+
                // Open insertion wizard
                cy.get('#tb_actionbar_item_insertion_mobile_wizard')
                        .click();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to