cypress_test/data/mobile/writer/table_with_text.odt                   |binary
 cypress_test/integration_tests/common/helper.js                       |    2 -
 cypress_test/integration_tests/mobile/writer/table_properties_spec.js |   14 
+++++-----
 3 files changed, 8 insertions(+), 8 deletions(-)

New commits:
commit 4f864162e41881f5457c02b38dfa8c07558ebf1b
Author:     Tamás Zolnai <tamas.zol...@collabora.com>
AuthorDate: Mon Feb 24 20:26:07 2020 +0100
Commit:     Tamás Zolnai <tamas.zol...@collabora.com>
CommitDate: Mon Feb 24 22:10:38 2020 +0100

    cypress: mobile: update table related tests.
    
    Change-Id: Idd65edc8d3c007afec9e93e0a103379c579a178c
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89379
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com>

diff --git a/cypress_test/data/mobile/writer/table_with_text.odt 
b/cypress_test/data/mobile/writer/table_with_text.odt
index 046edcce0..89d780819 100644
Binary files a/cypress_test/data/mobile/writer/table_with_text.odt and 
b/cypress_test/data/mobile/writer/table_with_text.odt differ
diff --git a/cypress_test/integration_tests/common/helper.js 
b/cypress_test/integration_tests/common/helper.js
index 7084a76a7..364746044 100644
--- a/cypress_test/integration_tests/common/helper.js
+++ b/cypress_test/integration_tests/common/helper.js
@@ -127,7 +127,7 @@ function copyTableToClipboard() {
                        }
 
                        var XPos = startPos.right + 10;
-                       var YPos = endPos.top - 10;
+                       var YPos = (startPos.top + endPos.top) / 2;
                        longPressOnDocument(XPos, YPos);
                });
 
diff --git 
a/cypress_test/integration_tests/mobile/writer/table_properties_spec.js 
b/cypress_test/integration_tests/mobile/writer/table_properties_spec.js
index 0e372c22e..ab52fe28a 100644
--- a/cypress_test/integration_tests/mobile/writer/table_properties_spec.js
+++ b/cypress_test/integration_tests/mobile/writer/table_properties_spec.js
@@ -326,11 +326,11 @@ describe('Change table properties / layout via mobile 
wizard.', function() {
 
                cy.get('#rowheight .spinfield')
                        .clear()
-                       .type('3.4')
+                       .type('1.4')
                        .type('{enter}');
 
                cy.get('#rowheight .spinfield')
-                       .should('have.attr', 'value', '3.4');
+                       .should('have.attr', 'value', '1.4');
 
                // Close mobile wizard
                cy.get('#tb_actionbar_item_mobile_wizard')
@@ -340,7 +340,7 @@ describe('Change table properties / layout via mobile 
wizard.', function() {
 
                // Check row height
                cy.get('#copy-paste-container td')
-                       .should('have.attr', 'height', '317');
+                       .should('have.attr', 'height', '125');
        });
 
        it('Change column width.', function() {
@@ -433,9 +433,9 @@ describe('Change table properties / layout via mobile 
wizard.', function() {
                                expect(items).have.lengthOf(6);
                                for (var i = 0; i < items.length; i++) {
                                        if (i == 0 || i == 4)
-                                               
expect(items[i]).have.attr('height', '106');
+                                               
expect(items[i]).have.attr('height', '33');
                                        else if (i == 2)
-                                               
expect(items[i]).have.attr('height', '107');
+                                               
expect(items[i]).have.attr('height', '34');
                                        else
                                                
expect(items[i]).not.have.attr('height');
                                }
@@ -471,9 +471,9 @@ describe('Change table properties / layout via mobile 
wizard.', function() {
                                expect(items).have.lengthOf(6);
                                for (var i = 0; i < items.length; i++) {
                                        if (i == 0 || i == 4)
-                                               
expect(items[i]).have.attr('height', '106');
+                                               
expect(items[i]).have.attr('height', '33');
                                        else if (i == 2)
-                                               
expect(items[i]).have.attr('height', '107');
+                                               
expect(items[i]).have.attr('height', '34');
                                        else
                                                
expect(items[i]).not.have.attr('height');
                                }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to