diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2020-09-24 08:04:52 +0200 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2020-09-24 10:58:53 +0200 |
commit | bfc726639577c8b60b671c607aafc18c5b4dd96c (patch) | |
tree | c22935e28cc9c2f8992d34a451621eaf0bb255be | |
parent | 02be3eaa94273eb52b26d2aaf04b56a4437f6b19 (diff) |
cypress: check close/edit button state on mobile.
Change-Id: I576f2d8358fd922a10fd4a9e846dd28b49191cb3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103291
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
-rw-r--r-- | cypress_test/integration_tests/common/mobile_helper.js | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/cypress_test/integration_tests/common/mobile_helper.js b/cypress_test/integration_tests/common/mobile_helper.js index 9875b29d9..1396ef6ca 100644 --- a/cypress_test/integration_tests/common/mobile_helper.js +++ b/cypress_test/integration_tests/common/mobile_helper.js @@ -9,13 +9,24 @@ function enableEditingMobile() { cy.get('#mobile-edit-button') .then(function(button) { if (button.css('display') !== 'none') { + + cy.get('#tb_actionbar_item_closemobile .editmode') + .should('not.exist'); + + cy.get('#tb_actionbar_item_closemobile .closemobile') + .should('be.visible'); + cy.get('#mobile-edit-button') .click(); } }); - cy.get('#tb_actionbar_item_mobile_wizard') - .should('not.have.class', 'disabled'); + + cy.get('#tb_actionbar_item_closemobile .editmode') + .should('be.visible'); + + cy.get('#tb_actionbar_item_closemobile .closemobile') + .should('not.exist'); // Wait until all UI update is finished. cy.get('#toolbar-down') |