cypress_test/integration_tests/common/calc_helper.js              |    3 ++
 cypress_test/integration_tests/mobile/calc/hamburger_menu_spec.js |   11 
+++++++++-
 2 files changed, 13 insertions(+), 1 deletion(-)

New commits:
commit 472c2c732533a207c95e0cc85f3782421fc98267
Author:     Tamás Zolnai <tamas.zol...@collabora.com>
AuthorDate: Fri Jun 26 13:38:00 2020 +0200
Commit:     Tamás Zolnai <tamas.zol...@collabora.com>
CommitDate: Fri Jun 26 14:25:28 2020 +0200

    cypress: fix 'Undo/redo.' test.
    
    Change-Id: Ica2c0a544094c04c1f46756db8bf3f35eff69b13
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97216
    Tested-by: Jenkins
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com>

diff --git a/cypress_test/integration_tests/common/calc_helper.js 
b/cypress_test/integration_tests/common/calc_helper.js
index 3c9c86d1e..3fc8a996f 100644
--- a/cypress_test/integration_tests/common/calc_helper.js
+++ b/cypress_test/integration_tests/common/calc_helper.js
@@ -50,6 +50,9 @@ function clickOnFirstCell(firstClick = true, dblClick = 
false) {
                cy.get('.leaflet-cursor.blinking-cursor')
                        .should('be.visible');
 
+       cy.get('input#addressInput')
+               .should('have.prop', 'value', 'A1');
+
        cy.log('Clicking on first cell - end.');
 }
 
diff --git a/cypress_test/integration_tests/mobile/calc/hamburger_menu_spec.js 
b/cypress_test/integration_tests/mobile/calc/hamburger_menu_spec.js
index 1d2e64876..3c6c9a69e 100644
--- a/cypress_test/integration_tests/mobile/calc/hamburger_menu_spec.js
+++ b/cypress_test/integration_tests/mobile/calc/hamburger_menu_spec.js
@@ -107,7 +107,7 @@ describe('Trigger hamburger menu options.', function() {
                        .should('contain', 'document.xlsx');
        });
 
-       it.skip('Undo/redo.', function() {
+       it('Undo/redo.', function() {
                // Type a new character
                calcHelper.clickOnFirstCell(true, true);
 
@@ -128,6 +128,9 @@ describe('Trigger hamburger menu options.', function() {
                cy.contains('.menu-entry-with-icon', 'Undo')
                        .click();
 
+               cy.get('input#addressInput')
+                       .should('have.prop', 'value', 'A1');
+
                calcMobileHelper.selectAllMobile();
 
                cy.get('#copy-paste-container table td')
@@ -142,6 +145,9 @@ describe('Trigger hamburger menu options.', function() {
                cy.contains('.menu-entry-with-icon', 'Redo')
                        .click();
 
+               cy.get('input#addressInput')
+                       .should('have.prop', 'value', 'A1');
+
                calcMobileHelper.selectAllMobile();
 
                cy.get('#copy-paste-container table td')
@@ -180,6 +186,9 @@ describe('Trigger hamburger menu options.', function() {
                cy.get('.leaflet-popup-content input[value=\'Jump to state\']')
                        .click();
 
+               cy.get('input#addressInput')
+                       .should('have.prop', 'value', 'A1');
+
                calcMobileHelper.selectAllMobile();
 
                cy.get('#copy-paste-container table td')
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to