diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2020-07-03 14:39:58 +0200 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2020-07-03 16:42:43 +0200 |
commit | ec273df5f7dfbab2ad878a4e07681419160efb12 (patch) | |
tree | 7a7b0bc273dcbfc13b23a4e4be8c7609a7fb0a34 | |
parent | cypress: remove accidentally pushed only(). (diff) | |
download | online-ec273df5f7dfbab2ad878a4e07681419160efb12.tar.gz online-ec273df5f7dfbab2ad878a4e07681419160efb12.zip |
cypress: test about dialog in calc (mobile)
Change-Id: Iaf908ea775348e2135262c7bc532b94c1364bbae
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97864
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
-rw-r--r-- | cypress_test/integration_tests/mobile/calc/hamburger_menu_spec.js | 31 |
1 files changed, 31 insertions, 0 deletions
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 f8131da9e1..81b2396823 100644 --- a/cypress_test/integration_tests/mobile/calc/hamburger_menu_spec.js +++ b/cypress_test/integration_tests/mobile/calc/hamburger_menu_spec.js @@ -373,4 +373,35 @@ describe('Trigger hamburger menu options.', function() { cy.get('#toolbar-search') .should('not.be.visible'); }); + + it('Check version information.', function() { + before('hamburger_menu.ods'); + + mobileHelper.openHamburgerMenu(); + + // Open about dialog + cy.contains('.menu-entry-with-icon', 'About') + .click(); + + cy.get('.vex-content') + .should('exist'); + + // Check the version + if (helper.getLOVersion() === 'master') { + cy.contains('#lokit-version', 'LibreOffice') + .should('exist'); + } else if (helper.getLOVersion() === 'cp-6-2' || + helper.getLOVersion() === 'cp-6-4') + { + cy.contains('#lokit-version', 'Collabora Office') + .should('exist'); + } + + // Close about dialog + cy.get('.vex-close') + .click({force : true}); + + cy.get('.vex-content') + .should('not.exist'); + }); }); |